Repository navigation
fix(i18n): use monitor text domain for monitor_list setting and refresh cacti.pot - #293
Merged
Merged
Conversation
…sh cacti.pot Pass the 'monitor' gettext domain instead of 'thold' for the monitor_list setting label and description in setup.php so translations resolve against monitor's catalog at runtime. Refresh locales/po/cacti.pot to include the two current monitor_enable and monitor_disable confirmation strings and drop the removed placeholder variant. Leave per-language .po and .mo catalogs untouched. Fixes #292. Related: Cacti/cacti#8907, Cacti/cacti#8924 Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
…o misses Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Remove locales/LC_MESSAGES/ka.mo left behind after the locale rename to ka-GE (no matching ka.po exists; ka-GE.mo is already present). Refs #292, Cacti/cacti#8925. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
xmacan
approved these changes
Nov 24, 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 #292
Related: Cacti/cacti#8907, Cacti/cacti#8924
Changes
'monitor'gettext text domain instead of'thold'for themonitor_listsetting label and description insetup.php, and for the Criticality label insetup.phpthat passed none.locales/po/cacti.potto include the currentmonitor_enable/monitor_disableconfirmation strings and drop the removed placeholder variant (leaving per-language.po/.mocatalogs untouched for Weblate).tests/Unit/I18nTextDomainTest.php(scan intests/bin/check-i18n-domain.php, PHP tokenizer based): every translation helper call in the plugin's own PHP files must pass the'monitor'text domain; four existing calls without it are listed with their counts.monitor_config_settings()intests/Unit/MonitorConfigSettingsTest.phpand a guardedget_current_page()stub intests/bootstrap-unit.php.CHANGELOG.md.Verification
php -lon all plugin PHP filesphp tests/bin/validate-manifest.phpphp tests/bin/check-i18n-pot.php origin/developmsgfmt --check-format -o /dev/null locales/po/cacti.pot