Skip to content

fix(i18n): fix flowview textdomains, json_encode JS strings, refresh POT, and clean catalogs - #318

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_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.

…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>
@sonarqubecloud

Copy link
Copy Markdown

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