mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 17:59:39 +02:00
move scripts to new scripts
folder
This commit is contained in:
parent
3b4ed28269
commit
678385a887
11 changed files with 9 additions and 9 deletions
24
scripts/add-language.sh
Executable file
24
scripts/add-language.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
# 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 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 "- pull translations using ./scripts/tx-pull-translations.sh"
|
||||
echo " (on problems, 'tx -d pull' gives verbose output)"
|
Loading…
Add table
Add a link
Reference in a new issue