]> git.plutz.net Git - confetti/blobdiff - l10n.sh
tidy up
[confetti] / l10n.sh
diff --git a/l10n.sh b/l10n.sh
index 882087c999522d832b79740ead29b506f11269a7..cab5bdeada481d6bc8a4cbfbe7cd12722c6314ee 100755 (executable)
--- a/l10n.sh
+++ b/l10n.sh
@@ -78,6 +78,9 @@ l10n_global() {
     sYEARLY) printf "Jährlich";;
 
     # UI labels
+    year) printf %s "Jahr";;
+    month) printf %s "Monat";;
+    day) printf %s "Tag";;
     edit) printf %s "Bearbeiten";;
     edit_categories) printf %s "Kategorien Bearbeiten";;
     vcf_export) printf %s "Vcard Exportieren";;
@@ -93,25 +96,27 @@ l10n_global() {
     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";;
+    filter_type) printf %s "Filter­typ";;
+    filter_order) printf %s "Sortie­rung";;
     filter_any) printf %s "Alles";;
     filter_name) printf %s "Name";;
-    filter_firstname) printf %s "Vorname";;
-    filter_lastname) printf %s "Nachname";;
+    filter_firstname) printf %s "Vor­name";;
+    filter_lastname) printf %s "Nach­name";;
     filter_street) printf %s "Straße";;
     filter_zip) printf %s "PLZ.";;
-    filter_TEL) printf %s "Telefon";;
+    filter_TEL) printf %s "Tele­fon";;
     filter_BDAY) printf %s "Geburts­jahr";;
     filter_bdate) printf %s "Geburts­datum";;
     filter_course) printf %s "Kurs";;
-    filter_CATEGORIES) printf %s "Kategorien";;
+    filter_CATEGORIES) printf %s "Kate­go­rien";;
     filter_more) printf %s "+ mehr Filter";;
     filter_apply) printf %s "Filtern";;
     filter_cancel) printf %s "Filter löschen";;
+    export_csv) printf %s "Liste als CSV-Datei";;
 
     # UI Labels Special
     course_attendance) printf %s "Kurs­teil­nahme";;
+    vcf_seed_label) printf "Anmeld.    Vorn.   Nachn.  Geb. Monat      Geb. Jahr       Tel.    Mobil   ()      EMail   ()      Notiz";;
   
     gender_none) printf %s "keine Angabe";;
     gender_female) printf %s "Weiblich";;
@@ -153,3 +158,20 @@ l10n_time() {
     s;December;De\&shy\;zem\&shy\;ber;g;       s;Dec\.;Dez.;g;
   '
 }
+
+parse_date() {
+  [ $# -eq 0 ] && read -r date || date="$*"
+
+  case $date in
+    *[0-9].*[0-9].*[0-9])
+      d="${date%%.*}"
+      y="${date##*.}"
+      m="${date%.*}"
+      m="${m#*.}"
+      [ $y -lt 100 ] && y="$((y + 2000))"
+      date -d "$(printf '%04i-%02i-%02i' "$y" "$m" "$d")" +%F
+      ;;
+    *) date -d "$date" +%F
+      ;;
+  esac
+}