Bläddra i källkod

Fix findMissingTranslations.sh for 2.0.x

Scott Lahteine 6 år sedan
förälder
incheckning
13940268a2
1 ändrade filer med 7 tillägg och 2 borttagningar
  1. 7
    2
      buildroot/share/scripts/findMissingTranslations.sh

+ 7
- 2
buildroot/share/scripts/findMissingTranslations.sh Visa fil

@@ -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

Laddar…
Avbryt
Spara