Repository navigation
fix(i18n): bind thold textdomains, json_encode JS strings, and fix PO HTML/entity/plural defects - #886
Merged
Conversation
… HTML/entity/plural defects Fixes mechanical localization issues in `plugin_thold`: - Pass `'thold'` to 42 missing or uppercased (`'THOLD'`) plugin textdomain calls across `notify_lists.php`, `notify_queue.php`, `setup.php`, `thold.php`, `thold_templates.php`, and `includes/arrays.php`. - Embed all 6 translated multiselect JavaScript strings in `thold.php` with `json_encode(...)` to prevent quote-breaking `SyntaxError` failures. - Fix `locales/po/pt-PT.po` `Plural-Forms` from `plural=n > 1;` to `plural=n != 1;` and strip 2 stray U+202B bidi overrides in `he-IL.po`. - Repair HTML markup defects across catalogs: unbalanced `<body><body>...<b></b>Apparaat</b>` in `nl-NL.po`, doubled `<html><body>` and translated `<ОПИСАНИЕ>` tags in `ru-RU.po`, bogus closing `</GRAPH></SUBJECT></URL></HOSTNAME></DESCRIPTION>` tags in `ar-SA.po`, extra `<br>` tags in `pl-PL.po`, stray `<b>` in `ja-JP.po` and `zh-CN.po`, missing `<SITE>`/`<LOCATION>`/`<DNOTES>` lines in `zh-CN.po`, and stale `<br>RECORD NOT UPDATED!` suffixes across 16 locales. - Decode baked HTML entities (`"`, `'`, double-escaped `&#60`/`&#62`) and recompile all 21 modified `.mo` binaries. Verified with `php -l`, `node --check` on the rendered script block, `msgfmt --check --check-format --check-header --check-domain`, and `tests/bin/validate-manifest.php`. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
… template actions Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
…tests Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
TheWitness
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Fixes mechanical localization issues in
plugin_thold:'thold'to 42 missing or uppercased ('THOLD') plugin textdomain calls acrossnotify_lists.php,notify_queue.php,setup.php,thold.php,thold_templates.php, andincludes/arrays.php.thold.phpwithjson_encode(...)to prevent quote-breakingSyntaxErrorfailures.locales/po/pt-PT.poPlural-Formsfromplural=n > 1;toplural=n != 1;and strip 2 stray U+202B bidi overrides inhe-IL.po.<body><body>...<b></b>Apparaat</b>innl-NL.po, doubled<html><body>and translated<ОПИСАНИЕ>tags inru-RU.po, bogus closing</GRAPH></SUBJECT></URL></HOSTNAME></DESCRIPTION>tags inar-SA.po, extra<br>tags inpl-PL.po, stray<b>inja-JP.poandzh-CN.po, missing<SITE>/<LOCATION>/<DNOTES>lines inzh-CN.po, and stale<br>RECORD NOT UPDATED!suffixes across 16 locales.",', double-escaped&#060/&#062) and recompile all 21 modified.mobinaries.Verified with
php -l,node --checkon the rendered script block,msgfmt --check --check-format --check-header --check-domain, andtests/bin/validate-manifest.php.