]> git.plutz.net Git - confetti/blobdiff - cards/l10n.sh
reintroduce attendence selection
[confetti] / cards / l10n.sh
index 48ee59ee4b706f2362c5586b26b06e5aefd7b18c..ec52766d3e321272bdf654f11532d692579b7fae 100755 (executable)
@@ -17,7 +17,7 @@
 
 l10n(){
   local word
-  [ $# -eq 0 ] && read -r word || word="$1"
+  [ $# -eq 0 ] && read -r word || word="$*"
   case $word in
     PHOTO) printf %s "Foto";;
     LOGO) printf %s "Logo";;
@@ -41,16 +41,11 @@ l10n(){
     BDAY) printf %s "Geburtstag";;
     EMAIL) printf %s "E-Mail";;
     TEL) printf %s "Telefon";;
-    phone_typeselect) printf %s "Typ";;
-    phone_home) printf %s "Privat";;
-    phone_cell) printf %s "Mobil";;
-    phone_work) printf %s "Büro";;
-    phone_fax) printf %s "Fax";;
-    tHOME) printf %s "Privat:";;
-    tWORK) printf %s "Büro:";;
-    tCELL) printf %s "Mobil:";;
-    tFAX) printf %s "Fax:";;
-    tVOICE) printf %s "";;
+    teltype) printf %s "Anschlusstyp:";;
+    TYPE=HOME) printf %s "Privat";;
+    TYPE=WORK) printf %s "Geschäftlich";;
+    TYPE=CELL) printf %s "Mobil";;
+    TYPE=FAX) printf %s "Fax";;
     IMPP) printf %s "Chat";;
     ADR) printf %s "Anschrift";;
     URL) printf %s "Webseite";;
@@ -135,7 +130,8 @@ l10n(){
     male) printf %s "♂";;
     other) printf %s "⚥";;
     none) printf %s "⚪";;
-    *) printf %s "$1";;
+
+    *) printf %s "$word";;
   esac
 }