Browse Source

Added a script to check all language files for missing translations

João Brázio 8 years ago
parent
commit
f94900ee79
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      Marlin/scripts/findMissingTranslations.sh

+ 14
- 0
Marlin/scripts/findMissingTranslations.sh View File

@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+IGNORE_DEFINES="LANGUAGE_EN_H MAPPER_NON SIMULATE_ROMFONT DISPLAY_CHARSET_ISO10646_1 MSG_H1 MSG_H2 MSG_H3 MSG_H4 MSG_MOVE_E1 MSG_MOVE_E2 MSG_MOVE_E3 MSG_MOVE_E4 MSG_N1 MSG_N2 MSG_N3 MSG_N4 MSG_DIAM_E1 MSG_DIAM_E2 MSG_DIAM_E3 MSG_DIAM_E4 MSG_E1 MSG_E2 MSG_E3 MSG_E4"
3
+
4
+for i in `awk '/#define/{print $2}' language_en.h`; do
5
+  for j in `ls language_*.h | grep -v language_en.h`; do
6
+    t=$(grep -c "${i}" ${j})
7
+    if [ "$t" -eq 0 ]; then
8
+      for k in ${IGNORE_DEFINES}; do
9
+        [ "${k}" == "${i}" ] && continue 2;
10
+      done
11
+      echo "${j},${i}"
12
+    fi
13
+  done
14
+done

Loading…
Cancel
Save