X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fl10n.sh;h=ec52766d3e321272bdf654f11532d692579b7fae;hp=841adb4977ddc45c3fbddfc051af61ea58c3d0d4;hb=9a13e82c7e9d0f29ab18df4407c04d0eafdb0aa6;hpb=39d5084924d723c5bbea52c2b62fdfc39d39fe23 diff --git a/cards/l10n.sh b/cards/l10n.sh index 841adb4..ec52766 100755 --- a/cards/l10n.sh +++ b/cards/l10n.sh @@ -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";; @@ -136,13 +131,7 @@ l10n(){ other) printf %s "⚥";; none) printf %s "⚪";; - teltype) printf %s "Anschlusstyp:";; - HOME) printf %s "Privat";; - WORK) printf %s "Geschäftlich";; - CELL) printf %s "Mobil";; - FAX) printf %s "Fax";; - - *) printf %s "$1";; + *) printf %s "$word";; esac }