Skip to content
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

Update po files, containing translation messages #264

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

jonas-rem
Copy link
Collaborator

@jonas-rem jonas-rem commented Dec 9, 2024

Based on #263

@annie-pixel I removed the comment lines in the po files, as those cause very large diffs at minimal changes of the content. Can you check if you observe any disadvantages when using the po files with poedit.

@jonas-rem jonas-rem requested a review from annie-pixel December 9, 2024 18:12
@jonas-rem jonas-rem marked this pull request as draft December 9, 2024 18:12
@jonas-rem jonas-rem changed the title Wip/[email protected]/update po files Update po files, containing translation messages Dec 10, 2024
Base automatically changed from WIP/[email protected]/fix_replacements to main December 12, 2024 11:09
po files contain translation messages. Sphinx generates comment lines,
prefixed with '#:' that show where the translated paragraph belongs to.
The bsp manuals are build out of multiple .rsti files, once a line in an
.rsti file changes, all subsequent lines of the generated .rst file will
change. This creates huge diffs, that do not offer real advantages.

The comment lines are not used by the tooling and can be removed.

This commit also introduces a script that performs this cleanup. This
script is invoked each time the internationalization files are updated:

  sphinx -e py3-intl

Signed-off-by: Jonas Remmert <[email protected]>
@jonas-rem jonas-rem marked this pull request as ready for review December 12, 2024 11:12
@jonas-rem
Copy link
Collaborator Author

jonas-rem commented Dec 12, 2024

@annie-pixel updated this PR after merging #263. Can you review it?

@jonas-rem jonas-rem merged commit eac0661 into main Dec 13, 2024
5 checks passed
@jonas-rem jonas-rem deleted the WIP/[email protected]/update_po_files branch December 13, 2024 07:14
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.

2 participants