Merge commit '9f9ac4a' into lang/foundations (26.2 follow-up: a Key in a template hole refused, trn only with kn"", tr/trf refuse one); reseeded, bootstrap-cfree fixpoint holds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 23:48:35 +03:00
commit cdaeb33e12
13 changed files with 72839 additions and 72164 deletions

View file

@ -0,0 +1,9 @@
# phase 26: a Key in a template literal's {hole} is refused - it would draw its marked name, never
# translated; text is made with tr / trf
program KeyHole {
entry {
let k = k"pause.resume"
print(`{k}`)
print(`at {k}!`)
}
}

View file

@ -3,9 +3,10 @@
program KeyMissing {
function tr(key: Key) -> string { return string(key) }
function trf(key: Key, a: string, b: string) -> string { return string(key) + a + b }
function trn(key: Key, n: int) -> string { return string(key) }
entry {
print(tr(k"pause.gone"))
print(tr(kn"pause.resume"))
print(trn(kn"pause.resume", 1))
print(trf(k"hud.day", "1", "2"))
}
}

View file

@ -0,0 +1,12 @@
# phase 26: trn wants a plural key kn"...", and tr / trf refuse one
program KeyRules {
function tr(key: Key) -> string { return string(key) }
function trf(key: Key, a: string) -> string { return string(key) + a }
function trn(key: Key, n: int) -> string { return string(key) }
entry {
print(trn(k"hud.day", 2))
print(trf(kn"catch.count", "1"))
print(tr(kn"catch.count"))
print(tr(k"pause.resume"))
}
}

View file

@ -16,3 +16,9 @@ msgstr "Close"
msgid "map.close"
msgstr "Close"
#. The catch on the HUD. {1} = how many
msgid "catch.count"
msgid_plural "catch.count"
msgstr[0] "{1} fish"
msgstr[1] "{1} fish"

View file

@ -1,2 +1,2 @@
# the key checks' refusals (key_missing, t_missing, key_mixup, data_missing): lang/en.po is the source
# the key checks' refusals (key_missing, t_missing, key_mixup, data_missing, key_hole, key_rules): lang/en.po is the source
lang "lang" en