ludic.ui, ludic.i18n: frame_allocs to 0 - a wrap, an ellipsis, a tooltip's lines, a text-shadow's colour and a range's value kept by what made them; pointer events from a ring; inline text joined through the memo; the pool's and the state's lists through ui_kept; parse, memo miss, pool miss, lazy start and template errors declared; the translation cache clears in place
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
629579123a
commit
429e419327
71 changed files with 365 additions and 155 deletions
|
|
@ -20,6 +20,7 @@ function entry_put(e: PoEntry, mode: int, s: string) -> void {
|
|||
if mode == 4 { e.forms[len(e.forms) - 1] = e.forms[len(e.forms) - 1] + s }
|
||||
}
|
||||
|
||||
@alloc_ok("on a language change: a .po read")
|
||||
export function i18n_parse(text: string) -> []PoEntry {
|
||||
let r = new []PoEntry
|
||||
let lines = lines_of(text)
|
||||
|
|
@ -81,6 +82,7 @@ function unquote(line: string, from: int) -> string {
|
|||
}
|
||||
|
||||
# a header field out of the msgstr "" block: "X-Language-Name: Türkçe\n"
|
||||
@alloc_ok("on a language change: a .po's header read")
|
||||
export function i18n_header(text: string, field: string) -> string {
|
||||
var n = len(text)
|
||||
if n > 4000 { n = 4000 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue