Repository navigation
fix(i18n): pass format args directly to __(), fix pt-PT plurals, and decode HTML entities - #487
Merged
Merged
Conversation
…decode HTML entities Fixes mechanical localization issues in `plugin_syslog`: - Remove the outer `sprintf()` wrapper around `__()` on two partition-maintenance messages in `includes/functions.php` so `$table` and `$recovery_failed['missing']` are passed before `'syslog'`. Wrapping `__()` inside `sprintf()` caused Cacti's `__()` to consume `'syslog'` as the placeholder argument at runtime. - Fix `locales/po/pt-PT.po` `Plural-Forms` to `nplurals=2; plural=n != 1;`, strip 2 U+202B bidi overrides in `he-IL.po`, and decode baked HTML entities (`"` / `'`) across 9 catalogs (`ar-SA`, `bg-BG`, `he-IL`, `hi-IN`, `ja-JP`, `ko-KR`, `nl-NL`, `tr-TR`, `vi-VN`). - Recompile all 10 modified `.mo` binaries. Verified with `php -l`, `msgfmt --check --check-format --check-header --check-domain`, and `tests/bin/validate-manifest.php`. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
…heck 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_syslog:sprintf()wrapper around__()on two partition-maintenance messages inincludes/functions.phpso$tableand$recovery_failed['missing']are passed before'syslog'. Wrapping__()insidesprintf()caused Cacti's__()to consume'syslog'as the placeholder argument at runtime.locales/po/pt-PT.poPlural-Formstonplurals=2; plural=n != 1;, strip 2 U+202B bidi overrides inhe-IL.po, and decode baked HTML entities ("/') across 9 catalogs (ar-SA,bg-BG,he-IL,hi-IN,ja-JP,ko-KR,nl-NL,tr-TR,vi-VN)..mobinaries.Verified with
php -l,msgfmt --check --check-format --check-header --check-domain, andtests/bin/validate-manifest.php.