bugfix, default to input for missing translations
authorpaul <paul@plutz.net>
Wed, 6 Apr 2016 18:38:44 +0000 (18:38 +0000)
committerpaul <paul@plutz.net>
Wed, 6 Apr 2016 18:38:44 +0000 (18:38 +0000)
svn path=/trunk/; revision=22

misc.sh

diff --git a/misc.sh b/misc.sh
index adc879b..54c3dc6 100755 (executable)
--- a/misc.sh
+++ b/misc.sh
@@ -53,5 +53,5 @@ invalidate(){
 
 declare -A item_name
 l10n(){
-  [ -n "$item_name[$1]+x" ] && printf %s "$item_name[$1]" || printf %s "$1"
+  [ -n "${item_name[$1]+x}" ] && printf %s "$item_name[$1]" || printf %s "$1"
 }