Update localization for the renderer. #30
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The renderer no longer should have translations for PG since PG now has its own translations. So the localilzations only include the
maketextcalls in thetemplates,lib/WeBWorK, andlib/RenderAppdirectories, as well as any in thelib/RenderApp.pmfile. Although in actuallity all of them are in thetemplatesdirectory.The
docs/make_translation_files.mdfile has been removed. Instead thebin/update-localization-filesscript handles this. Run./bin/update-localization-files -hfor usage. Basically run./bin/update-localization-filesto only update the pot file, or run./bin/update-localization-files -pto 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.potinstead oflib/WeBWorK/Localize/standalone.potsince this is therendererapp, not thestandaloneapp. 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.pmfile has been updated with changes similar to those made for WeBWorK.Also remove the
language_subroutinefrom theWeBWorK::PG->newcalls. That is not a valid translation option anymore, and doesn't do anything.