tracim / tracim

Threads, files and pages with status and full history. All in the same place.
https://tracim.fr/
Other
219 stars 38 forks source link

Feat: add documentation about how to add new language in Tracim #3003

Open PhilippeAccorsi opened 4 years ago

PhilippeAccorsi commented 4 years ago

Feature description

We need an explicit documentation about what is necessary to add new translation in Tracim. Also what we need to do to update this translation when new development is done (ask contributor to update his translation? Do nothing and if something is not translated correctly, contributor can update translation?)

Context

This is a list (not complete list) of what or where change is necessary to add new language in Tracim:

Prerequisites

Impacted components

Extra information

raphj commented 4 years ago

We need to define a process on what to do to handle external contributions related to the translations.

Should we ask the contributor if they would like us to ask him when updating the translation is needed.

We also should think about setting up a collaborative translation platform. LibreOffice uses Weblate for instance.

PhilippeAccorsi commented 4 years ago

Updated issue with Caldav translation.

inkhey commented 4 years ago

For backend, the documentation is here: https://github.com/tracim/tracim/blob/develop/backend/doc/i18n.md It's for all translation in backend, it's mostly (only ?) used for email template but may be used in other backend context.

It's also important to notice that backend does not really store the fact it support this or this language, and there is no endpoint to say "we support these languages".

So, if translation is done only in frontend, user will be set to the correct language but translation will not work as expected for backend side things like email templates. In the other side, if frontend doesn't support a langage but backend did, unless you use api directly, frontend will not let you change the lang.

raphj commented 4 years ago

In the frontend, here are some files to update (not exhaustive, feel free to edit my comment):

This needs improvement and automation that I'd by happy to take.