Merge lang/i18nkeys (27024de) into lang/syntax: the vocabulary gains the text keys - the Key type, @TextKey (a registry's), the k"..." and kn"..." literals - and @Text's doc; docs/language pages for Key and @TextKey; ludic-dev syntax rewrote the grammars; reseeded, bootstrap-cfree fixpoint holds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
9f8aec3bc1
63 changed files with 145288 additions and 114562 deletions
|
|
@ -4,9 +4,9 @@ name: @Text
|
|||
category: annotations
|
||||
kind: annotation
|
||||
tokens: @Text @Multiline
|
||||
sig: @Text @Multiline field: string = ""
|
||||
sig: @Text name: Key = null / @Text @Multiline blurb: string = ""
|
||||
tip: Read by the player, so translated; and prose, edited over several lines.
|
||||
order: 72
|
||||
---
|
||||
|
||||
<code>@Text</code> marks a string the player reads, so it is translated; <code>@Multiline</code> says it is prose, edited as several lines rather than one.
|
||||
<code>@Text</code> marks what the player reads, so it is translated. On a <code>Key</code> field a row that gives no value gets its derived key, <code><registry>.<row>.<field></code> (see <code>@TextKey</code>); English still written in a <code>@Text</code> row is counted as <code>english_left</code>. <code>@Multiline</code> says it is prose, edited as several lines rather than one.
|
||||
|
|
|
|||
12
docs/language/annotations/annot-textkey.md
Normal file
12
docs/language/annotations/annot-textkey.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
id: annot-textkey
|
||||
name: @TextKey
|
||||
category: annotations
|
||||
kind: annotation
|
||||
tokens: @TextKey
|
||||
sig: @TextKey("steps") registry StepKinds of StepKind from "steps.lres"
|
||||
tip: The prefix of a registry's derived text keys, in place of its name in snake case.
|
||||
order: 73
|
||||
---
|
||||
|
||||
A registry's <code>@Text</code> fields are keyed <code><registry>.<row>.<field></code>, the registry's name in snake case (<code>GearKinds</code> is <code>gear_kinds</code>). <code>@TextKey("steps")</code> names the prefix instead, so its rows' keys are <code>steps.<row>.<field></code>. Every derived key is checked against the source language's <code>.po</code> (LANGUAGE.md, Text keys).
|
||||
Loading…
Add table
Add a link
Reference in a new issue