The mole without name
This side project from GeoKrety aimed to help us choose name for our mascot.
Install
We distribute a Dockerfile
and docker-compose.yml
to help you start.
- You need to have
docker
installed. - You need to have
docker-compose
installed. - Clone the project
git clone https://github.com/geokrety/GeoKrety-mole-name.git
. - Copy
config/custom.example.conf
toconfig/custom.conf
, and adjust to your needs. - Build the docker image
docker-compose build
. - Launch the container
docker-compose up -d
.
Contribute
- Open a pull request, rebased on current master
- If you add dependencies to other project, please add them to
ATTRIBUTIONS.md
Manage translations
- Extract translatable strings:
docker exec -it geokretymascottname_geokrety-mole-name_1 pybabel extract -F babel.cfg -o app/translations/messages.pot app
- Connect to crowdin and upload file
- Import Translate files into code source tree
- Compile new translations
docker exec -it geokretymascottname_geokrety-mole-name_1 pybabel compile -d app/translations/
To initialize a new language, declare it in app/main.py
, and launch docker exec -it geokretymascottname_geokrety-mole-name_1 pybabel init -i app/translations/messages.pot -d app/translations -l <lang_code>
Note: Norwegian have a problem, locale is recognized as nb
. See python-babel/flask-babel#61
Wanna help translate?
Nice! Please join us on crowdin https://crowdin.com/project/geokrety