3 Commits
Author SHA1 Message Date
Thomas Vincent 40270055d0 ci(i18n): [develop] align audit_po.py placeholder checks with Weblate php_format (#8970)
Allow bare in-order printf placeholders (%s, %d) alongside valid all-positional placeholders (%1$s, %2$d or reordered %2$d, %1$s) in multi-variable msgstr entries so CI no longer conflicts with Weblate's php_format check.

Keep HTML tag parity and extra-placeholder checks strict, strip literal %% pairs before matching, and reject mixed positional/bare placeholders, out-of-range positional indices, missing/extra placeholders, and conversion-specifier mismatches.

Fixes Cacti/cacti#8968

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-26 00:31:41 -08:00
Thomas Vincent b430f5b1ec fix(tests): make hooks, CI helpers and the i18n audit fail closed (#8457)
* fix(hooks): check staged blobs and fail closed in the changelog tools

The pre-commit hooks read working-tree files while claiming to check staged content, check-changelog.py passed when its base diff failed, and fold-changelog.py deleted fragments it had not validated.

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

* fix(tests): make CI helper scripts fail when they check nothing

check_all_pages.sh passed without logging in or crawling, the sink inventory accepted ripgrep errors, install_packages.sh and copyright_year.sh lost their failures, and the LDAP spec asserted before navigation finished.

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

* fix(i18n): audit only changed .po entries and keep contributor badges separate

audit_po.py failed every translation PR on pre-existing errors and matched non-printf text as conversions; update-contributors.py leaked badges between aliased contributors.

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

* docs(changelog): add fragment for #8457

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

* test(e2e): move the pointer off the Deepness multiselect button

Deepness sets a zero body margin, so the unhovered #ms-button sits at the viewport origin and headless Chromium on Linux intermittently applies :hover to it.

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

* ci: pull pinned integration database from authenticated mirror

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

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-10-23 08:17:12 -04:00
Thomas VincentandnetniV bf048e836e ci: add i18n validation workflow for .po translation files (#6810)
Refs #6809

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Co-authored-by: netniV <netniv@hotmail.com>
2026-03-11 22:42:31 +00:00