X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=l10n.sh;h=cab5bdeada481d6bc8a4cbfbe7cd12722c6314ee;hp=c2ff5a34525f12975f93f261b7c8089968a1b450;hb=f0f4a2847ec2fe8226682eee26c902a3b6d64f58;hpb=9d57bb4e955cdf41009d1ab916a926f27332b2f1 diff --git a/l10n.sh b/l10n.sh index c2ff5a3..cab5bde 100755 --- 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";; @@ -109,9 +112,11 @@ 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. 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\­\;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 +}