From be9ce34edbd0d4305f438ba46883377597789ec1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 10 Feb 2021 12:41:13 +0100 Subject: [PATCH] Includ bday field in quick entries --- cards/new_card.sh | 5 +++-- l10n.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cards/new_card.sh b/cards/new_card.sh index 0273a2c..424f242 100755 --- a/cards/new_card.sh +++ b/cards/new_card.sh @@ -31,13 +31,14 @@ vcf_escape(){ | sed -E ':X;$!{N;bX}; s;\n;\;;g' } -IFS='|' read -r date fn ln bmonth byear tel tcell junk1 email junk2 note <<-EOF +IFS='|' read -r date fn ln bday bmonth byear tel tcell junk1 email junk2 note <<-EOF $(POST seed |tr \\t \|) EOF [ ${#byear} = 1 ] && byear="200$byear" [ ${#byear} = 2 ] && byear="20$byear" [ ${#bmonth} = 1 ] && bmonth="0$bmonth" +[ ${#bday} = 1 ] && bday="0$bday" mn="" case $fn in @@ -57,7 +58,7 @@ if mkdir "$lockdir"; then VERSION:4.0 N:$(vcf_escape "$ln" "$fn" "$mn" "" "") FN:$(vcf_escape "${fn}${mn:+ }${mn} ${ln}") - BDAY:$(parse_date "${byear}-${bmonth}-01") + BDAY:$(parse_date "${byear}-${bmonth}-${bday}") TEL:$(vcf_escape "$tel") TEL;TYPE=CELL:$(vcf_escape "$tcell") EMAIL:$(vcf_escape "$email") diff --git a/l10n.sh b/l10n.sh index cab5bde..28a9ce7 100755 --- a/l10n.sh +++ b/l10n.sh @@ -116,7 +116,7 @@ l10n_global() { # 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";; + vcf_seed_label) printf "Anmeld. Vorn. Nachn. Geb.Tag Geb.Monat Geb.Jahr Tel. Mobil () EMail () Notiz";; gender_none) printf %s "keine Angabe";; gender_female) printf %s "Weiblich";; -- 2.39.2