|
|
||
|---|---|---|
| alembic | ||
| app | ||
| docs | ||
| locale/en/LC_MESSAGES | ||
| scripts | ||
| .gitignore | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| docker-compose.yml | ||
| env.example | ||
| mariadb-healthcheck.sh | ||
| requirements.txt | ||
README.md
Sanic Telegram Bot [template]
Run
cd sanic-telegram-bot
# edit .env file
docker-compose up --build
Translations
Adding new language
- Update translations keys list from code
touch messages.pot
find app -name '*.py' -exec xgettext --keyword=translated -j -o messages.pot {} +
- Move
messages.pottolocale/<lang>/LC_MESSAGES/<domain>.po - Compilrequirements.txte
.poto.mo
msgfmt ru.po -o ru.mo
Log description
Sources
- [SQL] – MariaDB
- [User, options ] – User log
- [Bot, options ] – Telegram bot