From 383a578b8dd87bb6649e3652232685e28824a8c1 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 12 Mar 2014 16:14:10 +0000 Subject: [PATCH] included gender display using symbols svn path=/trunk/; revision=40 --- templates/text_attendee.sh | 5 +++++ templates/view_attendee.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/text_attendee.sh b/templates/text_attendee.sh index 57ad3f6..647a7e8 100755 --- a/templates/text_attendee.sh +++ b/templates/text_attendee.sh @@ -83,6 +83,11 @@ item_name[gender_female]="Weiblich" item_name[gender_male]="Männlich" item_name[gender_other]="Sonstiges" +item_name[female]="♀" +item_name[male]="♂" +item_name[other]="⚥" +item_name[none]="⚪" + l10n() { [ -n "$item_name[$1]" ] && echo -n "$item_name[$1]" || echo -n "$1" } diff --git a/templates/view_attendee.sh b/templates/view_attendee.sh index 685ea8a..35f33f3 100755 --- a/templates/view_attendee.sh +++ b/templates/view_attendee.sh @@ -1,7 +1,7 @@ echo '
' echo '
' echo ' '$values[FN]'' -[ -n "$value[GENDER]" ] && \ +[ -n "$values[GENDER]" ] && \ echo ' '$(l10n $values[GENDER])'' for n in NICKNAME NICKNAME{0..10}; do [ -n "$values[$n]" ] &&\ echo ' aka. '$values[$n]'' -- 2.39.2