|
@@ -9,7 +9,9 @@
|
9
|
9
|
# If no language codes are specified then all languages will be checked
|
10
|
10
|
#
|
11
|
11
|
|
12
|
|
-[ -d "Marlin" ] && cd "Marlin"
|
|
12
|
+LANGHOME="Marlin/src/lcd/language"
|
|
13
|
+
|
|
14
|
+[ -d $LANGHOME ] && cd $LANGHOME
|
13
|
15
|
|
14
|
16
|
FILES=$(ls language_*.h | grep -v -E "(_en|_test)\.h" | sed -E 's/language_([^\.]+)\.h/\1/')
|
15
|
17
|
declare -A STRING_MAP
|
|
@@ -40,5 +42,8 @@ done
|
40
|
42
|
echo
|
41
|
43
|
|
42
|
44
|
for K in $( printf "%s\n" "${!STRING_MAP[@]}" | sort ); do
|
43
|
|
- printf "%-35s :%s\n" "$K" "${STRING_MAP[$K]}"
|
|
45
|
+ case "$#" in
|
|
46
|
+ 1 ) echo $K ;;
|
|
47
|
+ * ) printf "%-35s :%s\n" "$K" "${STRING_MAP[$K]}" ;;
|
|
48
|
+ esac
|
44
|
49
|
done
|