-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Portuguese translation #697
base: dev
Are you sure you want to change the base?
Conversation
@SrNetoChan please update https://github.com/SrNetoChan/g3w-client/blob/dev/src/locales/index.js adding pt.js module as other languages. Thanks |
Do we need to add a portuguese flag somewhere? |
We need to add it to admin. |
@SrNetoChan If you don't want to wait for ages, I would recommend you try to submit a PR for the admin side too. You can take this one as inspiration: g3w-suite/g3w-admin#775 |
@Raruto is there a correct way to create the po files, or a simple copy past from polish will do? |
@SrNetoChan I'm not very knowledgeable about django. Probably something like the following: # 1. generate .po files
python3 g3w-admin/manage.py makemessages -l pt
# 2. edit .po files (translations)
# eg: locale/pt/LC_MESSAGES/django.po
# > msgid "Welcome to my portfolio"
# > msgstr "Willkommen auf meiner Portfolio Webseite"
# 3. generate .mo files (compile translations)
python3 g3w-admin/manage.py compilemessages You can also run this command to list all available django commands:
Rif: |
Here's the translation file for European Portuguese.