examples: text keys - lang/i18n (k"" and kn"" keys, == on them, a @Text Key field's derived key, @TextKey, a component's t('key', ...) and its one line of English left, en.po with a plural and descriptions, tr.po missing, fuzzy and extra) and rejected/i18n_keys (a key en.po lacks, a plural key without msgid_plural, a Key / string mix-up, a derived key en.po lacks, a template's missing t() key, hole counts and an undescribed split); their cases in ludic-dev test (added, not run)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4988adb170
commit
f9808e31ec
17 changed files with 243 additions and 0 deletions
12
examples/rejected/i18n_keys/data_missing.ludic
Normal file
12
examples/rejected/i18n_keys/data_missing.ludic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# phase 26: a @Text Key field a row leaves out takes its derived key (things.axe.name), and en.po must
|
||||
# have it; a @Text string field still holding English is a warning, counted as english_left
|
||||
program DataMissing {
|
||||
property Thing {
|
||||
key: string = ""
|
||||
@Text name: Key = null
|
||||
@Text blurb: string = ""
|
||||
}
|
||||
registry Things of Thing as TH
|
||||
def Things axe { blurb: "A sharp axe" }
|
||||
entry { print(TH_COUNT) }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue