]> git.plutz.net Git - confetti/blobdiff - cards/l10n.sh
style for card filter dialog
[confetti] / cards / l10n.sh
index c9161733bbf8b14385605141eed975e005bf7497..e1ad86c03f3b7a02ad38e98dfab9758fe1bad311 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014, 2016, 2019 Paul Hänsch
+# Copyright 2014, 2016, 2019, 2021 Paul Hänsch
 #
 # This file is part of Confetti.
 # 
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
 l10n(){
-  case $1 in
+  local word
+  [ $# -eq 0 ] && read -r word || word="$*"
+  case $word in
     PHOTO) printf %s "Foto";;
     LOGO) printf %s "Logo";;
     FN) printf %s "Voller Name";;
     N) printf %s "Name";;
     n_pre) printf %s "Titel";;
     n_first) printf %s "Vorname";;
-    n_middle) printf %s "Mittelnamen";;
+    n_middle) printf %s "Mittel&shy;namen";;
     n_last) printf %s "Nachname";;
     n_post) printf %s "Zusätze";;
-    NICKNAME) printf %s "Spitzname";;
-    SOUND) printf %s "Aussprache";;
-    GENDER) printf %s "Geschlecht";;
+    NICKNAME) printf %s "Spitz&shy;name";;
+    SOUND) printf %s "Aus&shy;sprache";;
+    GENDER) printf %s "Ge&shy;schlecht";;
     KIND) printf %s "Typ";;
     TITLE) printf %s "Beruf";;
     ROLE) printf %s "Position";;
-    ORG) printf %s "Organisation";;
+    ORG) printf %s "Orga&shy;ni&shy;sation";;
     MEMBER) printf %s "Mitglied";;
     CATEGORIES) printf %s "Kategorien";;
     ANNIVERSARY) printf %s "Jubiläum";;
     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 "Anschluss&shy;typ:";;
+    TYPE=HOME) printf %s "Privat";;
+    TYPE=WORK) printf %s "Geschäft&shy;lich";;
+    TYPE=CELL) printf %s "Mobil";;
+    TYPE=FAX) printf %s "Fax";;
     IMPP) printf %s "Chat";;
     ADR) printf %s "Anschrift";;
     URL) printf %s "Webseite";;
@@ -85,19 +82,20 @@ l10n(){
     hi_status) printf %s "Ver&shy;sich&shy;er&shy;ten&shy;sta&shy;tus";;
     X-HEALTH-INSURANCE-NOCONTRIB) printf %s "Zu&shy;zahl&shy;ungs&shy;be&shy;frei&shy;ung";;
     X-CLIENT-REFERRAL) printf %s "Empfehl&shy;ung durch";;
-    prescriptions) printf %s "Verordnungen";;
-    new_prescription) printf %s "Neue Verordnung";;
+    prescriptions) printf %s "Verord&shy;nungen";;
+    new_prescription) printf %s "Neue Verord&shy;nung";;
     no_icd) printf %s "Kein ICD Code";;
   
-    X-ZACK-JOINDATE) printf %s "An&shy;mel&shy;de&shy;da&shy;tum";;
-    X-ZACK-LEAVEDATE) printf %s "Ab&shy;mel&shy;de&shy;da&shy;tum";;
-    label_join) printf %s "Anm.";;
-    label_leave) printf %s "Abm.";;
+    X-ZACK-JOINDATE)  printf %s "Anmelde&shy;datum";;
+    X-ZACK-LEAVEDATE) printf %s "Abmelde&shy;datum";;
+    X-ZACK-JOINDATE_short)  printf %s "Anm.";;
+    X-ZACK-LEAVEDATE_short) printf %s "Abm.";;
   
     edit) printf %s "Bearbeiten";;
     edit_categories) printf %s "Kategorien Bearbeiten";;
     vcf_export) printf %s "Vcard Exportieren";;
     control) printf %s "Aktionen";;
+    delete) printf %s "entfernen";;
     edit_update) printf %s "Daten übernehmen";;
     edit_cancel) printf %s "Abbrechen";;
     edit_delete) printf %s "Eintrag löschen";;
@@ -105,6 +103,7 @@ l10n(){
     edit_addfield) printf %s "+";;
     edit_deletefield) printf %s "X";;
     filter_label) printf %s "Filter";;
+    filter_item) printf %s "Eingrenzung nach";;
     filter_placeholder) printf %s "Begriffe zur Eingrenzung eingeben";;
     filter_type) printf %s "Filtertyp";;
     filter_order) printf %s "Sortierung";;
@@ -115,14 +114,15 @@ l10n(){
     filter_street) printf %s "Straße";;
     filter_zip) printf %s "PLZ.";;
     filter_TEL) printf %s "Telefon";;
-    filter_BDAY) printf %s "Geburtsjahr";;
-    filter_bdate) printf %s "Geburtsdatum";;
+    filter_BDAY) printf %s "Geburts&shy;jahr";;
+    filter_bdate) printf %s "Geburts&shy;datum";;
     filter_course) printf %s "Kurs";;
     filter_CATEGORIES) printf %s "Kategorien";;
+    filter_more) printf %s "+ mehr Filter";;
     filter_apply) printf %s "Filtern";;
     filter_cancel) printf %s "Filter löschen";;
     newcard) printf %s "Neuen Eintrag anlegen";;
-    course_attendance) printf %s "Kursteilnahme";;
+    course_attendance) printf %s "Kurs&shy;teil&shy;nahme";;
   
     gender_none) printf %s "keine Angabe";;
     gender_female) printf %s "Weiblich";;
@@ -133,7 +133,8 @@ l10n(){
     male) printf %s "&#x2642;";;
     other) printf %s "&#x26A5;";;
     none) printf %s "&#x26AA;";;
-    *) printf %s "$1";;
+
+    *) printf %s "$word";;
   esac
 }