Files
LorenEteval_Furious/Furious/Externals/AGENTS.md
T
2026-08-20 20:14:22 +08:00

1.3 KiB

Generated translation catalog guidance

  • GenTranslation.py is generated by the repository-root Translation.py; do not hand-edit it. Change source strings or the translation data and regenerate.
  • Each catalog entry uses this key order: source, supported language keys in the generator's canonical order, then isReviewed.
  • source is a deduplicated list of fully qualified Python module names discovered by the generator. Preserve generated ordering and remove stale sources through regeneration, not manual cleanup.
  • _()/gettext() extraction accepts static literals. The only f-string exception consists exclusively of bare names defined in Furious.Frozenlib.Constants; the extractor substitutes those values before catalog lookup.
  • Do not put runtime values, attribute expressions, calls, format specifications, .format(...), or ordinary brace placeholders inside a translatable expression.
  • New or changed translations remain unreviewed until a human verifies meaning. Preserve Unicode, HTML/newline semantics, and natural RU/ZH wording rather than literal word order.

Verification

  • Run Translation.py for the affected languages, inspect the generated diff for source/key ordering and stale entries, and ensure a second generation is stable.