Pārlūkot izejas kodu

adapt tools/add-language.sh script

B. Petersen 5 gadi atpakaļ
vecāks
revīzija
9a6d8c8851
1 mainītis faili ar 3 papildinājumiem un 15 dzēšanām
  1. 3 15
      tools/add-language.sh

+ 3 - 15
tools/add-language.sh

@@ -1,19 +1,7 @@
 # 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, pt-BR 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 "to add a language, browse in Xcode to "
+echo "Project settings > Info > Localisations "
+echo "and add the desired lanugage, then:"
 echo "- if needed, language mappings can be added to tools/.tx/config"
 echo "- then, call ./tools/tx-pull-translations"