Mosqlimate-project / Data-platform

Mosqlimate data Platform.
GNU General Public License v3.0
6 stars 6 forks source link

[Translation] Add translations to the .po files #165

Open luabida opened 7 months ago

As-ajay06 commented 4 months ago

can you guide me with some instructions, how should I get started?

luabida commented 4 months ago

Hello @As-ajay06, you will need to be able of building the project locally, please follow the CONTRIBUTING.md guide to have the services running locally.

With the containers up and running, you can run the commands: sugar exec --service django --options -it --cmd python manage.py makemessages -l es sugar exec --service django --options -it --cmd python manage.py makemessages -l pt_BR

These commands will populate the .po files located in src/templates/locale/<language>/django.po, there every text marked to be translated will be available to be translated, the msgid is the original text, and everything that goes in msgstr will replace the original for anything you set there. To check the translation results in the localhost, access the page with the translated text after running the command: sugar exec --service django --options -it --cmd python manage.py compilemessages