Skip to content

Translation updates#5

Closed
taniwallach wants to merge 1 commit intoopenwebwork:developfrom
taniwallach:translation-updates
Closed

Translation updates#5
taniwallach wants to merge 1 commit intoopenwebwork:developfrom
taniwallach:translation-updates

Conversation

@taniwallach
Copy link
Member

@taniwallach taniwallach commented Jul 22, 2022

Updates to the translation files. Relevant sincer #2 was merged.
Among the more important changes is the change from "Show correct answers" to "Show Correct Answers".
Branch was rebuilt on top of the current version of develop.

@taniwallach taniwallach requested a review from drdrew42 as a code owner July 22, 2022 14:03
@taniwallach taniwallach changed the base branch from main to develop July 22, 2022 14:36
The main change is the change from "Show correct answers"
to "Show Correct Answers" in RenderApp/Controller/FormatRenderedProblem.pm
@taniwallach taniwallach requested review from dpvc and drgrice1 and removed request for dpvc September 21, 2022 09:54
@taniwallach
Copy link
Member Author

For the record, as explained in https://github.com/openwebwork/renderer/blob/main/docs/make_translation_files.md the pot file can be updated using:

cd lib
xgettext.pl -o WeBWorK/lib/WeBWorK/Localize/standalone.pot -D PG/lib -D PG/macros -D RenderApp -D WeBWorK/lib RenderApp.pm

And then a partial update to the translation files can be done via:

cd WeBWorK/lib/WeBWorK/Localize/
find . -name '*.po' -exec bash -c "echo \"Updating {}\"; msgmerge -qUN {} standalone.pot" \;

and then the translated files need to be reviewed.

@drgrice1
Copy link
Member

A script needs to be added that takes care of the po and pot file update.

Also note that with the restructuring in #7 the location of the po/pot files will change (no more lib/WeBWorK/lib/WeBorK!).

@taniwallach taniwallach closed this May 6, 2025
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