Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.56 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.56 KB

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.

  1. You need to have docker installed.
  2. You need to have docker-compose installed.
  3. Clone the project git clone https://github.com/geokrety/GeoKrety-mole-name.git.
  4. Copy config/custom.example.conf to config/custom.conf, and adjust to your needs.
  5. Build the docker image docker-compose build.
  6. 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