X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=l10n.sh;h=bddc7b7aabc9574af19fd3b2e15c2ab89a5ad541;hp=361542e76718d4d07c6c4ee985e0f3a109dcbb17;hb=HEAD;hpb=9ca7b43d1885bb8328e5a5e78ac6bc038d6efbb6 diff --git a/l10n.sh b/l10n.sh index 361542e..d9e01d0 100755 --- a/l10n.sh +++ b/l10n.sh @@ -26,6 +26,7 @@ l10n_global() { # Nav Menu cards) printf %s "Teil­neh­mende";; courses) printf %s "Kurse";; + ledgers) printf %s "Bei­trä­ge";; # VCF Default PHOTO) printf %s "Foto";; @@ -112,9 +113,12 @@ l10n_global() { 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.Tag Geb.Monat Geb.Jahr Tel. Mobil () EMail () Notiz";; + '(unnamed course)') printf '(Unbe\302\255nannter Kurs)';; gender_none) printf %s "keine Angabe";; gender_female) printf %s "Weiblich";; @@ -156,3 +160,20 @@ l10n_time() { s;December;De\­\;zem\­\;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 +}