Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit e3def02

Browse files
committed
Copy translations to target
1 parent dffa4eb commit e3def02

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

i18n_update.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@
55
USERNAME=jordimash
66
PASSWORD=`cat ~/.transifex_password`
77

8-
rm -I i18n-temp
9-
mkdir i18n-temp
10-
cd i18n-temp
118

129
# list of languages in the same order as on https://www.transifex.com/projects/p/languagetool/:
1310
for lang in en ast be br ca zh da nl eo fr gl de el_GR it pl ru sl es tl uk ro sk cs sv is lt km pt_PT pt_BR fa
1411
do
1512
SOURCE=downloaded.tmp
16-
curl --user $USERNAME:$PASSWORD https://www.transifex.com/api/2/project/languagetool/resource/lt-for-android/translation/$lang/?file >strings-$lang.xml
13+
curl --user $USERNAME:$PASSWORD https://www.transifex.com/api/2/project/languagetool/resource/lt-for-android/translation/$lang/?file >$SOURCE
1714
localLang=$lang
1815
if [ $lang = 'pt_PT' ]; then
1916
# special case: if this is named pt_PT it never becomes active because we use "lang=xx" links
2017
# in the web app that don't contain the country code:
2118
localLang=pt
2219
fi
20+
cp $SOURCE CorrectorSoftcatala/src/main/res/values-$localLang/strings.xml
2321
done

0 commit comments

Comments
 (0)