Pull request with compile.sh and TRANSLATORS.md change (#41)
* Added a bash script to simplify the locale compilation * Updated TRANSLATORS to include myself
This commit is contained in:
parent
80fc59f124
commit
a4c742bc00
3 changed files with 39 additions and 12 deletions
|
@ -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`
|
||||
|
||||
|
|
|
@ -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) |
|
||||
| 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.
|
||||
|
|
27
locales/compile.sh
Normal file
27
locales/compile.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue