diff --git a/README.md b/README.md index 453a044..3dfe7e6 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ To run the bot yourself, you will need: ## Setup - Get a bot token from [@BotFather](http://telegram.me/BotFather) and change configurations in `config.json`. -- Convert all language files from `.po` files to `.mo` files using `msgfmt unobot.po -o unobot.mo`. - Also try `find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec bash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \;`. +- Convert all language files from `.po` files to `.mo` by executing the bash script `compile.sh` located in the `locales` folder. + Another option is: `find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec bash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \;`. - Use `/setinline` and `/setinlinefeedback` with BotFather for your bot. - Install requirements (using a `virtualenv` is recommended): `pip install -r requirements.txt` diff --git a/TRANSLATORS.md b/TRANSLATORS.md index 0d77dc7..70c9eeb 100644 --- a/TRANSLATORS.md +++ b/TRANSLATORS.md @@ -2,15 +2,15 @@ The following awesome people contributed to this project by translating it: -| Locale | Translators | -|--------|-------------------------------------------------------------------------------------------------------------| -| de_DE | [Jannes Höke](https://github.com/jh0ker) | -| es_ES | [Ricardo Valverde Hernández](https://telegram.me/rivh1), Victor, Yuga | -| id_ID | [Erwin Guo](https://www.facebook.com/erwinfransiscus) | -| it_IT | Carola Mariano, ɳick | -| pt_BR | [João Rodrigo Couto de Oliveira](http://twitter.com/JoaoRodrigoJR) | -| zh_CN | [imlonghao](https://github.com/imlonghao) | -| zh_HK | [Jed Cheng](https://www.facebook.com/profile.php?id=100002258388821) | -| zh_TW | [Eugene Lam](https://www.facebook.com/eugenelam1118), [jimchen5209](https://www.youtube.com/user/jimchen5209)| +| Locale | Translators | +|--------|--------------------------------------------------------------------------------------------------------------| +| de_DE | [Jannes Höke](https://github.com/jh0ker) | +| es_ES | [José.A Rojo](https://github.com/J4RV), [Ricardo Valverde Hernández](https://telegram.me/rivh1), Victor, Yuga| +| id_ID | [Erwin Guo](https://www.facebook.com/erwinfransiscus) | +| it_IT | Carola Mariano, ɳick | +| pt_BR | [João Rodrigo Couto de Oliveira](http://twitter.com/JoaoRodrigoJR) | +| zh_CN | [imlonghao](https://github.com/imlonghao) | +| zh_HK | [Jed Cheng](https://www.facebook.com/profile.php?id=100002258388821) | +| zh_TW | [Eugene Lam](https://www.facebook.com/eugenelam1118), [jimchen5209](https://www.youtube.com/user/jimchen5209)| Please add yourself here alphabetically when you submit your first translation. diff --git a/locales/compile.sh b/locales/compile.sh new file mode 100644 index 0000000..02046c4 --- /dev/null +++ b/locales/compile.sh @@ -0,0 +1,27 @@ +#!/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