Skip to content

Update localization for the renderer. #30

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

drgrice1
Copy link
Member

The renderer no longer should have translations for PG since PG now has its own translations. So the localilzations only include the maketext calls in the templates, lib/WeBWorK, and lib/RenderApp directories, as well as any in the lib/RenderApp.pm file. Although in actuallity all of them are in the templates directory.

The docs/make_translation_files.md file has been removed. Instead the bin/update-localization-files script handles this. Run ./bin/update-localization-files -h for usage. Basically run ./bin/update-localization-files to only update the pot file, or run ./bin/update-localization-files -p to update the pot file and the po files. You can also run ./bin/update-localization-files -l heb (for example) to update the pot file and the heb.po file.

Note that the pot file is renamed to lib/WeBWorK/Localize/renderer.pot instead of lib/WeBWorK/Localize/standalone.pot since this is the renderer app, not the standalone app. Generally, I would like to stop calling this the "standalone renderer" and just call it the "renderer" (or perhaps better the "pg-renderer"?).

The lib/WeBWorK/Localize.pm file has been updated with changes similar to those made for WeBWorK.

Also remove the language_subroutine from the WeBWorK::PG->new calls. That is not a valid translation option anymore, and doesn't do anything.

@drgrice1 drgrice1 force-pushed the localization-update branch 3 times, most recently from b747d99 to 99ee425 Compare June 23, 2025 13:04
The renderer no longer should have translations for PG since PG now has
its own translations.  So the localilzations only include the `maketext`
calls in the `templates`, `lib/WeBWorK`, and `lib/RenderApp`
directories, as well as any in the `lib/RenderApp.pm` file.  Although in
actuallity all of them are in the `templates` directory.

The `docs/make_translation_files.md` file has been removed.  Instead the
`bin/update-localization-files` script handles this.  Run
`./bin/update-localization-files -h` for usage.  Basically run
`./bin/update-localization-files` to only update the pot file, or run
`./bin/update-localization-files -p` to update the pot file and the po
files.  You can also run `./bin/update-localization-files -l heb` (for
example) to update the pot file and the heb.po file.

Note that the pot file is renamed to `lib/WeBWorK/Localize/renderer.pot`
instead of `lib/WeBWorK/Localize/standalone.pot` since this is the
`renderer` app, not the `standalone` app.  Generally, I would like to
stop calling this the "standalone renderer" and just call it the
"renderer" (or perhaps better the "pg-renderer"?).

The `lib/WeBWorK/Localize.pm` file has been updated with changes similar
to those made for WeBWorK.

Also remove the `language_subroutine` from the `WeBWorK::PG->new` calls.
That is not a valid translation option anymore, and doesn't do anything.
@drgrice1 drgrice1 force-pushed the localization-update branch from 99ee425 to 4209b59 Compare June 23, 2025 13:09
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.

1 participant