Rostiger / zyklus

A minimal, offline fertility tracking app.
https://rostiger.github.io/zyklus/
0 stars 1 forks source link

Add Brazilian Portuguese translation for the app #1

Open rafavital opened 3 years ago

rafavital commented 3 years ago

I would like to add Brazilian Portuguese to the list of languages.

rafavital commented 3 years ago

In the pull request #2 I have made an initial implementation of the language, though currently there is a an issue with how the "Menstruation Start" and "Menstruation End" buttons are implemented, because the app uses a combination of the "entries-start"/"entries-end" and "phase-menstruation" values of the JSON in languages.js the correct translation cannot be achieved. The button's text should be "Começo da Menstruação" and "Fim da Menstruação" for the "Menstruation Start" and "Menstruation End" equivalents.

Here are the examples:

Wrong Translation: Wrong "Menstruation Start" translation text

Correct Translation: Correct "Menstruation Start" translation text

My initial suggestion would be to add an entry in the languages.js for those specific buttons' texts