2017-09-20 05:37:47 +08:00
|
|
|
#!/bin/bash
|
|
|
|
# This script compiles the unobot.po file for all languages.
|
|
|
|
|
2019-08-13 15:25:05 +08:00
|
|
|
if [ ${PWD##*/} = "locales" ];
|
|
|
|
then
|
|
|
|
function compile {
|
|
|
|
cd './'$1'/LC_MESSAGES/'
|
|
|
|
msgfmt unobot.po -o unobot.mo
|
|
|
|
cd ../../
|
|
|
|
};
|
|
|
|
else
|
|
|
|
echo 'Only execute this in the "locales" directory'
|
|
|
|
exit 1;
|
|
|
|
fi
|
2017-09-20 05:37:47 +08:00
|
|
|
|
|
|
|
# Deutsch
|
|
|
|
compile de_DE
|
|
|
|
# Spanish
|
|
|
|
compile es_ES
|
|
|
|
# Indonesian
|
|
|
|
compile id_ID
|
|
|
|
# Italian
|
|
|
|
compile it_IT
|
|
|
|
# Portuguese
|
|
|
|
compile pt_BR
|
|
|
|
# Russian
|
|
|
|
compile ru_RU
|
2019-11-07 19:00:35 +08:00
|
|
|
# Turkish
|
|
|
|
compile tr_TR
|
2017-09-20 05:37:47 +08:00
|
|
|
# Simplified Chinese
|
|
|
|
compile zh_CN
|
2019-11-07 19:00:35 +08:00
|
|
|
# Chinese (Honk Kong)
|
2017-09-20 05:37:47 +08:00
|
|
|
compile zh_HK
|
|
|
|
# Traditional Chinese
|
|
|
|
compile zh_TW
|
2021-01-04 21:34:16 +08:00
|
|
|
# Catalan
|
|
|
|
compile ca_CA
|
2021-02-21 13:18:22 +08:00
|
|
|
#Malayalam
|
2021-02-21 18:55:41 +08:00
|
|
|
compile ml_IN
|