forked from serso/android-messengerpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crowdin.sh
executable file
·35 lines (25 loc) · 833 Bytes
/
crowdin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
rm -r translations
unzip messengerpp.zip -d translations
function copyTranslation {
from=$1
to=$2
if [ ! -d $to ]; then
# if directory doesn't exist create it
mkdir $to
fi
cp $from $to
}
function copyTranslations {
language=$1
resourcePostfix=$2
copyTranslation "translations/$language/strings.xml" "core/res/values$resourcePostfix"
copyTranslation "translations/$language/raw/*" "core/res/raw$resourcePostfix"
copyTranslation "translations/$language/sms/*" "realm-sms/res/values$resourcePostfix"
copyTranslation "translations/$language/vk/*" "realm-vk/res/values$resourcePostfix"
copyTranslation "translations/$language/xmpp/*" "realm-xmpp/res/values$resourcePostfix"
}
copyTranslations "en" ""
copyTranslations "ru" "-ru"
copyTranslations "uk" "-uk"
rm -r translations