mau_mau_bot/locales/compile.sh
Jarv a4c742bc00 Pull request with compile.sh and TRANSLATORS.md change (#41)
* Added a bash script to simplify the locale compilation

* Updated TRANSLATORS to include myself
2017-09-19 23:37:47 +02:00

28 lines
422 B
Bash

#!/bin/bash
# This script compiles the unobot.po file for all languages.
function compile {
cd '.\'$1'\LC_MESSAGES\'
msgfmt unobot.po -o unobot.mo
cd ../../
}
# Deutsch
compile de_DE
# Spanish
compile es_ES
# Indonesian
compile id_ID
# Italian
compile it_IT
# Portuguese
compile pt_BR
# Russian
compile ru_RU
# Simplified Chinese
compile zh_CN
# Chinese (Honk Kong)
compile zh_HK
# Traditional Chinese
compile zh_TW