Skip to content

Translated documentation #24

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

Merged
merged 18 commits into from
Feb 20, 2023
Merged

Translated documentation #24

merged 18 commits into from
Feb 20, 2023

Conversation

kronn
Copy link
Member

@kronn kronn commented Feb 18, 2023

The translations were in the wrong locations, leading to overhead in transifex and a simply not-working setup for readthedocs.

I added a Rakefile that takes care of updating the translations, both the sources and the translations.

After changes in the source (both changed files and new files), transifex needs updated sources. This extraction and is handled by rake sources:update.

According to the docs and local tests, the translations need to be in locales/<lang>/LC_MESSAGES/*. Theses need to be committed and pushed so that readthedocs can build the multi-language website. This is handled by rake translations:update. The updated code is not pushed to GitHub. This is slightly inconsistent, but a git push feels more harmful than tx push --source. I am open to be convinced otherwise, though.

Fixes hitobito/hitobito#1894

@daniel-illi daniel-illi self-requested a review February 20, 2023 14:27
Copy link
Member

@daniel-illi daniel-illi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@daniel-illi daniel-illi merged commit fd14aee into master Feb 20, 2023
@kronn kronn deleted the translated-documentation branch August 15, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Readthedocs: Übersetzung FR & IT
2 participants