add-language.sh 642 B

1234567891011121314151617181920
  1. # add a language, must be executed from the repo root
  2. if [ $# -eq 0 ]
  3. then
  4. echo "Please specify the language to add as the first argument (dk, ru etc.)"
  5. exit
  6. fi
  7. LANG=$1
  8. mkdir ./deltachat-ios/$LANG.lproj/
  9. cp ./deltachat-ios/en.lproj/Localizable.strings ./deltachat-ios/$LANG.lproj/
  10. cp ./deltachat-ios/en.lproj/Localizable.stringsdict ./deltachat-ios/$LANG.lproj/
  11. cp ./deltachat-ios/en.lproj/Untranslated.stringsdict ./deltachat-ios/$LANG.lproj/
  12. echo "res/values-$LANG/strings.xml added:"
  13. echo "- if needed, language mappings can be added to tools/.tx/config"
  14. echo "- tx pull"
  15. echo " (on problems, 'tx -d pull' gives verbose output)"