mirror of
https://github.com/brazilofmux/tinymux
synced 2026-08-13 00:23:11 -04:00
Phase-2 constant-notify work banned printf conversions from the catalogue
and from M_() at format call sites. Whole-sentence formats like
"You give %d %s to %s." cannot be localised that way, so Phase 3 needs a
different contract:
* tests/format/check_formats.py accepts M_("…") as a constant format and
still checks the *source* msgid against mux_vsnprintf's conversions.
* tests/nls/check_nls.py no longer bans formats in the pot; it requires
every catalogue msgstr to carry the same conversion sequence (type and
order) as its msgid. mux_vsnprintf has no positional %1$s yet.
Content: mark rob.cpp's remaining player/staff format templates with M_
(tprintf, mux_sprintf, raw_broadcast for give/kill/suspect). Constants
there were already M_ from the earlier rob notify slice. Regenerate pot,
xx, and the .mo without fuzzy entries.
Verified: make test-format, make test-nls.
|
||
|---|---|---|
| .. | ||
| check_formats.py | ||
| Makefile | ||
| test_format.cpp | ||