deltachat/tools/add-language.sh
2019-08-25 15:48:30 +02:00

18 lines
595 B
Bash
Executable file

# add a language, must be executed from the repo root
LANG=$1
mkdir res/values-$LANG/
cp res/values/strings.xml res/values-$LANG/strings.xml
# set time to old date because transifex may have different file times
# and does not overwrite old file
# (using -t as sth. as -d "100 days ago" does not work on mac)
touch -t 201901010000 res/values-$LANG/strings.xml
echo "res/values-$LANG/strings.xml added:"
echo "- add the name to res/values/arrays.xml"
echo "- if needed, language mappings can be added to .tx/config"
echo "- tx pull"
echo " (on problems, 'tx -d pull' gives verbose output)"