From: paul Date: Wed, 12 Mar 2014 16:14:10 +0000 (+0000) Subject: included gender display using symbols X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=383a578b8dd87bb6649e3652232685e28824a8c1;p=lobster included gender display using symbols svn path=/trunk/; revision=40 --- 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]''