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,7 +3,6 @@
|
|||
|
||||
|
||||
const CACHE_MAX: int = 4000
|
||||
const CAPS: int = 16
|
||||
|
||||
export function i18n_on(i18n_st: I18nState) -> bool { return i18n_st.on }
|
||||
export function i18n_current(i18n_st: I18nState) -> string { return i18n_st.cur }
|
||||
|
|
@ -12,7 +11,6 @@ export function i18n_exact_count(i18n_st: I18nState) -> int {
|
|||
if i18n_st.out == null { return 0 }
|
||||
return len(i18n_st.out)
|
||||
}
|
||||
export function i18n_pattern_count(i18n_st: I18nState) -> int { return i18n_st.pat_n }
|
||||
|
||||
# the overlay's own font, as the overlay was opened with it
|
||||
export function i18n_font_base(i18n_st: mut I18nState, path: string) -> void { i18n_st.font_now = path }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue