Skip to content

fix(i18n): json_encode JS dialog titles, fix hi-IN plurals, and strip he-IL bidi overrides - #59

Merged
TheWitness merged 2 commits into
developfrom
fix/i18n-mechanical-defects
Nov 26, 2026
Merged

TheWitness merged 2 commits into
developfrom
fix/i18n-mechanical-defects

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

Fixes mechanical localization issues in plugin_wmi:

  • Embed the two translated jQuery UI dialog titles in wmi_tools.php with json_encode(...) so translations with apostrophes (including nl-NL on Common Queries (Click to Select)) no longer cause a JavaScript SyntaxError.
  • Fix the inverted Hindi Plural-Forms header in locales/po/hi-IN.po (plural=n > 1;) and strip stray U+202B bidi overrides in locales/po/he-IL.po.
  • Recompile locales/LC_MESSAGES/hi-IN.mo and he-IL.mo.

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.

… he-IL bidi overrides

Fixes mechanical localization issues in `plugin_wmi`:

- Embed the two translated jQuery UI dialog titles in `wmi_tools.php` with `json_encode(...)` so translations with apostrophes (including `nl-NL` on `Common Queries (Click to Select)`) no longer cause a JavaScript `SyntaxError`.
- Fix the inverted Hindi `Plural-Forms` header in `locales/po/hi-IN.po` (`plural=n > 1;`) and strip stray U+202B bidi overrides in `locales/po/he-IL.po`.
- Recompile `locales/LC_MESSAGES/hi-IN.mo` and `he-IL.mo`.

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>
…gcheck

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

@TheWitness
TheWitness merged commit a024e7c into develop Nov 26, 2026
8 checks passed
@TheWitness
TheWitness deleted the fix/i18n-mechanical-defects branch November 26, 2026 19:41
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.

3 participants