I love democracy! And Python!
Requirements:
- Python 3.10+
python3 -m virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt
cp .env.sample .env
nano .env
pip3 freeze > requirements.txt
alembic upgrade head
python3 -m unittest discover -s tests/
PYTHONPATH=$(pwd) alembic revision -m "MIGRATION_NAME"
Make sure to keep track of all your newly inserted messages when creating a new feature. When adding new messages to the application, please update bot/i18n/base.pot file with the newly inserted messages. After doing so, run the following from the project root directory:
bash bot/i18n/merge_pot_to_po.sh
Then add manually your changes to the language files you wish to translate. After translating,
run the following, replacing $LANGUAGE
to the language code you've just translated:
msgfmt -o bot/i18n/$LANGUAGE/LC_MESSAGES/base.mo bot/i18n/$LANGUAGE/LC_MESSAGES/base.po