Selaa lähdekoodia

add a script that helps adding languages

B. Petersen 5 vuotta sitten
vanhempi
commit
8af01d6fe3
1 muutettua tiedostoa jossa 20 lisäystä ja 0 poistoa
  1. 20 0
      tools/add-language.sh

+ 20 - 0
tools/add-language.sh

@@ -0,0 +1,20 @@
+# add a language, must be executed from the repo root
+
+if [ $# -eq 0 ]
+then
+  echo "Please specify the language to add as the first argument (dk, ru etc.)"
+  exit
+fi
+
+LANG=$1
+
+mkdir ./deltachat-ios/$LANG.lproj/
+
+cp ./deltachat-ios/en.lproj/Localizable.strings ./deltachat-ios/$LANG.lproj/
+cp ./deltachat-ios/en.lproj/Localizable.stringsdict ./deltachat-ios/$LANG.lproj/
+cp ./deltachat-ios/en.lproj/Untranslated.stringsdict ./deltachat-ios/$LANG.lproj/
+
+echo "res/values-$LANG/strings.xml added:"
+echo "- if needed, language mappings can be added to tools/.tx/config"
+echo "- tx pull"
+echo "  (on problems, 'tx -d pull' gives verbose output)"