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
|
|
@ -28,8 +28,8 @@ program I18nNestTest {
|
|||
expect(L(i18n_st, trf(k"shop.ada", day, "", "", "")) == "Ada: Day 3")
|
||||
expect(L(i18n_st, b(trf(k"shop.ada", day, "", "", ""))) == "Ada: Day 3")
|
||||
i18n_load_text(i18n_st, tt())
|
||||
expect(L(i18n_st, "Settings " + day) == "Settings 3. Gun") # the rest is English, looked up as it was
|
||||
expect(L(i18n_st, b("Settings")) == "Ayarlar")
|
||||
expect(L(i18n_st, "Settings " + day) == "Settings 3. Gun") # the words round it drawn as they are
|
||||
expect(L(i18n_st, b("Settings")) == "Settings") # a name in a bracket too
|
||||
}
|
||||
|
||||
test "a bracket with no partner draws nothing of itself" (i18n_st: mut I18nState) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue