Skip to content

fix(i18n): mark literal % in syslog search help string as no-php-format - #485

Merged
somethingwithproof merged 1 commit into
developfrom
fix/i18n-syslog-no-php-format
Nov 26, 2026
Merged

somethingwithproof merged 1 commit into
developfrom
fix/i18n-syslog-no-php-format

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

Fixes #484

Summary

  • Add /* xgettext:no-php-format */ above the logical search help __esc() call in syslog.php whose text describes SQL LIKE uses % for any number of characters.
  • Update the matching entry in locales/po/cacti.pot from #, php-format to #, no-php-format (no unrelated POT churn).
  • Record the change in CHANGELOG.md.

Verification

  • php -l syslog.php: no syntax errors.
  • php tests/bin/validate-manifest.php: manifest matches tree.
  • php tests/bin/check-i18n-pot.php upstream/develop: clean.
  • xgettext --add-location=file --no-wrap --from-code=UTF-8 -k__esc -o - syslog.php: emits #, no-php-format for the LIKE uses % message.
  • msgfmt --check-format -o /dev/null locales/po/cacti.pot: exit 0.

Annotate the logical search help __esc() call in syslog.php with /* xgettext:no-php-format */ and update locales/po/cacti.pot from #, php-format to #, no-php-format so literal SQL LIKE % syntax is not flagged as a PHP printf format specifier in Weblate.

Fixes #484

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

Copy link
Copy Markdown

@somethingwithproof
somethingwithproof merged commit 849f073 into develop Nov 26, 2026
11 checks passed
@somethingwithproof
somethingwithproof deleted the fix/i18n-syslog-no-php-format branch November 26, 2026 08:30
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.

i18n: mark literal % in syslog search help string as no-php-format

2 participants