ludic.i18n: the English path is out of L (26.9) - a plain string is drawn as it is in every language (a player named Settings stays Settings), a key, a key glued into text and a bracketed line are made as before. The pattern tables, the sentence and padding lookups, Ln, i18n_pattern_count and kr_words' English-argument lookup are gone; a language's .po is read for keys and plurals. Tests move to keys; README and a changeset say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e2aa928e95
commit
8882331421
18 changed files with 91 additions and 516 deletions
|
|
@ -3,22 +3,6 @@
|
|||
property I18nTables {
|
||||
exact: Dict = null
|
||||
out: []string = null
|
||||
lits: []string = null
|
||||
pat_out: []string = null
|
||||
pat_l0: words = null
|
||||
pat_nl: words = null
|
||||
pat_sc: words = null
|
||||
pat_ph: words = null
|
||||
pat_n: int = 0
|
||||
pfx: Dict = null
|
||||
sfx: Dict = null
|
||||
gen_head: int = 0
|
||||
nx_p: words = null
|
||||
nx_s: words = null
|
||||
nx_g: words = null
|
||||
cache: Dict = null
|
||||
cache_out: []string = null
|
||||
caps: []string = null
|
||||
plural: Dict = null
|
||||
forms: []string = null
|
||||
plural_rule: int = 0
|
||||
|
|
@ -29,22 +13,6 @@ function tables_keep(i18n_st: I18nState) -> I18nTables {
|
|||
let t = new I18nTables
|
||||
t.exact = i18n_st.exact
|
||||
t.out = i18n_st.out
|
||||
t.lits = i18n_st.lits
|
||||
t.pat_out = i18n_st.pat_out
|
||||
t.pat_l0 = i18n_st.pat_l0
|
||||
t.pat_nl = i18n_st.pat_nl
|
||||
t.pat_sc = i18n_st.pat_sc
|
||||
t.pat_ph = i18n_st.pat_ph
|
||||
t.pat_n = i18n_st.pat_n
|
||||
t.pfx = i18n_st.pfx
|
||||
t.sfx = i18n_st.sfx
|
||||
t.gen_head = i18n_st.gen_head
|
||||
t.nx_p = i18n_st.nx_p
|
||||
t.nx_s = i18n_st.nx_s
|
||||
t.nx_g = i18n_st.nx_g
|
||||
t.cache = i18n_st.cache
|
||||
t.cache_out = i18n_st.cache_out
|
||||
t.caps = i18n_st.caps
|
||||
t.plural = i18n_st.plural
|
||||
t.forms = i18n_st.forms
|
||||
t.plural_rule = i18n_st.plural_rule
|
||||
|
|
@ -54,22 +22,6 @@ function tables_keep(i18n_st: I18nState) -> I18nTables {
|
|||
function tables_put(i18n_st: mut I18nState, t: I18nTables) -> void {
|
||||
i18n_st.exact = t.exact
|
||||
i18n_st.out = t.out
|
||||
i18n_st.lits = t.lits
|
||||
i18n_st.pat_out = t.pat_out
|
||||
i18n_st.pat_l0 = t.pat_l0
|
||||
i18n_st.pat_nl = t.pat_nl
|
||||
i18n_st.pat_sc = t.pat_sc
|
||||
i18n_st.pat_ph = t.pat_ph
|
||||
i18n_st.pat_n = t.pat_n
|
||||
i18n_st.pfx = t.pfx
|
||||
i18n_st.sfx = t.sfx
|
||||
i18n_st.gen_head = t.gen_head
|
||||
i18n_st.nx_p = t.nx_p
|
||||
i18n_st.nx_s = t.nx_s
|
||||
i18n_st.nx_g = t.nx_g
|
||||
i18n_st.cache = t.cache
|
||||
i18n_st.cache_out = t.cache_out
|
||||
i18n_st.caps = t.caps
|
||||
i18n_st.plural = t.plural
|
||||
i18n_st.forms = t.forms
|
||||
i18n_st.plural_rule = t.plural_rule
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue