ludic.i18n: keys (phase 26.1) - en.po as the base, tr/trf/trn marked strings made into text by L, keyed plurals, the fallback to English then the key ([[key]] loud in a dev build), the English form beside it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 23:16:12 +03:00
parent 82c652ca31
commit f0096aec87
10 changed files with 355 additions and 4 deletions

View file

@ -45,6 +45,16 @@ export state I18nState {
forms: []string = null # three forms per entry, "" where the file has fewer
plural_rule: int = 0 # PL_*
tabs: []I18nTables = null # by language: its lookups once read, kept for the next switch
base_exact: Dict = null # en.po, under every language: a key -> index into base_out
base_out: []string = null
base_plural: Dict = null # a plural key -> index into base_forms / 3
base_forms: []string = null
base_rule: int = 0
base_tried: bool = false
kc: Dict = null # a marked string (key and args) -> index into kc_out, in this language
kc_out: []string = null
loud: bool = false # a developer's build: a key en.po lacks draws as [[key]], said once
said: Dict = null
}
# where the shipped languages are (a directory with languages.txt and <code>.po), and the atlas a