add script to add a new language and base scripts to be called from the repo root

This commit is contained in:
B. Petersen
2018-12-13 01:55:07 +01:00
parent bc987a4591
commit 5af3284e06
+14
View File
@@ -0,0 +1,14 @@
# 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
# (needed because transifex may have different file times
# and does not overwrite old file)
touch -d "100 days ago" res/values-$LANG/strings.xml
# on problems, 'tx -d pull' gives verbose output
echo "res/values/$LANG/strings.xml added, 'tx pull' to update"