Repository navigation
fix(i18n): fix flowview textdomains, json_encode JS strings, refresh POT, and clean catalogs - #318
Merged
Merged
Conversation
…POT, and clean catalogs
Fixes mechanical localization issues in `plugin_flowview`:
- Fix 4 wrong textdomains (`'fowview'` in `includes/arrays.php`, `'monitor'` in `flowview_schedules.php`, `'analytics'` in `includes/functions.php`) and add `'flowview'` to 19 missing-domain calls (including passing missing `$name` in `flowview.php` and splitting `'Every %d Weeks', 2` in `flowview_schedules.php`).
- Embed 15 translated JavaScript string literals in `includes/functions.php` with `json_encode(...)`, and construct the `#startDate` icon element in `flowview_schedules.php` via jQuery with `json_encode(__('Start Date Selector', 'flowview'))` so translations with apostrophes do not display raw `'` entities.
- Refresh `locales/po/cacti.pot` to include the 2 missing filter-materialization messages and updated `Every %d Weeks` string.
- Fix the inverted Hindi `Plural-Forms` header (`plural=n > 1;`) in `hi-IN.po`, strip the U+202B bidi override in `he-IL.po`, decode baked HTML quote entities (`"` / `'`) across 7 catalogs, recompile all 8 modified `.mo` binaries, and remove orphaned `locales/LC_MESSAGES/ka.mo`.
Verified with `php -l`, `node --check` on rendered script blocks, `msgfmt --check --check-format --check-header --check-domain`, and `tests/bin/validate-manifest.php`.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
…eader 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_flowview:'fowview'inincludes/arrays.php,'monitor'inflowview_schedules.php,'analytics'inincludes/functions.php) and add'flowview'to 19 missing-domain calls (including passing missing$nameinflowview.phpand splitting'Every %d Weeks', 2inflowview_schedules.php).includes/functions.phpwithjson_encode(...), and construct the#startDateicon element inflowview_schedules.phpvia jQuery withjson_encode(__('Start Date Selector', 'flowview'))so translations with apostrophes do not display raw'entities.locales/po/cacti.potto include the 2 missing filter-materialization messages and updatedEvery %d Weeksstring.Plural-Formsheader (plural=n > 1;) inhi-IN.po, strip the U+202B bidi override inhe-IL.po, decode baked HTML quote entities ("/') across 7 catalogs, recompile all 8 modified.mobinaries, and remove orphanedlocales/LC_MESSAGES/ka.mo.Verified with
php -l,node --checkon rendered script blocks,msgfmt --check --check-format --check-header --check-domain, andtests/bin/validate-manifest.php.