i18n 26.9, error mode: English left is an error under a lang line (a template's words, a text attribute's, a choice that reads as words, a @Text row's English), ludic deps still counting english_left; hole counts and undescribed splits stay warnings. ludic.ui's own words are keys - ui_tk(ui_st, k"ui.right_click", plain) for the key field's Right / Middle / Left click and press a key..., its plain text for a program with no translator; the examples' en.po / tr.po carry ui.*, i18n_ui checks clean, rejected/i18n_keys/english_left holds the error, data_missing counts 2; LANGUAGE.md and the changeset; on lang/foundations 2288feeb; reseeded, bootstrap-cfree fixpoint holds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2288feeb59
commit
25a57c099b
18 changed files with 3667 additions and 3585 deletions
|
|
@ -236,6 +236,12 @@ function ui_tr(ui_st: UiState, s: string) -> string {
|
|||
if ui_st.ui_be != null and ui_st.ui_be.translate != null { return ui_st.ui_be.translate(s) }
|
||||
return s
|
||||
}
|
||||
# ludic.ui's own words by key (ui.* in the program's en.po); a program with no translator bound has
|
||||
# no languages, and draws `plain`
|
||||
function ui_tk(ui_st: UiState, k: Key, plain: string) -> string {
|
||||
if ui_st.tr_no or ui_st.ui_be == null or ui_st.ui_be.translate == null { return plain }
|
||||
return ui_st.ui_be.translate(string(k))
|
||||
}
|
||||
function ui_sound(ui_st: UiState, name: string) -> void {
|
||||
if ui_st.ui_be != null and ui_st.ui_be.sound != null { ui_st.ui_be.sound(name) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue