diff --git a/crates/ui-egui/src/equation.rs b/crates/ui-egui/src/equation.rs index 087554d1c..b7b8625cc 100644 --- a/crates/ui-egui/src/equation.rs +++ b/crates/ui-egui/src/equation.rs @@ -129,10 +129,64 @@ fn insert_snippet(ctx: &egui::Context, id: egui::Id, text: &mut String, snippet: ctx.data_mut(|m| m.insert_temp(id.with("refocus"), true)); } +/// The RaTeX parser messages that carry a piece of the source (a command, a token, a count). +/// RaTeX reports an error only as finished English text, so a message is matched against these +/// shapes (from `ratex-parser` 0.1.14) and the catalog's template is filled with the same pieces; +/// RaTeX's fixed messages are plain catalog keys. A shape comes before a shorter one that also +/// matches its messages, and a message of any other shape stays as RaTeX wrote it. +const RATEX_TEMPLATES: &[&str] = &[ + "Undefined control sequence: {name}", + "Expected '{expected}', got '{got}'", + "Expected group after '{symbol}'", + "Expected delimiter as argument to '{function}'", + "Expected group as argument to '{function}'", + "Got function '{function}' with no arguments as superscript", + "Got function '{function}' with no arguments as subscript", + "Got function '{function}' with no arguments as argument to '{parent}'", + "Got function '{function}' with no arguments as \\tag", + "Can't use function '{function}' in text mode", + "Can't use function '{function}' in math mode", + "Invalid color: '{color}'", + "Invalid size: '{size}'", + "Invalid unit: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'", + "Invalid delimiter type '{type}' after '{function}'", + "Invalid delimiter type '{type}'", + "No such environment: {name}", + "Expected argument to \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}", + "{command} valid only within array environment", + "Mismatched {command}", + "Expected & or \\\\ or \\cr or \\end, got '{got}'", + "Unknown column alignment: {alignment}", + "Too many math in a row: expected {expected}, but got {got}", + "Unknown CD directive: @{directive}", + "Expected argument for {command}", + "{command} needs {count} premise(s), but only {available} available", + "{command} valid only as a supported bussproofs command within prooftree", + "prooftree ended with {count} proof stack item(s), expected 1", + "\\@char has non-numeric argument {argument}", + "\\@char with invalid code point {code}", + "Invalid environment name character: {character}", +]; + +/// A parse error message in the interface language: GridCraft's own checks and RaTeX's fixed +/// messages by their catalog key, RaTeX's messages with a piece of the source by their template. +fn parse_error_message(lang: crate::i18n::Language, message: &str) -> String { + let translated = lang.tr_error(message); + if translated != message { + return translated; + } + RATEX_TEMPLATES + .iter() + .find_map(|template| crate::i18n::unfill(template, message).map(|values| lang.tr_fill(template, &values))) + .unwrap_or(translated) +} + /// The line under the equation source for a parse error: where it is (the 1-based character), /// then the message, both in the interface language. fn parse_error_text(lang: crate::i18n::Language, position: Option, message: &str) -> String { - let message = lang.tr_error(message); + let message = parse_error_message(lang, message); match position { Some(p) => lang.tr_fill("Error at character {position}: {message}", &[("position", &p.to_string()), ("message", &message)]), None => message, @@ -519,8 +573,151 @@ mod tests { assert!(!want.starts_with("Error at character")); } - /// The equation checks' own messages (not RaTeX's syntax errors, which stay English) are - /// translated in every catalog. Each comes from the real check, and the expected English is + /// RaTeX's fixed parser messages that an equation can reach; each is a catalog key. + const RATEX_MESSAGES: &[&str] = &[ + "Double superscript", + "Double subscript", + "Extra }", + "Unexpected end of input in a macro argument", + "Expected \\right after \\left", + "\\middle must be within \\left and \\right", + "Invalid environment name", + "Expected \\end after environment body", + "Expected URL", + "\\tag requires an argument", + "only one infix operator per group", + "Expected color token", + "Expected size for \\raisebox", + "Expected size for \\rule width", + "Expected size for \\rule height", + "Cannot use both \\tag and \\nonumber in the same row", + "Multiple \\tag in a row", + "\\tag must appear at the end of the row after the equation body", + "Multiple \\nonumber in a row", + "\\nonumber must appear at the end of the row", + "Too many tab characters: &", + "Invalid column alignment for array", + "Expected column alignment character", + "Expected l or c or r", + "Expected ]", + "Unexpected end of CD row after @", + "Invalid column alignment for subarray", + "{subarray} can contain only one column", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command", + "Recursion limit exceeded", + "Too many expansions: infinite loop or need to increase maxExpand setting", + "Expected raw style for \\htmlStyle", + "\\verb assertion failed", + ]; + + /// RaTeX's messages, as `layout` reports them for real sources, follow the interface language: + /// a fixed message by its catalog key, a message with a piece of the source by its template + /// with the same pieces filled in. The English is checked first, so a reworded RaTeX message + /// fails here instead of silently staying English. + #[test] + fn ratex_parse_errors_follow_the_interface_language() { + use crate::i18n::Language; + use gridcraft_engine::math::layout; + /// Source, RaTeX's English message, its catalog key or template, and the template's pieces. + type Case = (&'static str, &'static str, &'static str, &'static [(&'static str, &'static str)]); + #[rustfmt::skip] + let cases: &[Case] = &[ + ("x^1^2", "Double superscript", "Double superscript", &[]), + ("x_1_2", "Double subscript", "Double subscript", &[]), + ("x^\\frac", "Unexpected end of input in a macro argument", "Unexpected end of input in a macro argument", &[]), + ("\\middle|", "\\middle must be within \\left and \\right", "\\middle must be within \\left and \\right", &[]), + ("a \\over b \\over c", "only one infix operator per group", "only one infix operator per group", &[]), + ("\\begin{array}{l}a&b\\end{array}", "Too many tab characters: &", "Too many tab characters: &", &[]), + ("\\begin{subarray}{lc}x\\end{subarray}", "{subarray} can contain only one column", "{subarray} can contain only one column", &[]), + ("\\begin{aligned}a\\tag1\\tag2\\end{aligned}", "Multiple \\tag in a row", "Multiple \\tag in a row", &[]), + ("\\begin{CD}A @", "Unexpected end of CD row after @", "Unexpected end of CD row after @", &[]), + ("\\verb", "\\verb assertion failed", "\\verb assertion failed", &[]), + ("\\foo", "Undefined control sequence: \\foo", "Undefined control sequence: {name}", &[("name", "\\foo")]), + ("x^{2", "Expected '}', got 'EOF'", "Expected '{expected}', got '{got}'", &[("expected", "}"), ("got", "EOF")]), + ("x^", "Expected group after '^'", "Expected group after '{symbol}'", &[("symbol", "^")]), + ("\\left\\frac x\\right)", "Expected delimiter as argument to '\\left'", "Expected delimiter as argument to '{function}'", &[("function", "\\left")]), + ("\\text{\\frac12}", "Can't use function '\\frac' in text mode", "Can't use function '{function}' in text mode", &[("function", "\\frac")]), + ("\\)", "Can't use function '\\)' in math mode", "Can't use function '{function}' in math mode", &[("function", "\\)")]), + ("\\color{zz!}{x}", "Invalid color: 'zz!'", "Invalid color: '{color}'", &[("color", "zz!")]), + ("\\rule{abc}{1em}", "Invalid size: 'abc'", "Invalid size: '{size}'", &[("size", "abc")]), + ("\\rule{1xx}{1em}", "Invalid unit: 'xx'", "Invalid unit: '{unit}'", &[("unit", "xx")]), + ("\\bigl x", "Invalid delimiter 'x' after '\\bigl'", "Invalid delimiter '{delimiter}' after '{function}'", &[("delimiter", "x"), ("function", "\\bigl")]), + ("\\bigl{x}", "Invalid delimiter type 'ordgroup' after '\\bigl'", "Invalid delimiter type '{type}' after '{function}'", &[("type", "ordgroup"), ("function", "\\bigl")]), + ("\\begin{foo}x\\end{foo}", "No such environment: foo", "No such environment: {name}", &[("name", "foo")]), + ("\\begin{matrix}x\\end{pmatrix}", "Mismatch: \\begin{matrix} matched by \\end{pmatrix}", "Mismatch: \\begin{{begin}} matched by \\end{{end}}", &[("begin", "matrix"), ("end", "pmatrix")]), + ("\\hline", "\\hline valid only within array environment", "{command} valid only within array environment", &[("command", "\\hline")]), + ("\\begin{matrix}a", "Expected & or \\\\ or \\cr or \\end, got 'EOF'", "Expected & or \\\\ or \\cr or \\end, got '{got}'", &[("got", "EOF")]), + ("\\begin{array}{q}x\\end{array}", "Unknown column alignment: q", "Unknown column alignment: {alignment}", &[("alignment", "q")]), + ("\\begin{alignedat}{1}a&b&c&d\\end{alignedat}", "Too many math in a row: expected 1, but got 2", "Too many math in a row: expected {expected}, but got {got}", &[("expected", "1"), ("got", "2")]), + ("\\begin{CD}A @Q B\\end{CD}", "Unknown CD directive: @Q", "Unknown CD directive: @{directive}", &[("directive", "Q")]), + ("\\begin{prooftree}\\BinaryInfC{x}\\end{prooftree}", "\\BinaryInfC needs 2 premise(s), but only 0 available", "{command} needs {count} premise(s), but only {available} available", &[("command", "\\BinaryInfC"), ("count", "2"), ("available", "0")]), + ("\\begin{prooftree}\\frac\\end{prooftree}", "\\frac valid only as a supported bussproofs command within prooftree", "{command} valid only as a supported bussproofs command within prooftree", &[("command", "\\frac")]), + ("\\begin{prooftree}\\AxiomC{x}\\AxiomC{y}\\end{prooftree}", "prooftree ended with 2 proof stack item(s), expected 1", "prooftree ended with {count} proof stack item(s), expected 1", &[("count", "2")]), + ("\\char\"FFFFFFF", "\\@char with invalid code point 268435455", "\\@char with invalid code point {code}", &[("code", "268435455")]), + ]; + let it = Language::It; + for (src, english, template, values) in cases { + let message = layout(src).err().unwrap_or_else(|| panic!("{src:?} lays out")).message; + assert_eq!(&message, english, "{src:?}"); + assert_eq!(parse_error_message(Language::En, &message), message, "English stays as RaTeX wrote it"); + let want = values.iter().fold(it.tr(template).to_string(), |text, (name, value)| text.replace(&format!("{{{name}}}"), value)); + assert_eq!(parse_error_message(it, &message), want, "{src:?}"); + assert_ne!(want, message, "{src:?} stays English in Italian"); + } + let want = it.tr("Error at character {position}: {message}").replace("{position}", "2").replace("{message}", it.tr("Double superscript")); + assert_eq!(parse_error_text(it, Some(2), "Double superscript"), want); + } + + /// Every RaTeX shape is read by its own template (not by a shorter one listed earlier), and + /// every catalog translates it with the same placeholders; every fixed message is translated in + /// every catalog. + #[test] + fn ratex_messages_are_translated_in_every_catalog() { + use crate::i18n::{Language, fill, unfill}; + let placeholders = |s: &str| { + let mut names = s.split('{').skip(1).filter_map(|rest| rest.split_once('}').map(|(name, _)| name.to_string())).collect::>(); + names.sort(); + names + }; + for template in RATEX_TEMPLATES { + // A sample piece per placeholder: `\a1`, `\a2`, … + let names = unfill(template, template).unwrap_or_else(|| panic!("{template:?} does not read itself")); + let samples = (1..=names.len()).map(|i| format!("\\a{i}")).collect::>(); + let values = names.iter().zip(&samples).map(|((name, _), sample)| (*name, sample.as_str())).collect::>(); + let message = fill(template, &values); + let first = RATEX_TEMPLATES.iter().find(|t| unfill(t, &message).is_some()); + assert_eq!(first, Some(template), "{message:?}"); + assert_eq!(parse_error_message(Language::En, &message), message); + for language in Language::ALL.into_iter().filter(|l| *l != Language::En) { + let text = language.tr(template); + assert_eq!(placeholders(text), placeholders(template), "{}: {template:?} => {text:?}", language.code()); + assert!(!text.contains('\n'), "{}: {template:?} => {text:?}", language.code()); + assert_eq!(parse_error_message(language, &message), fill(text, &values), "{}", language.code()); + assert_ne!(parse_error_message(language, &message), message, "{} leaves {template:?} in English", language.code()); + } + } + for message in RATEX_MESSAGES { + for language in Language::ALL.into_iter().filter(|l| *l != Language::En) { + let shown = parse_error_message(language, message); + assert_ne!(&shown, message, "{} leaves {message:?} in English", language.code()); + assert_eq!(placeholders(&shown), placeholders(message), "{}: {message:?} => {shown:?}", language.code()); + } + } + } + + /// A message of no known shape, such as RaTeX's internal ones or the chemistry parser's, stays + /// as RaTeX wrote it in every language. + #[test] + fn unknown_parser_messages_stay_as_ratex_wrote_them() { + use crate::i18n::Language; + for message in ["Null argument, please report this as a bug", "\\ce: unexpected token", "Expected group as atom", ""] { + for language in Language::ALL { + assert_eq!(parse_error_message(language, message), message, "{}", language.code()); + } + } + } + + /// The equation checks' own messages are translated in every catalog. Each comes from the real check, and the expected English is /// built from the limits, so a changed limit fails here instead of silently falling back to /// English (the catalogs key the message with the number in it). #[test] diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index 13b9c62c9..2a331bb85 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -281,6 +281,52 @@ pub fn fill(template: &str, values: &[(&str, &str)]) -> String { out } +/// The values that [`fill`] puts into `template` to give `text`, or `None` when `text` has +/// another shape. A `{name}` of lowercase letters and `_` is a placeholder; any other `{` is +/// text. Each placeholder takes the text up to the first copy of the literal after it (the last +/// one takes the rest), and a match counts only when filling the values back in gives `text`. +pub fn unfill<'a>(template: &'a str, text: &'a str) -> Option> { + enum Part<'a> { + Text(String), + Value(&'a str), + } + let mut parts = Vec::new(); + let mut literal = String::new(); + let mut rest = template; + while let Some((before, after)) = rest.split_once('{') { + literal.push_str(before); + match after.split_once('}').filter(|(name, _)| !name.is_empty() && name.bytes().all(|b| b.is_ascii_lowercase() || b == b'_')) { + Some((name, tail)) => { + parts.push(Part::Text(std::mem::take(&mut literal))); + parts.push(Part::Value(name)); + rest = tail; + } + None => { + literal.push('{'); + rest = after; + } + } + } + literal.push_str(rest); + parts.push(Part::Text(literal)); + + // `parts` alternates text and placeholder, starting and ending with (maybe empty) text. + let mut values = Vec::new(); + let mut rest = text; + for (i, part) in parts.iter().enumerate() { + match part { + Part::Text(literal) => rest = rest.strip_prefix(literal.as_str())?, + Part::Value(name) => { + let Some(Part::Text(next)) = parts.get(i + 1) else { return None }; + let len = if i + 2 == parts.len() { rest.strip_suffix(next.as_str())?.len() } else { rest.find(next.as_str())? }; + values.push((*name, &rest[..len])); + rest = &rest[len..]; + } + } + } + (rest.is_empty() && fill(template, &values) == text).then_some(values) +} + /// English text and its translation, sorted by the English. type HelpTable = &'static [(&'static str, &'static str)]; @@ -457,6 +503,23 @@ mod tests { assert_eq!(Language::En.tr_fill("Sheets: {sheets}", &[("sheets", "Sheet1, Sheet2")]), "Sheets: Sheet1, Sheet2"); } + #[test] + fn unfill_reads_back_what_fill_put_in() { + assert_eq!(unfill("Expected '{expected}', got '{got}'", "Expected '}', got 'EOF'"), Some(vec![("expected", "}"), ("got", "EOF")])); + assert_eq!( + unfill("Mismatch: \\begin{{begin}} matched by \\end{{end}}", "Mismatch: \\begin{a} matched by \\end{b}"), + Some(vec![("begin", "a"), ("end", "b")]) + ); + assert_eq!(unfill("{command} valid only here", "\\hline valid only here"), Some(vec![("command", "\\hline")])); + assert_eq!(unfill("Undefined control sequence: {name}", "Undefined control sequence: \\foo"), Some(vec![("name", "\\foo")])); + assert_eq!(unfill("Double superscript", "Double superscript"), Some(vec![])); + // The last placeholder runs to the closing literal, so a longer message is read whole. + assert_eq!(unfill("Invalid type '{type}'", "Invalid type 'a' after 'b'"), Some(vec![("type", "a' after 'b")])); + assert_eq!(unfill("Expected '{expected}', got '{got}'", "Expected } here"), None); + assert_eq!(unfill("Expected '{expected}'", "Expected 'x' later"), None); + assert_eq!(unfill("Mismatched {command}", "Mismatch: x"), None); + } + /// The templates the UI translates first and fills in after (status bar, toasts, dialog /// notes and titles) keep their placeholders in every catalog, so no value goes missing. #[test] diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rs index b6f59d17b..390558e4c 100644 --- a/crates/ui-egui/src/i18n/cs.rs +++ b/crates/ui-egui/src/i18n/cs.rs @@ -632,6 +632,82 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Hledání řešení našlo výsledek: {value}", "Sheets: {sheets}" => "Listy: {sheets}", "Hidden: {sheets}" => "Skryté: {sheets}", + "Double superscript" => "Dvojitý horní index", + "Double subscript" => "Dvojitý dolní index", + "Extra }" => "Nadbytečná }", + "Unexpected end of input in a macro argument" => "Neočekávaný konec vstupu v argumentu makra", + "Expected \\right after \\left" => "Po \\left se očekává \\right", + "\\middle must be within \\left and \\right" => "\\middle musí být mezi \\left a \\right", + "Invalid environment name" => "Neplatný název prostředí", + "Expected \\end after environment body" => "Po obsahu prostředí se očekává \\end", + "Expected URL" => "Očekává se adresa URL", + "\\tag requires an argument" => "\\tag vyžaduje argument", + "only one infix operator per group" => "Ve skupině smí být jen jeden infixový operátor", + "Expected color token" => "Očekává se barva", + "Expected size for \\raisebox" => "Pro \\raisebox se očekává velikost", + "Expected size for \\rule width" => "Pro šířku \\rule se očekává velikost", + "Expected size for \\rule height" => "Pro výšku \\rule se očekává velikost", + "Cannot use both \\tag and \\nonumber in the same row" => "\\tag a \\nonumber nelze použít ve stejném řádku", + "Multiple \\tag in a row" => "Více \\tag v jednom řádku", + "\\tag must appear at the end of the row after the equation body" => "\\tag musí být na konci řádku za obsahem rovnice", + "Multiple \\nonumber in a row" => "Více \\nonumber v jednom řádku", + "\\nonumber must appear at the end of the row" => "\\nonumber musí být na konci řádku", + "Too many tab characters: &" => "Příliš mnoho tabulačních znaků: &", + "Invalid column alignment for array" => "Neplatné zarovnání sloupců pro array", + "Expected column alignment character" => "Očekává se znak zarovnání sloupce", + "Expected l or c or r" => "Očekává se l, c nebo r", + "Expected ]" => "Očekává se ]", + "Unexpected end of CD row after @" => "Neočekávaný konec řádku CD po @", + "Invalid column alignment for subarray" => "Neplatné zarovnání sloupců pro subarray", + "{subarray} can contain only one column" => "{subarray} může obsahovat jen jeden sloupec", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree obsahuje \\LeftLabel nebo \\RightLabel bez následujícího odvozovacího příkazu" + } + "Recursion limit exceeded" => "Překročen limit rekurze", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Příliš mnoho rozvinutí maker: nekonečná smyčka nebo příliš nízké nastavení maxExpand" + } + "Expected raw style for \\htmlStyle" => "Pro \\htmlStyle se očekává surový styl", + "\\verb assertion failed" => "Kontrola \\verb selhala", + "Undefined control sequence: {name}" => "Nedefinovaná řídicí sekvence: {name}", + "Expected '{expected}', got '{got}'" => "Očekává se '{expected}', nalezeno '{got}'", + "Expected group after '{symbol}'" => "Po '{symbol}' se očekává skupina", + "Expected delimiter as argument to '{function}'" => "Jako argument '{function}' se očekává oddělovač", + "Expected group as argument to '{function}'" => "Jako argument '{function}' se očekává skupina", + "Got function '{function}' with no arguments as superscript" => "Funkce '{function}' bez argumentů použita jako horní index", + "Got function '{function}' with no arguments as subscript" => "Funkce '{function}' bez argumentů použita jako dolní index", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Funkce '{function}' bez argumentů použita jako argument '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Funkce '{function}' bez argumentů použita jako \\tag", + "Can't use function '{function}' in text mode" => "Funkci '{function}' nelze použít v textovém režimu", + "Can't use function '{function}' in math mode" => "Funkci '{function}' nelze použít v matematickém režimu", + "Invalid color: '{color}'" => "Neplatná barva: '{color}'", + "Invalid size: '{size}'" => "Neplatná velikost: '{size}'", + "Invalid unit: '{unit}'" => "Neplatná jednotka: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Neplatný oddělovač '{delimiter}' po '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Neplatný typ oddělovače '{type}' po '{function}'", + "Invalid delimiter type '{type}'" => "Neplatný typ oddělovače '{type}'", + "No such environment: {name}" => "Neznámé prostředí: {name}", + "Expected argument to \\begin{{name}}" => "Pro \\begin{{name}} se očekává argument", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Neshoda: \\begin{{begin}} uzavřeno pomocí \\end{{end}}", + "{command} valid only within array environment" => "{command} je platné jen uvnitř prostředí array", + "Mismatched {command}" => "{command} bez protějšku", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Očekává se &, \\\\, \\cr nebo \\end, nalezeno '{got}'", + "Unknown column alignment: {alignment}" => "Neznámé zarovnání sloupce: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Příliš mnoho vzorců v řádku: očekáváno {expected}, nalezeno {got}", + "Unknown CD directive: @{directive}" => "Neznámá direktiva CD: @{directive}", + "Expected argument for {command}" => "Pro {command} se očekává argument", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} potřebuje {count} předpoklad(ů), ale k dispozici je jen {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} je v prooftree platné jen jako podporovaný příkaz bussproofs" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree skončilo s {count} položkami v zásobníku důkazu, očekávána 1", + "\\@char has non-numeric argument {argument}" => "\\@char má nečíselný argument {argument}", + "\\@char with invalid code point {code}" => "\\@char s neplatným kódovým bodem {code}", + "Invalid environment name character: {character}" => "Neplatný znak v názvu prostředí: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rs index ce3acc8a6..ccd722959 100644 --- a/crates/ui-egui/src/i18n/de.rs +++ b/crates/ui-egui/src/i18n/de.rs @@ -554,6 +554,80 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Zielwertsuche hat eine Lösung gefunden: {value}", "Sheets: {sheets}" => "Blätter: {sheets}", "Hidden: {sheets}" => "Ausgeblendet: {sheets}", + "Double superscript" => "Doppelter Exponent", + "Double subscript" => "Doppelter Index", + "Extra }" => "Überzählige }", + "Unexpected end of input in a macro argument" => "Unerwartetes Ende der Eingabe in einem Makroargument", + "Expected \\right after \\left" => "\\right nach \\left erwartet", + "\\middle must be within \\left and \\right" => "\\middle muss zwischen \\left und \\right stehen", + "Invalid environment name" => "Ungültiger Umgebungsname", + "Expected \\end after environment body" => "\\end nach dem Umgebungsinhalt erwartet", + "Expected URL" => "URL erwartet", + "\\tag requires an argument" => "\\tag benötigt ein Argument", + "only one infix operator per group" => "Nur ein Infix-Operator pro Gruppe", + "Expected color token" => "Farbangabe erwartet", + "Expected size for \\raisebox" => "Größe für \\raisebox erwartet", + "Expected size for \\rule width" => "Größe für die Breite von \\rule erwartet", + "Expected size for \\rule height" => "Größe für die Höhe von \\rule erwartet", + "Cannot use both \\tag and \\nonumber in the same row" => "\\tag und \\nonumber können nicht in derselben Zeile stehen", + "Multiple \\tag in a row" => "Mehrere \\tag in einer Zeile", + "\\tag must appear at the end of the row after the equation body" => "\\tag muss am Ende der Zeile nach dem Formelinhalt stehen", + "Multiple \\nonumber in a row" => "Mehrere \\nonumber in einer Zeile", + "\\nonumber must appear at the end of the row" => "\\nonumber muss am Ende der Zeile stehen", + "Too many tab characters: &" => "Zu viele Tabulatorzeichen: &", + "Invalid column alignment for array" => "Ungültige Spaltenausrichtung für array", + "Expected column alignment character" => "Zeichen für die Spaltenausrichtung erwartet", + "Expected l or c or r" => "l, c oder r erwartet", + "Expected ]" => "] erwartet", + "Unexpected end of CD row after @" => "Unerwartetes Ende der CD-Zeile nach @", + "Invalid column alignment for subarray" => "Ungültige Spaltenausrichtung für subarray", + "{subarray} can contain only one column" => "{subarray} darf nur eine Spalte enthalten", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree enthält \\LeftLabel oder \\RightLabel ohne folgenden Schlussbefehl" + } + "Recursion limit exceeded" => "Rekursionsgrenze überschritten", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Zu viele Makroexpansionen: Endlosschleife oder maxExpand-Einstellung zu niedrig" + } + "Expected raw style for \\htmlStyle" => "Rohstil für \\htmlStyle erwartet", + "\\verb assertion failed" => "Prüfung für \\verb fehlgeschlagen", + "Undefined control sequence: {name}" => "Unbekannte Steuersequenz: {name}", + "Expected '{expected}', got '{got}'" => "'{expected}' erwartet, '{got}' gefunden", + "Expected group after '{symbol}'" => "Gruppe nach '{symbol}' erwartet", + "Expected delimiter as argument to '{function}'" => "Begrenzer als Argument für '{function}' erwartet", + "Expected group as argument to '{function}'" => "Gruppe als Argument für '{function}' erwartet", + "Got function '{function}' with no arguments as superscript" => "Funktion '{function}' ohne Argumente als Exponent", + "Got function '{function}' with no arguments as subscript" => "Funktion '{function}' ohne Argumente als Index", + "Got function '{function}' with no arguments as argument to '{parent}'" => "Funktion '{function}' ohne Argumente als Argument für '{parent}'", + "Got function '{function}' with no arguments as \\tag" => "Funktion '{function}' ohne Argumente als \\tag", + "Can't use function '{function}' in text mode" => "Funktion '{function}' ist im Textmodus nicht verwendbar", + "Can't use function '{function}' in math mode" => "Funktion '{function}' ist im Mathematikmodus nicht verwendbar", + "Invalid color: '{color}'" => "Ungültige Farbe: '{color}'", + "Invalid size: '{size}'" => "Ungültige Größe: '{size}'", + "Invalid unit: '{unit}'" => "Ungültige Einheit: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Ungültiger Begrenzer '{delimiter}' nach '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Ungültiger Begrenzertyp '{type}' nach '{function}'", + "Invalid delimiter type '{type}'" => "Ungültiger Begrenzertyp '{type}'", + "No such environment: {name}" => "Unbekannte Umgebung: {name}", + "Expected argument to \\begin{{name}}" => "Argument für \\begin{{name}} erwartet", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Keine Übereinstimmung: \\begin{{begin}} wird mit \\end{{end}} geschlossen", + "{command} valid only within array environment" => "{command} ist nur in einer array-Umgebung gültig", + "Mismatched {command}" => "{command} ohne Gegenstück", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "&, \\\\, \\cr oder \\end erwartet, '{got}' gefunden", + "Unknown column alignment: {alignment}" => "Unbekannte Spaltenausrichtung: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Zu viele Formeln in einer Zeile: {expected} erwartet, {got} gefunden", + "Unknown CD directive: @{directive}" => "Unbekannte CD-Anweisung: @{directive}", + "Expected argument for {command}" => "Argument für {command} erwartet", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} braucht {count} Prämisse(n), aber nur {available} vorhanden" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} ist in prooftree nur als unterstützter bussproofs-Befehl gültig" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree endete mit {count} Beweisstapel-Element(en), erwartet 1", + "\\@char has non-numeric argument {argument}" => "\\@char hat ein nicht numerisches Argument {argument}", + "\\@char with invalid code point {code}" => "\\@char mit ungültigem Codepunkt {code}", + "Invalid environment name character: {character}" => "Ungültiges Zeichen im Umgebungsnamen: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/el.rs b/crates/ui-egui/src/i18n/el.rs index 570aa0911..8b08bb2de 100644 --- a/crates/ui-egui/src/i18n/el.rs +++ b/crates/ui-egui/src/i18n/el.rs @@ -1041,6 +1041,86 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Macro “{name}” stopped: {message}" => "Η μακροεντολή «{name}» σταμάτησε: {message}", "Ran macro “{name}” ({steps} step)" => "Η μακροεντολή «{name}» εκτελέστηκε ({steps} βήμα)", "Ran macro “{name}” ({steps} steps)" => "Η μακροεντολή «{name}» εκτελέστηκε ({steps} βήματα)", + "Double superscript" => "Διπλός εκθέτης", + "Double subscript" => "Διπλός δείκτης", + "Extra }" => "Περιττό }", + "Unexpected end of input in a macro argument" => "Απρόσμενο τέλος εισόδου σε όρισμα μακροεντολής", + "Expected \\right after \\left" => "Αναμενόταν \\right μετά από \\left", + "\\middle must be within \\left and \\right" => "Το \\middle πρέπει να βρίσκεται μεταξύ \\left και \\right", + "Invalid environment name" => "Μη έγκυρο όνομα περιβάλλοντος", + "Expected \\end after environment body" => "Αναμενόταν \\end μετά το σώμα του περιβάλλοντος", + "Expected URL" => "Αναμενόταν URL", + "\\tag requires an argument" => "Το \\tag απαιτεί όρισμα", + "only one infix operator per group" => "Μόνο ένας ενδοθετικός τελεστής ανά ομάδα", + "Expected color token" => "Αναμενόταν χρώμα", + "Expected size for \\raisebox" => "Αναμενόταν μέγεθος για το \\raisebox", + "Expected size for \\rule width" => "Αναμενόταν μέγεθος για το πλάτος του \\rule", + "Expected size for \\rule height" => "Αναμενόταν μέγεθος για το ύψος του \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "Δεν μπορούν να χρησιμοποιηθούν \\tag και \\nonumber στην ίδια γραμμή", + "Multiple \\tag in a row" => "Πολλά \\tag σε μία γραμμή", + "\\tag must appear at the end of the row after the equation body" => { + "Το \\tag πρέπει να βρίσκεται στο τέλος της γραμμής, μετά το σώμα της εξίσωσης" + } + "Multiple \\nonumber in a row" => "Πολλά \\nonumber σε μία γραμμή", + "\\nonumber must appear at the end of the row" => "Το \\nonumber πρέπει να βρίσκεται στο τέλος της γραμμής", + "Too many tab characters: &" => "Πάρα πολλοί χαρακτήρες στηλοθέτη: &", + "Invalid column alignment for array" => "Μη έγκυρη στοίχιση στηλών για array", + "Expected column alignment character" => "Αναμενόταν χαρακτήρας στοίχισης στήλης", + "Expected l or c or r" => "Αναμενόταν l, c ή r", + "Expected ]" => "Αναμενόταν ]", + "Unexpected end of CD row after @" => "Απρόσμενο τέλος γραμμής CD μετά το @", + "Invalid column alignment for subarray" => "Μη έγκυρη στοίχιση στηλών για subarray", + "{subarray} can contain only one column" => "Το {subarray} μπορεί να περιέχει μόνο μία στήλη", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "Το prooftree έχει \\LeftLabel ή \\RightLabel χωρίς επόμενη εντολή συμπερασμού" + } + "Recursion limit exceeded" => "Υπέρβαση ορίου αναδρομής", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Πάρα πολλές αναπτύξεις μακροεντολών: ατέρμων βρόχος ή πολύ χαμηλή ρύθμιση maxExpand" + } + "Expected raw style for \\htmlStyle" => "Αναμενόταν ακατέργαστο στυλ για το \\htmlStyle", + "\\verb assertion failed" => "Αποτυχία ελέγχου του \\verb", + "Undefined control sequence: {name}" => "Μη ορισμένη ακολουθία ελέγχου: {name}", + "Expected '{expected}', got '{got}'" => "Αναμενόταν '{expected}', βρέθηκε '{got}'", + "Expected group after '{symbol}'" => "Αναμενόταν ομάδα μετά από '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Αναμενόταν οριοθέτης ως όρισμα του '{function}'", + "Expected group as argument to '{function}'" => "Αναμενόταν ομάδα ως όρισμα του '{function}'", + "Got function '{function}' with no arguments as superscript" => "Η συνάρτηση '{function}' χωρίς ορίσματα χρησιμοποιήθηκε ως εκθέτης", + "Got function '{function}' with no arguments as subscript" => "Η συνάρτηση '{function}' χωρίς ορίσματα χρησιμοποιήθηκε ως δείκτης", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Η συνάρτηση '{function}' χωρίς ορίσματα χρησιμοποιήθηκε ως όρισμα του '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Η συνάρτηση '{function}' χωρίς ορίσματα χρησιμοποιήθηκε ως \\tag", + "Can't use function '{function}' in text mode" => "Η συνάρτηση '{function}' δεν μπορεί να χρησιμοποιηθεί σε λειτουργία κειμένου", + "Can't use function '{function}' in math mode" => "Η συνάρτηση '{function}' δεν μπορεί να χρησιμοποιηθεί σε μαθηματική λειτουργία", + "Invalid color: '{color}'" => "Μη έγκυρο χρώμα: '{color}'", + "Invalid size: '{size}'" => "Μη έγκυρο μέγεθος: '{size}'", + "Invalid unit: '{unit}'" => "Μη έγκυρη μονάδα: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Μη έγκυρος οριοθέτης '{delimiter}' μετά από '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Μη έγκυρος τύπος οριοθέτη '{type}' μετά από '{function}'", + "Invalid delimiter type '{type}'" => "Μη έγκυρος τύπος οριοθέτη '{type}'", + "No such environment: {name}" => "Άγνωστο περιβάλλον: {name}", + "Expected argument to \\begin{{name}}" => "Αναμενόταν όρισμα για το \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Αναντιστοιχία: το \\begin{{begin}} κλείνει με \\end{{end}}", + "{command} valid only within array environment" => "Το {command} ισχύει μόνο μέσα σε περιβάλλον array", + "Mismatched {command}" => "{command} χωρίς αντίστοιχο", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Αναμενόταν &, \\\\, \\cr ή \\end, βρέθηκε '{got}'", + "Unknown column alignment: {alignment}" => "Άγνωστη στοίχιση στήλης: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Πάρα πολλοί τύποι σε μία γραμμή: αναμένονταν {expected}, βρέθηκαν {got}", + "Unknown CD directive: @{directive}" => "Άγνωστη οδηγία CD: @{directive}", + "Expected argument for {command}" => "Αναμενόταν όρισμα για το {command}", + "{command} needs {count} premise(s), but only {available} available" => { + "Το {command} χρειάζεται {count} προκείμενες, αλλά υπάρχουν μόνο {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "Το {command} ισχύει στο prooftree μόνο ως υποστηριζόμενη εντολή bussproofs" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "Το prooftree τελείωσε με {count} στοιχεία στη στοίβα απόδειξης, αναμενόταν 1" + } + "\\@char has non-numeric argument {argument}" => "Το \\@char έχει μη αριθμητικό όρισμα {argument}", + "\\@char with invalid code point {code}" => "\\@char με μη έγκυρο σημείο κώδικα {code}", + "Invalid environment name character: {character}" => "Μη έγκυρος χαρακτήρας στο όνομα περιβάλλοντος: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/es.rs b/crates/ui-egui/src/i18n/es.rs index 99dc8fe53..615a611a6 100644 --- a/crates/ui-egui/src/i18n/es.rs +++ b/crates/ui-egui/src/i18n/es.rs @@ -558,6 +558,82 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Buscar objetivo encontró una solución: {value}", "Sheets: {sheets}" => "Hojas: {sheets}", "Hidden: {sheets}" => "Ocultas: {sheets}", + "Double superscript" => "Superíndice doble", + "Double subscript" => "Subíndice doble", + "Extra }" => "} sobrante", + "Unexpected end of input in a macro argument" => "Fin inesperado de la entrada en un argumento de macro", + "Expected \\right after \\left" => "Se esperaba \\right después de \\left", + "\\middle must be within \\left and \\right" => "\\middle debe estar entre \\left y \\right", + "Invalid environment name" => "Nombre de entorno no válido", + "Expected \\end after environment body" => "Se esperaba \\end después del cuerpo del entorno", + "Expected URL" => "Se esperaba una URL", + "\\tag requires an argument" => "\\tag requiere un argumento", + "only one infix operator per group" => "Solo un operador infijo por grupo", + "Expected color token" => "Se esperaba un color", + "Expected size for \\raisebox" => "Se esperaba un tamaño para \\raisebox", + "Expected size for \\rule width" => "Se esperaba un tamaño para el ancho de \\rule", + "Expected size for \\rule height" => "Se esperaba un tamaño para el alto de \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "No se pueden usar \\tag y \\nonumber en la misma fila", + "Multiple \\tag in a row" => "Varios \\tag en una fila", + "\\tag must appear at the end of the row after the equation body" => "\\tag debe ir al final de la fila, después del cuerpo de la ecuación", + "Multiple \\nonumber in a row" => "Varios \\nonumber en una fila", + "\\nonumber must appear at the end of the row" => "\\nonumber debe ir al final de la fila", + "Too many tab characters: &" => "Demasiados caracteres de tabulación: &", + "Invalid column alignment for array" => "Alineación de columna no válida para array", + "Expected column alignment character" => "Se esperaba un carácter de alineación de columna", + "Expected l or c or r" => "Se esperaba l, c o r", + "Expected ]" => "Se esperaba ]", + "Unexpected end of CD row after @" => "Fin inesperado de la fila CD después de @", + "Invalid column alignment for subarray" => "Alineación de columna no válida para subarray", + "{subarray} can contain only one column" => "{subarray} solo puede contener una columna", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree tiene un \\LeftLabel o \\RightLabel sin un comando de inferencia a continuación" + } + "Recursion limit exceeded" => "Se superó el límite de recursión", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Demasiadas expansiones de macros: bucle infinito o ajuste maxExpand demasiado bajo" + } + "Expected raw style for \\htmlStyle" => "Se esperaba un estilo sin formato para \\htmlStyle", + "\\verb assertion failed" => "Falló la comprobación de \\verb", + "Undefined control sequence: {name}" => "Secuencia de control no definida: {name}", + "Expected '{expected}', got '{got}'" => "Se esperaba '{expected}', se encontró '{got}'", + "Expected group after '{symbol}'" => "Se esperaba un grupo después de '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Se esperaba un delimitador como argumento de '{function}'", + "Expected group as argument to '{function}'" => "Se esperaba un grupo como argumento de '{function}'", + "Got function '{function}' with no arguments as superscript" => "Función '{function}' sin argumentos usada como superíndice", + "Got function '{function}' with no arguments as subscript" => "Función '{function}' sin argumentos usada como subíndice", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Función '{function}' sin argumentos usada como argumento de '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Función '{function}' sin argumentos usada como \\tag", + "Can't use function '{function}' in text mode" => "No se puede usar la función '{function}' en modo texto", + "Can't use function '{function}' in math mode" => "No se puede usar la función '{function}' en modo matemático", + "Invalid color: '{color}'" => "Color no válido: '{color}'", + "Invalid size: '{size}'" => "Tamaño no válido: '{size}'", + "Invalid unit: '{unit}'" => "Unidad no válida: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Delimitador '{delimiter}' no válido después de '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Tipo de delimitador '{type}' no válido después de '{function}'", + "Invalid delimiter type '{type}'" => "Tipo de delimitador '{type}' no válido", + "No such environment: {name}" => "Entorno desconocido: {name}", + "Expected argument to \\begin{{name}}" => "Se esperaba un argumento para \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "No coinciden: \\begin{{begin}} cerrado con \\end{{end}}", + "{command} valid only within array environment" => "{command} solo es válido dentro de un entorno array", + "Mismatched {command}" => "{command} sin pareja", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Se esperaba &, \\\\, \\cr o \\end, se encontró '{got}'", + "Unknown column alignment: {alignment}" => "Alineación de columna desconocida: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Demasiadas fórmulas en una fila: se esperaban {expected}, hay {got}", + "Unknown CD directive: @{directive}" => "Directiva CD desconocida: @{directive}", + "Expected argument for {command}" => "Se esperaba un argumento para {command}", + "{command} needs {count} premise(s), but only {available} available" => "{command} necesita {count} premisa(s), pero solo hay {available}", + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} solo es válido como comando bussproofs admitido dentro de prooftree" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "prooftree terminó con {count} elemento(s) en la pila de prueba; se esperaba 1" + } + "\\@char has non-numeric argument {argument}" => "\\@char tiene un argumento no numérico {argument}", + "\\@char with invalid code point {code}" => "\\@char con un punto de código no válido {code}", + "Invalid environment name character: {character}" => "Carácter no válido en el nombre del entorno: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/fr.rs b/crates/ui-egui/src/i18n/fr.rs index 50846a23e..880717020 100644 --- a/crates/ui-egui/src/i18n/fr.rs +++ b/crates/ui-egui/src/i18n/fr.rs @@ -518,6 +518,84 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Valeur cible a trouvé une solution : {value}", "Sheets: {sheets}" => "Feuilles : {sheets}", "Hidden: {sheets}" => "Masquées : {sheets}", + "Double superscript" => "Exposant double", + "Double subscript" => "Indice double", + "Extra }" => "} en trop", + "Unexpected end of input in a macro argument" => "Fin inattendue de l'entrée dans un argument de macro", + "Expected \\right after \\left" => "\\right attendu après \\left", + "\\middle must be within \\left and \\right" => "\\middle doit se trouver entre \\left et \\right", + "Invalid environment name" => "Nom d'environnement non valide", + "Expected \\end after environment body" => "\\end attendu après le corps de l'environnement", + "Expected URL" => "URL attendue", + "\\tag requires an argument" => "\\tag nécessite un argument", + "only one infix operator per group" => "Un seul opérateur infixe par groupe", + "Expected color token" => "Couleur attendue", + "Expected size for \\raisebox" => "Taille attendue pour \\raisebox", + "Expected size for \\rule width" => "Taille attendue pour la largeur de \\rule", + "Expected size for \\rule height" => "Taille attendue pour la hauteur de \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "\\tag et \\nonumber ne peuvent pas figurer dans la même ligne", + "Multiple \\tag in a row" => "Plusieurs \\tag dans une ligne", + "\\tag must appear at the end of the row after the equation body" => "\\tag doit figurer à la fin de la ligne, après le corps de l'équation", + "Multiple \\nonumber in a row" => "Plusieurs \\nonumber dans une ligne", + "\\nonumber must appear at the end of the row" => "\\nonumber doit figurer à la fin de la ligne", + "Too many tab characters: &" => "Trop de caractères de tabulation : &", + "Invalid column alignment for array" => "Alignement de colonne non valide pour array", + "Expected column alignment character" => "Caractère d'alignement de colonne attendu", + "Expected l or c or r" => "l, c ou r attendu", + "Expected ]" => "] attendu", + "Unexpected end of CD row after @" => "Fin inattendue de la ligne CD après @", + "Invalid column alignment for subarray" => "Alignement de colonne non valide pour subarray", + "{subarray} can contain only one column" => "{subarray} ne peut contenir qu'une seule colonne", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree contient un \\LeftLabel ou \\RightLabel sans commande d'inférence qui le suit" + } + "Recursion limit exceeded" => "Limite de récursion dépassée", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Trop d'expansions de macros : boucle infinie ou paramètre maxExpand trop bas" + } + "Expected raw style for \\htmlStyle" => "Style brut attendu pour \\htmlStyle", + "\\verb assertion failed" => "Échec de la vérification de \\verb", + "Undefined control sequence: {name}" => "Séquence de contrôle non définie : {name}", + "Expected '{expected}', got '{got}'" => "'{expected}' attendu, '{got}' trouvé", + "Expected group after '{symbol}'" => "Groupe attendu après '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Délimiteur attendu comme argument de '{function}'", + "Expected group as argument to '{function}'" => "Groupe attendu comme argument de '{function}'", + "Got function '{function}' with no arguments as superscript" => "Fonction '{function}' sans arguments utilisée comme exposant", + "Got function '{function}' with no arguments as subscript" => "Fonction '{function}' sans arguments utilisée comme indice", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Fonction '{function}' sans arguments utilisée comme argument de '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Fonction '{function}' sans arguments utilisée comme \\tag", + "Can't use function '{function}' in text mode" => "La fonction '{function}' n'est pas utilisable en mode texte", + "Can't use function '{function}' in math mode" => "La fonction '{function}' n'est pas utilisable en mode mathématique", + "Invalid color: '{color}'" => "Couleur non valide : '{color}'", + "Invalid size: '{size}'" => "Taille non valide : '{size}'", + "Invalid unit: '{unit}'" => "Unité non valide : '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Délimiteur '{delimiter}' non valide après '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Type de délimiteur '{type}' non valide après '{function}'", + "Invalid delimiter type '{type}'" => "Type de délimiteur '{type}' non valide", + "No such environment: {name}" => "Environnement inconnu : {name}", + "Expected argument to \\begin{{name}}" => "Argument attendu pour \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Non-correspondance : \\begin{{begin}} fermé par \\end{{end}}", + "{command} valid only within array environment" => "{command} n'est valide que dans un environnement array", + "Mismatched {command}" => "{command} sans correspondance", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "&, \\\\, \\cr ou \\end attendu, '{got}' trouvé", + "Unknown column alignment: {alignment}" => "Alignement de colonne inconnu : {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Trop de formules dans une ligne : {expected} attendues, {got} trouvées", + "Unknown CD directive: @{directive}" => "Directive CD inconnue : @{directive}", + "Expected argument for {command}" => "Argument attendu pour {command}", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} nécessite {count} prémisse(s), mais seulement {available} disponible(s)" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} n'est valide dans prooftree que comme commande bussproofs prise en charge" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "prooftree s'est terminé avec {count} élément(s) sur la pile de preuve, 1 attendu" + } + "\\@char has non-numeric argument {argument}" => "\\@char a un argument non numérique {argument}", + "\\@char with invalid code point {code}" => "\\@char avec un point de code non valide {code}", + "Invalid environment name character: {character}" => "Caractère non valide dans le nom d'environnement : {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rs index 188ecc03e..e4557afb8 100644 --- a/crates/ui-egui/src/i18n/it.rs +++ b/crates/ui-egui/src/i18n/it.rs @@ -1047,6 +1047,84 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Macro “{name}” stopped: {message}" => "Macro “{name}” interrotta: {message}", "Ran macro “{name}” ({steps} step)" => "Macro “{name}” eseguita ({steps} passaggio)", "Ran macro “{name}” ({steps} steps)" => "Macro “{name}” eseguita ({steps} passaggi)", + "Double superscript" => "Apice doppio", + "Double subscript" => "Pedice doppio", + "Extra }" => "} in eccesso", + "Unexpected end of input in a macro argument" => "Fine imprevista dell'input in un argomento di macro", + "Expected \\right after \\left" => "Previsto \\right dopo \\left", + "\\middle must be within \\left and \\right" => "\\middle deve trovarsi tra \\left e \\right", + "Invalid environment name" => "Nome di ambiente non valido", + "Expected \\end after environment body" => "Previsto \\end dopo il corpo dell'ambiente", + "Expected URL" => "Previsto un URL", + "\\tag requires an argument" => "\\tag richiede un argomento", + "only one infix operator per group" => "Un solo operatore infisso per gruppo", + "Expected color token" => "Previsto un colore", + "Expected size for \\raisebox" => "Prevista una dimensione per \\raisebox", + "Expected size for \\rule width" => "Prevista una dimensione per la larghezza di \\rule", + "Expected size for \\rule height" => "Prevista una dimensione per l'altezza di \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "Non si possono usare \\tag e \\nonumber nella stessa riga", + "Multiple \\tag in a row" => "Più \\tag in una riga", + "\\tag must appear at the end of the row after the equation body" => "\\tag deve trovarsi alla fine della riga, dopo il corpo dell'equazione", + "Multiple \\nonumber in a row" => "Più \\nonumber in una riga", + "\\nonumber must appear at the end of the row" => "\\nonumber deve trovarsi alla fine della riga", + "Too many tab characters: &" => "Troppi caratteri di tabulazione: &", + "Invalid column alignment for array" => "Allineamento di colonna non valido per array", + "Expected column alignment character" => "Previsto un carattere di allineamento di colonna", + "Expected l or c or r" => "Previsto l, c o r", + "Expected ]" => "Prevista ]", + "Unexpected end of CD row after @" => "Fine imprevista della riga CD dopo @", + "Invalid column alignment for subarray" => "Allineamento di colonna non valido per subarray", + "{subarray} can contain only one column" => "{subarray} può contenere una sola colonna", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree ha un \\LeftLabel o \\RightLabel senza un comando di inferenza successivo" + } + "Recursion limit exceeded" => "Limite di ricorsione superato", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Troppe espansioni di macro: ciclo infinito o impostazione maxExpand troppo bassa" + } + "Expected raw style for \\htmlStyle" => "Previsto uno stile grezzo per \\htmlStyle", + "\\verb assertion failed" => "Verifica di \\verb non riuscita", + "Undefined control sequence: {name}" => "Sequenza di controllo non definita: {name}", + "Expected '{expected}', got '{got}'" => "Previsto '{expected}', trovato '{got}'", + "Expected group after '{symbol}'" => "Previsto un gruppo dopo '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Previsto un delimitatore come argomento di '{function}'", + "Expected group as argument to '{function}'" => "Previsto un gruppo come argomento di '{function}'", + "Got function '{function}' with no arguments as superscript" => "Funzione '{function}' senza argomenti usata come apice", + "Got function '{function}' with no arguments as subscript" => "Funzione '{function}' senza argomenti usata come pedice", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Funzione '{function}' senza argomenti usata come argomento di '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Funzione '{function}' senza argomenti usata come \\tag", + "Can't use function '{function}' in text mode" => "La funzione '{function}' non si può usare in modalità testo", + "Can't use function '{function}' in math mode" => "La funzione '{function}' non si può usare in modalità matematica", + "Invalid color: '{color}'" => "Colore non valido: '{color}'", + "Invalid size: '{size}'" => "Dimensione non valida: '{size}'", + "Invalid unit: '{unit}'" => "Unità non valida: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Delimitatore '{delimiter}' non valido dopo '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Tipo di delimitatore '{type}' non valido dopo '{function}'", + "Invalid delimiter type '{type}'" => "Tipo di delimitatore '{type}' non valido", + "No such environment: {name}" => "Ambiente sconosciuto: {name}", + "Expected argument to \\begin{{name}}" => "Previsto un argomento per \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Mancata corrispondenza: \\begin{{begin}} chiuso da \\end{{end}}", + "{command} valid only within array environment" => "{command} è valido solo in un ambiente array", + "Mismatched {command}" => "{command} senza corrispondenza", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Previsto &, \\\\, \\cr o \\end, trovato '{got}'", + "Unknown column alignment: {alignment}" => "Allineamento di colonna sconosciuto: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Troppe formule in una riga: previste {expected}, trovate {got}", + "Unknown CD directive: @{directive}" => "Direttiva CD sconosciuta: @{directive}", + "Expected argument for {command}" => "Previsto un argomento per {command}", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} richiede {count} premessa/e, ma ne sono disponibili solo {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} è valido solo come comando bussproofs supportato in prooftree" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "prooftree è terminato con {count} elemento/i nella pila di dimostrazione, previsto 1" + } + "\\@char has non-numeric argument {argument}" => "\\@char ha un argomento non numerico {argument}", + "\\@char with invalid code point {code}" => "\\@char con punto di codice non valido {code}", + "Invalid environment name character: {character}" => "Carattere non valido nel nome dell'ambiente: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/ja.rs b/crates/ui-egui/src/i18n/ja.rs index ea058aa4e..94ef0f613 100644 --- a/crates/ui-egui/src/i18n/ja.rs +++ b/crates/ui-egui/src/i18n/ja.rs @@ -1045,6 +1045,81 @@ pub(super) const DIALOGS: &[(&str, &str)] = &[ ("Macro “{name}” stopped: {message}", "マクロ「{name}」が停止しました: {message}"), ("Ran macro “{name}” ({steps} step)", "マクロ「{name}」を実行しました ({steps} ステップ)"), ("Ran macro “{name}” ({steps} steps)", "マクロ「{name}」を実行しました ({steps} ステップ)"), + ("Double superscript", "上付き文字が重複しています"), + ("Double subscript", "下付き文字が重複しています"), + ("Extra }", "余分な } があります"), + ("Unexpected end of input in a macro argument", "マクロ引数の途中で入力が終了しました"), + ("Expected \\right after \\left", "\\left の後に \\right が必要です"), + ("\\middle must be within \\left and \\right", "\\middle は \\left と \\right の間に置く必要があります"), + ("Invalid environment name", "環境名が無効です"), + ("Expected \\end after environment body", "環境の本体の後に \\end が必要です"), + ("Expected URL", "URL が必要です"), + ("\\tag requires an argument", "\\tag には引数が必要です"), + ("only one infix operator per group", "中置演算子はグループごとに 1 つだけです"), + ("Expected color token", "色の指定が必要です"), + ("Expected size for \\raisebox", "\\raisebox にはサイズが必要です"), + ("Expected size for \\rule width", "\\rule の幅にはサイズが必要です"), + ("Expected size for \\rule height", "\\rule の高さにはサイズが必要です"), + ("Cannot use both \\tag and \\nonumber in the same row", "同じ行で \\tag と \\nonumber は併用できません"), + ("Multiple \\tag in a row", "1 行に \\tag が複数あります"), + ("\\tag must appear at the end of the row after the equation body", "\\tag は行の末尾、数式の本体の後に置く必要があります"), + ("Multiple \\nonumber in a row", "1 行に \\nonumber が複数あります"), + ("\\nonumber must appear at the end of the row", "\\nonumber は行の末尾に置く必要があります"), + ("Too many tab characters: &", "タブ文字が多すぎます: &"), + ("Invalid column alignment for array", "array の列の配置が無効です"), + ("Expected column alignment character", "列の配置文字が必要です"), + ("Expected l or c or r", "l、c、r のいずれかが必要です"), + ("Expected ]", "] が必要です"), + ("Unexpected end of CD row after @", "@ の後で CD の行が終了しました"), + ("Invalid column alignment for subarray", "subarray の列の配置が無効です"), + ("{subarray} can contain only one column", "{subarray} に含められる列は 1 つだけです"), + ( + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command", + "prooftree に、後に推論コマンドのない \\LeftLabel または \\RightLabel があります", + ), + ("Recursion limit exceeded", "再帰の上限を超えました"), + ( + "Too many expansions: infinite loop or need to increase maxExpand setting", + "マクロの展開が多すぎます: 無限ループか、maxExpand の設定が小さすぎます", + ), + ("Expected raw style for \\htmlStyle", "\\htmlStyle には生のスタイルが必要です"), + ("\\verb assertion failed", "\\verb のチェックに失敗しました"), + ("Undefined control sequence: {name}", "未定義の制御シーケンス: {name}"), + ("Expected '{expected}', got '{got}'", "'{expected}' が必要ですが、'{got}' がありました"), + ("Expected group after '{symbol}'", "'{symbol}' の後にグループが必要です"), + ("Expected delimiter as argument to '{function}'", "'{function}' の引数として区切り記号が必要です"), + ("Expected group as argument to '{function}'", "'{function}' の引数としてグループが必要です"), + ("Got function '{function}' with no arguments as superscript", "引数のない関数 '{function}' が上付き文字として使われています"), + ("Got function '{function}' with no arguments as subscript", "引数のない関数 '{function}' が下付き文字として使われています"), + ("Got function '{function}' with no arguments as argument to '{parent}'", "引数のない関数 '{function}' が '{parent}' の引数として使われています"), + ("Got function '{function}' with no arguments as \\tag", "引数のない関数 '{function}' が \\tag として使われています"), + ("Can't use function '{function}' in text mode", "関数 '{function}' はテキスト モードでは使用できません"), + ("Can't use function '{function}' in math mode", "関数 '{function}' は数式モードでは使用できません"), + ("Invalid color: '{color}'", "無効な色: '{color}'"), + ("Invalid size: '{size}'", "無効なサイズ: '{size}'"), + ("Invalid unit: '{unit}'", "無効な単位: '{unit}'"), + ("Invalid delimiter '{delimiter}' after '{function}'", "'{function}' の後の区切り記号 '{delimiter}' が無効です"), + ("Invalid delimiter type '{type}' after '{function}'", "'{function}' の後の区切り記号の種類 '{type}' が無効です"), + ("Invalid delimiter type '{type}'", "区切り記号の種類 '{type}' が無効です"), + ("No such environment: {name}", "不明な環境: {name}"), + ("Expected argument to \\begin{{name}}", "\\begin{{name}} には引数が必要です"), + ("Mismatch: \\begin{{begin}} matched by \\end{{end}}", "対応していません: \\begin{{begin}} が \\end{{end}} で閉じられています"), + ("{command} valid only within array environment", "{command} は array 環境の中でのみ有効です"), + ("Mismatched {command}", "{command} に対応するものがありません"), + ("Expected & or \\\\ or \\cr or \\end, got '{got}'", "&、\\\\、\\cr、\\end のいずれかが必要ですが、'{got}' がありました"), + ("Unknown column alignment: {alignment}", "不明な列の配置: {alignment}"), + ("Too many math in a row: expected {expected}, but got {got}", "1 行の数式が多すぎます: {expected} 個のはずが {got} 個あります"), + ("Unknown CD directive: @{directive}", "不明な CD ディレクティブ: @{directive}"), + ("Expected argument for {command}", "{command} には引数が必要です"), + ("{command} needs {count} premise(s), but only {available} available", "{command} には前提が {count} 個必要ですが、{available} 個しかありません"), + ( + "{command} valid only as a supported bussproofs command within prooftree", + "{command} は prooftree の中でサポートされている bussproofs コマンドとしてのみ有効です", + ), + ("prooftree ended with {count} proof stack item(s), expected 1", "prooftree が証明スタックに {count} 個の項目を残して終了しました (1 個のはず)"), + ("\\@char has non-numeric argument {argument}", "\\@char の引数 {argument} が数値ではありません"), + ("\\@char with invalid code point {code}", "\\@char のコード ポイント {code} が無効です"), + ("Invalid environment name character: {character}", "環境名に無効な文字があります: {character}"), ]; /// Labels of the ribbon menus, pop-ups and palettes that the reference catalog does not cover (the diff --git a/crates/ui-egui/src/i18n/ko.rs b/crates/ui-egui/src/i18n/ko.rs index d7f58e4e1..e2dce4345 100644 --- a/crates/ui-egui/src/i18n/ko.rs +++ b/crates/ui-egui/src/i18n/ko.rs @@ -522,6 +522,80 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "목표값 찾기에서 해를 찾았습니다: {value}", "Sheets: {sheets}" => "시트: {sheets}", "Hidden: {sheets}" => "숨김: {sheets}", + "Double superscript" => "위 첨자가 중복되었습니다", + "Double subscript" => "아래 첨자가 중복되었습니다", + "Extra }" => "불필요한 } 이(가) 있습니다", + "Unexpected end of input in a macro argument" => "매크로 인수 안에서 입력이 끝났습니다", + "Expected \\right after \\left" => "\\left 뒤에 \\right 가 필요합니다", + "\\middle must be within \\left and \\right" => "\\middle 은 \\left 와 \\right 사이에 있어야 합니다", + "Invalid environment name" => "환경 이름이 잘못되었습니다", + "Expected \\end after environment body" => "환경 본문 뒤에 \\end 가 필요합니다", + "Expected URL" => "URL이 필요합니다", + "\\tag requires an argument" => "\\tag 에는 인수가 필요합니다", + "only one infix operator per group" => "그룹당 중위 연산자는 하나만 사용할 수 있습니다", + "Expected color token" => "색이 필요합니다", + "Expected size for \\raisebox" => "\\raisebox 에는 크기가 필요합니다", + "Expected size for \\rule width" => "\\rule 너비에는 크기가 필요합니다", + "Expected size for \\rule height" => "\\rule 높이에는 크기가 필요합니다", + "Cannot use both \\tag and \\nonumber in the same row" => "같은 행에서 \\tag 와 \\nonumber 를 함께 사용할 수 없습니다", + "Multiple \\tag in a row" => "한 행에 \\tag 가 여러 개 있습니다", + "\\tag must appear at the end of the row after the equation body" => "\\tag 는 행 끝, 수식 본문 뒤에 있어야 합니다", + "Multiple \\nonumber in a row" => "한 행에 \\nonumber 가 여러 개 있습니다", + "\\nonumber must appear at the end of the row" => "\\nonumber 는 행 끝에 있어야 합니다", + "Too many tab characters: &" => "탭 문자가 너무 많습니다: &", + "Invalid column alignment for array" => "array 의 열 맞춤이 잘못되었습니다", + "Expected column alignment character" => "열 맞춤 문자가 필요합니다", + "Expected l or c or r" => "l, c 또는 r 이 필요합니다", + "Expected ]" => "] 이(가) 필요합니다", + "Unexpected end of CD row after @" => "@ 뒤에서 CD 행이 끝났습니다", + "Invalid column alignment for subarray" => "subarray 의 열 맞춤이 잘못되었습니다", + "{subarray} can contain only one column" => "{subarray} 에는 열을 하나만 넣을 수 있습니다", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree 에 뒤따르는 추론 명령이 없는 \\LeftLabel 또는 \\RightLabel 이 있습니다" + } + "Recursion limit exceeded" => "재귀 한도를 초과했습니다", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "매크로 확장이 너무 많습니다: 무한 루프이거나 maxExpand 설정이 너무 작습니다" + } + "Expected raw style for \\htmlStyle" => "\\htmlStyle 에는 원시 스타일이 필요합니다", + "\\verb assertion failed" => "\\verb 검사에 실패했습니다", + "Undefined control sequence: {name}" => "정의되지 않은 제어 시퀀스: {name}", + "Expected '{expected}', got '{got}'" => "'{expected}' 이(가) 필요하지만 '{got}' 이(가) 있습니다", + "Expected group after '{symbol}'" => "'{symbol}' 뒤에 그룹이 필요합니다", + "Expected delimiter as argument to '{function}'" => "'{function}' 의 인수로 구분 기호가 필요합니다", + "Expected group as argument to '{function}'" => "'{function}' 의 인수로 그룹이 필요합니다", + "Got function '{function}' with no arguments as superscript" => "인수 없는 함수 '{function}' 이(가) 위 첨자로 사용되었습니다", + "Got function '{function}' with no arguments as subscript" => "인수 없는 함수 '{function}' 이(가) 아래 첨자로 사용되었습니다", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "인수 없는 함수 '{function}' 이(가) '{parent}' 의 인수로 사용되었습니다" + } + "Got function '{function}' with no arguments as \\tag" => "인수 없는 함수 '{function}' 이(가) \\tag 로 사용되었습니다", + "Can't use function '{function}' in text mode" => "함수 '{function}' 은(는) 텍스트 모드에서 사용할 수 없습니다", + "Can't use function '{function}' in math mode" => "함수 '{function}' 은(는) 수식 모드에서 사용할 수 없습니다", + "Invalid color: '{color}'" => "잘못된 색: '{color}'", + "Invalid size: '{size}'" => "잘못된 크기: '{size}'", + "Invalid unit: '{unit}'" => "잘못된 단위: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "'{function}' 뒤의 구분 기호 '{delimiter}' 이(가) 잘못되었습니다", + "Invalid delimiter type '{type}' after '{function}'" => "'{function}' 뒤의 구분 기호 유형 '{type}' 이(가) 잘못되었습니다", + "Invalid delimiter type '{type}'" => "구분 기호 유형 '{type}' 이(가) 잘못되었습니다", + "No such environment: {name}" => "알 수 없는 환경: {name}", + "Expected argument to \\begin{{name}}" => "\\begin{{name}} 에는 인수가 필요합니다", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "일치하지 않음: \\begin{{begin}} 이(가) \\end{{end}} 로 닫혔습니다", + "{command} valid only within array environment" => "{command} 은(는) array 환경 안에서만 사용할 수 있습니다", + "Mismatched {command}" => "짝이 없는 {command}", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "&, \\\\, \\cr 또는 \\end 이(가) 필요하지만 '{got}' 이(가) 있습니다", + "Unknown column alignment: {alignment}" => "알 수 없는 열 맞춤: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "한 행의 수식이 너무 많습니다: {expected}개여야 하지만 {got}개입니다", + "Unknown CD directive: @{directive}" => "알 수 없는 CD 지시문: @{directive}", + "Expected argument for {command}" => "{command} 에는 인수가 필요합니다", + "{command} needs {count} premise(s), but only {available} available" => "{command} 에는 전제가 {count}개 필요하지만 {available}개만 있습니다", + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} 은(는) prooftree 안에서 지원되는 bussproofs 명령으로만 사용할 수 있습니다" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree 가 증명 스택에 항목 {count}개를 남기고 끝났습니다 (1개여야 함)", + "\\@char has non-numeric argument {argument}" => "\\@char 의 인수 {argument} 이(가) 숫자가 아닙니다", + "\\@char with invalid code point {code}" => "\\@char 의 코드 포인트 {code} 이(가) 잘못되었습니다", + "Invalid environment name character: {character}" => "환경 이름에 잘못된 문자가 있습니다: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/nl.rs b/crates/ui-egui/src/i18n/nl.rs index 6d9d60e1b..a99caf0af 100644 --- a/crates/ui-egui/src/i18n/nl.rs +++ b/crates/ui-egui/src/i18n/nl.rs @@ -593,6 +593,82 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Doelzoeken heeft een oplossing gevonden: {value}", "Sheets: {sheets}" => "Bladen: {sheets}", "Hidden: {sheets}" => "Verborgen: {sheets}", + "Double superscript" => "Dubbele superscript", + "Double subscript" => "Dubbele subscript", + "Extra }" => "Overbodige }", + "Unexpected end of input in a macro argument" => "Onverwacht einde van de invoer in een macroargument", + "Expected \\right after \\left" => "\\right verwacht na \\left", + "\\middle must be within \\left and \\right" => "\\middle moet tussen \\left en \\right staan", + "Invalid environment name" => "Ongeldige omgevingsnaam", + "Expected \\end after environment body" => "\\end verwacht na de inhoud van de omgeving", + "Expected URL" => "URL verwacht", + "\\tag requires an argument" => "\\tag vereist een argument", + "only one infix operator per group" => "Slechts één infix-operator per groep", + "Expected color token" => "Kleur verwacht", + "Expected size for \\raisebox" => "Grootte verwacht voor \\raisebox", + "Expected size for \\rule width" => "Grootte verwacht voor de breedte van \\rule", + "Expected size for \\rule height" => "Grootte verwacht voor de hoogte van \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "\\tag en \\nonumber kunnen niet in dezelfde rij staan", + "Multiple \\tag in a row" => "Meerdere \\tag in een rij", + "\\tag must appear at the end of the row after the equation body" => "\\tag moet aan het einde van de rij na de vergelijking staan", + "Multiple \\nonumber in a row" => "Meerdere \\nonumber in een rij", + "\\nonumber must appear at the end of the row" => "\\nonumber moet aan het einde van de rij staan", + "Too many tab characters: &" => "Te veel tabtekens: &", + "Invalid column alignment for array" => "Ongeldige kolomuitlijning voor array", + "Expected column alignment character" => "Teken voor kolomuitlijning verwacht", + "Expected l or c or r" => "l, c of r verwacht", + "Expected ]" => "] verwacht", + "Unexpected end of CD row after @" => "Onverwacht einde van de CD-rij na @", + "Invalid column alignment for subarray" => "Ongeldige kolomuitlijning voor subarray", + "{subarray} can contain only one column" => "{subarray} kan maar één kolom bevatten", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree heeft een \\LeftLabel of \\RightLabel zonder volgende afleidingsopdracht" + } + "Recursion limit exceeded" => "Recursielimiet overschreden", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Te veel macro-uitbreidingen: oneindige lus of maxExpand-instelling te laag" + } + "Expected raw style for \\htmlStyle" => "Onbewerkte stijl verwacht voor \\htmlStyle", + "\\verb assertion failed" => "Controle van \\verb mislukt", + "Undefined control sequence: {name}" => "Onbekende besturingsreeks: {name}", + "Expected '{expected}', got '{got}'" => "'{expected}' verwacht, '{got}' gevonden", + "Expected group after '{symbol}'" => "Groep verwacht na '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Scheidingsteken verwacht als argument van '{function}'", + "Expected group as argument to '{function}'" => "Groep verwacht als argument van '{function}'", + "Got function '{function}' with no arguments as superscript" => "Functie '{function}' zonder argumenten gebruikt als superscript", + "Got function '{function}' with no arguments as subscript" => "Functie '{function}' zonder argumenten gebruikt als subscript", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Functie '{function}' zonder argumenten gebruikt als argument van '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Functie '{function}' zonder argumenten gebruikt als \\tag", + "Can't use function '{function}' in text mode" => "Functie '{function}' kan niet in tekstmodus worden gebruikt", + "Can't use function '{function}' in math mode" => "Functie '{function}' kan niet in wiskundemodus worden gebruikt", + "Invalid color: '{color}'" => "Ongeldige kleur: '{color}'", + "Invalid size: '{size}'" => "Ongeldige grootte: '{size}'", + "Invalid unit: '{unit}'" => "Ongeldige eenheid: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Ongeldig scheidingsteken '{delimiter}' na '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Ongeldig type scheidingsteken '{type}' na '{function}'", + "Invalid delimiter type '{type}'" => "Ongeldig type scheidingsteken '{type}'", + "No such environment: {name}" => "Onbekende omgeving: {name}", + "Expected argument to \\begin{{name}}" => "Argument verwacht voor \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Komt niet overeen: \\begin{{begin}} afgesloten met \\end{{end}}", + "{command} valid only within array environment" => "{command} is alleen geldig binnen een array-omgeving", + "Mismatched {command}" => "{command} zonder tegenhanger", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "&, \\\\, \\cr of \\end verwacht, '{got}' gevonden", + "Unknown column alignment: {alignment}" => "Onbekende kolomuitlijning: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Te veel formules in een rij: {expected} verwacht, {got} gevonden", + "Unknown CD directive: @{directive}" => "Onbekende CD-opdracht: @{directive}", + "Expected argument for {command}" => "Argument verwacht voor {command}", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} heeft {count} premisse(s) nodig, maar er zijn er maar {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} is in prooftree alleen geldig als ondersteunde bussproofs-opdracht" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree eindigde met {count} item(s) op de bewijsstapel, 1 verwacht", + "\\@char has non-numeric argument {argument}" => "\\@char heeft een niet-numeriek argument {argument}", + "\\@char with invalid code point {code}" => "\\@char met ongeldig codepunt {code}", + "Invalid environment name character: {character}" => "Ongeldig teken in de omgevingsnaam: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rs index 1be59d8b2..762bb815c 100644 --- a/crates/ui-egui/src/i18n/pl.rs +++ b/crates/ui-egui/src/i18n/pl.rs @@ -1035,6 +1035,84 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Macro “{name}” stopped: {message}" => "Makro „{name}” zatrzymane: {message}", "Ran macro “{name}” ({steps} step)" => "Uruchomiono makro „{name}” ({steps} krok)", "Ran macro “{name}” ({steps} steps)" => "Uruchomiono makro „{name}” (liczba kroków: {steps})", + "Double superscript" => "Podwójny indeks górny", + "Double subscript" => "Podwójny indeks dolny", + "Extra }" => "Nadmiarowy }", + "Unexpected end of input in a macro argument" => "Nieoczekiwany koniec danych w argumencie makra", + "Expected \\right after \\left" => "Oczekiwano \\right po \\left", + "\\middle must be within \\left and \\right" => "\\middle musi być między \\left a \\right", + "Invalid environment name" => "Nieprawidłowa nazwa środowiska", + "Expected \\end after environment body" => "Oczekiwano \\end po treści środowiska", + "Expected URL" => "Oczekiwano adresu URL", + "\\tag requires an argument" => "\\tag wymaga argumentu", + "only one infix operator per group" => "Tylko jeden operator wrostkowy na grupę", + "Expected color token" => "Oczekiwano koloru", + "Expected size for \\raisebox" => "Oczekiwano rozmiaru dla \\raisebox", + "Expected size for \\rule width" => "Oczekiwano rozmiaru dla szerokości \\rule", + "Expected size for \\rule height" => "Oczekiwano rozmiaru dla wysokości \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "Nie można użyć \\tag i \\nonumber w tym samym wierszu", + "Multiple \\tag in a row" => "Wiele \\tag w jednym wierszu", + "\\tag must appear at the end of the row after the equation body" => "\\tag musi stać na końcu wiersza, po treści równania", + "Multiple \\nonumber in a row" => "Wiele \\nonumber w jednym wierszu", + "\\nonumber must appear at the end of the row" => "\\nonumber musi stać na końcu wiersza", + "Too many tab characters: &" => "Za dużo znaków tabulacji: &", + "Invalid column alignment for array" => "Nieprawidłowe wyrównanie kolumn dla array", + "Expected column alignment character" => "Oczekiwano znaku wyrównania kolumny", + "Expected l or c or r" => "Oczekiwano l, c lub r", + "Expected ]" => "Oczekiwano ]", + "Unexpected end of CD row after @" => "Nieoczekiwany koniec wiersza CD po @", + "Invalid column alignment for subarray" => "Nieprawidłowe wyrównanie kolumn dla subarray", + "{subarray} can contain only one column" => "{subarray} może zawierać tylko jedną kolumnę", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree zawiera \\LeftLabel lub \\RightLabel bez następującego polecenia wnioskowania" + } + "Recursion limit exceeded" => "Przekroczono limit rekurencji", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Za dużo rozwinięć makr: nieskończona pętla lub zbyt niskie ustawienie maxExpand" + } + "Expected raw style for \\htmlStyle" => "Oczekiwano surowego stylu dla \\htmlStyle", + "\\verb assertion failed" => "Sprawdzenie \\verb nie powiodło się", + "Undefined control sequence: {name}" => "Niezdefiniowana sekwencja sterująca: {name}", + "Expected '{expected}', got '{got}'" => "Oczekiwano '{expected}', napotkano '{got}'", + "Expected group after '{symbol}'" => "Oczekiwano grupy po '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Oczekiwano ogranicznika jako argumentu '{function}'", + "Expected group as argument to '{function}'" => "Oczekiwano grupy jako argumentu '{function}'", + "Got function '{function}' with no arguments as superscript" => "Funkcja '{function}' bez argumentów użyta jako indeks górny", + "Got function '{function}' with no arguments as subscript" => "Funkcja '{function}' bez argumentów użyta jako indeks dolny", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Funkcja '{function}' bez argumentów użyta jako argument '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Funkcja '{function}' bez argumentów użyta jako \\tag", + "Can't use function '{function}' in text mode" => "Funkcji '{function}' nie można użyć w trybie tekstowym", + "Can't use function '{function}' in math mode" => "Funkcji '{function}' nie można użyć w trybie matematycznym", + "Invalid color: '{color}'" => "Nieprawidłowy kolor: '{color}'", + "Invalid size: '{size}'" => "Nieprawidłowy rozmiar: '{size}'", + "Invalid unit: '{unit}'" => "Nieprawidłowa jednostka: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Nieprawidłowy ogranicznik '{delimiter}' po '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Nieprawidłowy typ ogranicznika '{type}' po '{function}'", + "Invalid delimiter type '{type}'" => "Nieprawidłowy typ ogranicznika '{type}'", + "No such environment: {name}" => "Nieznane środowisko: {name}", + "Expected argument to \\begin{{name}}" => "Oczekiwano argumentu dla \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Niezgodność: \\begin{{begin}} zamknięte przez \\end{{end}}", + "{command} valid only within array environment" => "{command} jest dozwolone tylko w środowisku array", + "Mismatched {command}" => "{command} bez pary", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Oczekiwano &, \\\\, \\cr lub \\end, napotkano '{got}'", + "Unknown column alignment: {alignment}" => "Nieznane wyrównanie kolumny: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Za dużo formuł w wierszu: oczekiwano {expected}, jest {got}", + "Unknown CD directive: @{directive}" => "Nieznana dyrektywa CD: @{directive}", + "Expected argument for {command}" => "Oczekiwano argumentu dla {command}", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} wymaga {count} przesłanek, ale dostępnych jest tylko {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} jest dozwolone w prooftree tylko jako obsługiwane polecenie bussproofs" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "prooftree zakończyło się z {count} elementami na stosie dowodu, oczekiwano 1" + } + "\\@char has non-numeric argument {argument}" => "\\@char ma nienumeryczny argument {argument}", + "\\@char with invalid code point {code}" => "\\@char z nieprawidłowym punktem kodowym {code}", + "Invalid environment name character: {character}" => "Nieprawidłowy znak w nazwie środowiska: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/pt.rs b/crates/ui-egui/src/i18n/pt.rs index db8ab2500..6c96e8528 100644 --- a/crates/ui-egui/src/i18n/pt.rs +++ b/crates/ui-egui/src/i18n/pt.rs @@ -1053,6 +1053,82 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Macro “{name}” stopped: {message}" => "Macro “{name}” interrompida: {message}", "Ran macro “{name}” ({steps} step)" => "Macro “{name}” executada ({steps} etapa)", "Ran macro “{name}” ({steps} steps)" => "Macro “{name}” executada ({steps} etapas)", + "Double superscript" => "Sobrescrito duplo", + "Double subscript" => "Subscrito duplo", + "Extra }" => "} a mais", + "Unexpected end of input in a macro argument" => "Fim inesperado da entrada em um argumento de macro", + "Expected \\right after \\left" => "\\right esperado após \\left", + "\\middle must be within \\left and \\right" => "\\middle deve estar entre \\left e \\right", + "Invalid environment name" => "Nome de ambiente inválido", + "Expected \\end after environment body" => "\\end esperado após o corpo do ambiente", + "Expected URL" => "URL esperada", + "\\tag requires an argument" => "\\tag requer um argumento", + "only one infix operator per group" => "Apenas um operador infixo por grupo", + "Expected color token" => "Cor esperada", + "Expected size for \\raisebox" => "Tamanho esperado para \\raisebox", + "Expected size for \\rule width" => "Tamanho esperado para a largura de \\rule", + "Expected size for \\rule height" => "Tamanho esperado para a altura de \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "Não é possível usar \\tag e \\nonumber na mesma linha", + "Multiple \\tag in a row" => "Vários \\tag em uma linha", + "\\tag must appear at the end of the row after the equation body" => "\\tag deve aparecer no fim da linha, após o corpo da equação", + "Multiple \\nonumber in a row" => "Vários \\nonumber em uma linha", + "\\nonumber must appear at the end of the row" => "\\nonumber deve aparecer no fim da linha", + "Too many tab characters: &" => "Caracteres de tabulação demais: &", + "Invalid column alignment for array" => "Alinhamento de coluna inválido para array", + "Expected column alignment character" => "Caractere de alinhamento de coluna esperado", + "Expected l or c or r" => "l, c ou r esperado", + "Expected ]" => "] esperado", + "Unexpected end of CD row after @" => "Fim inesperado da linha CD após @", + "Invalid column alignment for subarray" => "Alinhamento de coluna inválido para subarray", + "{subarray} can contain only one column" => "{subarray} pode conter apenas uma coluna", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree tem um \\LeftLabel ou \\RightLabel sem um comando de inferência a seguir" + } + "Recursion limit exceeded" => "Limite de recursão excedido", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Expansões de macro demais: laço infinito ou configuração maxExpand baixa demais" + } + "Expected raw style for \\htmlStyle" => "Estilo bruto esperado para \\htmlStyle", + "\\verb assertion failed" => "Falha na verificação de \\verb", + "Undefined control sequence: {name}" => "Sequência de controle não definida: {name}", + "Expected '{expected}', got '{got}'" => "'{expected}' esperado, '{got}' encontrado", + "Expected group after '{symbol}'" => "Grupo esperado após '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Delimitador esperado como argumento de '{function}'", + "Expected group as argument to '{function}'" => "Grupo esperado como argumento de '{function}'", + "Got function '{function}' with no arguments as superscript" => "Função '{function}' sem argumentos usada como sobrescrito", + "Got function '{function}' with no arguments as subscript" => "Função '{function}' sem argumentos usada como subscrito", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Função '{function}' sem argumentos usada como argumento de '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Função '{function}' sem argumentos usada como \\tag", + "Can't use function '{function}' in text mode" => "A função '{function}' não pode ser usada no modo de texto", + "Can't use function '{function}' in math mode" => "A função '{function}' não pode ser usada no modo matemático", + "Invalid color: '{color}'" => "Cor inválida: '{color}'", + "Invalid size: '{size}'" => "Tamanho inválido: '{size}'", + "Invalid unit: '{unit}'" => "Unidade inválida: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Delimitador '{delimiter}' inválido após '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Tipo de delimitador '{type}' inválido após '{function}'", + "Invalid delimiter type '{type}'" => "Tipo de delimitador '{type}' inválido", + "No such environment: {name}" => "Ambiente desconhecido: {name}", + "Expected argument to \\begin{{name}}" => "Argumento esperado para \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Não correspondem: \\begin{{begin}} fechado por \\end{{end}}", + "{command} valid only within array environment" => "{command} só é válido dentro de um ambiente array", + "Mismatched {command}" => "{command} sem correspondência", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "&, \\\\, \\cr ou \\end esperado, '{got}' encontrado", + "Unknown column alignment: {alignment}" => "Alinhamento de coluna desconhecido: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Fórmulas demais em uma linha: {expected} esperadas, {got} encontradas", + "Unknown CD directive: @{directive}" => "Diretiva CD desconhecida: @{directive}", + "Expected argument for {command}" => "Argumento esperado para {command}", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} precisa de {count} premissa(s), mas só há {available} disponível(is)" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} só é válido como comando bussproofs compatível dentro de prooftree" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree terminou com {count} item(ns) na pilha de prova; esperado 1", + "\\@char has non-numeric argument {argument}" => "\\@char tem um argumento não numérico {argument}", + "\\@char with invalid code point {code}" => "\\@char com ponto de código inválido {code}", + "Invalid environment name character: {character}" => "Caractere inválido no nome do ambiente: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/ro.rs b/crates/ui-egui/src/i18n/ro.rs index 09dcef439..30ecc4936 100644 --- a/crates/ui-egui/src/i18n/ro.rs +++ b/crates/ui-egui/src/i18n/ro.rs @@ -1097,6 +1097,84 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Macro “{name}” stopped: {message}" => "Macrocomanda „{name}” s-a oprit: {message}", "Ran macro “{name}” ({steps} step)" => "Macrocomanda „{name}” a rulat ({steps} pas)", "Ran macro “{name}” ({steps} steps)" => "Macrocomanda „{name}” a rulat (pași: {steps})", + "Double superscript" => "Exponent dublu", + "Double subscript" => "Indice dublu", + "Extra }" => "} în plus", + "Unexpected end of input in a macro argument" => "Sfârșit neașteptat al intrării într-un argument de macro", + "Expected \\right after \\left" => "Se aștepta \\right după \\left", + "\\middle must be within \\left and \\right" => "\\middle trebuie să fie între \\left și \\right", + "Invalid environment name" => "Nume de mediu nevalid", + "Expected \\end after environment body" => "Se aștepta \\end după conținutul mediului", + "Expected URL" => "Se aștepta un URL", + "\\tag requires an argument" => "\\tag necesită un argument", + "only one infix operator per group" => "Un singur operator infix per grup", + "Expected color token" => "Se aștepta o culoare", + "Expected size for \\raisebox" => "Se aștepta o dimensiune pentru \\raisebox", + "Expected size for \\rule width" => "Se aștepta o dimensiune pentru lățimea \\rule", + "Expected size for \\rule height" => "Se aștepta o dimensiune pentru înălțimea \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "\\tag și \\nonumber nu pot fi folosite pe același rând", + "Multiple \\tag in a row" => "Mai multe \\tag pe un rând", + "\\tag must appear at the end of the row after the equation body" => "\\tag trebuie să fie la sfârșitul rândului, după corpul ecuației", + "Multiple \\nonumber in a row" => "Mai multe \\nonumber pe un rând", + "\\nonumber must appear at the end of the row" => "\\nonumber trebuie să fie la sfârșitul rândului", + "Too many tab characters: &" => "Prea multe caractere de tabulare: &", + "Invalid column alignment for array" => "Aliniere de coloană nevalidă pentru array", + "Expected column alignment character" => "Se aștepta un caracter de aliniere a coloanei", + "Expected l or c or r" => "Se aștepta l, c sau r", + "Expected ]" => "Se aștepta ]", + "Unexpected end of CD row after @" => "Sfârșit neașteptat al rândului CD după @", + "Invalid column alignment for subarray" => "Aliniere de coloană nevalidă pentru subarray", + "{subarray} can contain only one column" => "{subarray} poate conține o singură coloană", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree are un \\LeftLabel sau \\RightLabel fără o comandă de inferență după el" + } + "Recursion limit exceeded" => "Limita de recursivitate a fost depășită", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Prea multe expandări de macro: buclă infinită sau setarea maxExpand prea mică" + } + "Expected raw style for \\htmlStyle" => "Se aștepta un stil brut pentru \\htmlStyle", + "\\verb assertion failed" => "Verificarea \\verb a eșuat", + "Undefined control sequence: {name}" => "Secvență de control nedefinită: {name}", + "Expected '{expected}', got '{got}'" => "Se aștepta '{expected}', s-a găsit '{got}'", + "Expected group after '{symbol}'" => "Se aștepta un grup după '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Se aștepta un delimitator ca argument pentru '{function}'", + "Expected group as argument to '{function}'" => "Se aștepta un grup ca argument pentru '{function}'", + "Got function '{function}' with no arguments as superscript" => "Funcția '{function}' fără argumente folosită ca exponent", + "Got function '{function}' with no arguments as subscript" => "Funcția '{function}' fără argumente folosită ca indice", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Funcția '{function}' fără argumente folosită ca argument pentru '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Funcția '{function}' fără argumente folosită ca \\tag", + "Can't use function '{function}' in text mode" => "Funcția '{function}' nu poate fi folosită în modul text", + "Can't use function '{function}' in math mode" => "Funcția '{function}' nu poate fi folosită în modul matematic", + "Invalid color: '{color}'" => "Culoare nevalidă: '{color}'", + "Invalid size: '{size}'" => "Dimensiune nevalidă: '{size}'", + "Invalid unit: '{unit}'" => "Unitate nevalidă: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Delimitator '{delimiter}' nevalid după '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Tip de delimitator '{type}' nevalid după '{function}'", + "Invalid delimiter type '{type}'" => "Tip de delimitator '{type}' nevalid", + "No such environment: {name}" => "Mediu necunoscut: {name}", + "Expected argument to \\begin{{name}}" => "Se aștepta un argument pentru \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Nepotrivire: \\begin{{begin}} închis de \\end{{end}}", + "{command} valid only within array environment" => "{command} este valid doar într-un mediu array", + "Mismatched {command}" => "{command} fără pereche", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Se aștepta &, \\\\, \\cr sau \\end, s-a găsit '{got}'", + "Unknown column alignment: {alignment}" => "Aliniere de coloană necunoscută: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Prea multe formule pe un rând: se așteptau {expected}, s-au găsit {got}", + "Unknown CD directive: @{directive}" => "Directivă CD necunoscută: @{directive}", + "Expected argument for {command}" => "Se aștepta un argument pentru {command}", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} necesită {count} premisă(e), dar sunt disponibile doar {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} este valid doar ca o comandă bussproofs acceptată în prooftree" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "prooftree s-a încheiat cu {count} element(e) în stiva de demonstrație, se aștepta 1" + } + "\\@char has non-numeric argument {argument}" => "\\@char are un argument nenumeric {argument}", + "\\@char with invalid code point {code}" => "\\@char cu punct de cod nevalid {code}", + "Invalid environment name character: {character}" => "Caracter nevalid în numele mediului: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rs index 857695ba1..67ebbf82e 100644 --- a/crates/ui-egui/src/i18n/ru.rs +++ b/crates/ui-egui/src/i18n/ru.rs @@ -526,6 +526,84 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Подбор параметра нашёл решение: {value}", "Sheets: {sheets}" => "Листы: {sheets}", "Hidden: {sheets}" => "Скрытые: {sheets}", + "Double superscript" => "Двойной верхний индекс", + "Double subscript" => "Двойной нижний индекс", + "Extra }" => "Лишняя }", + "Unexpected end of input in a macro argument" => "Неожиданный конец ввода в аргументе макроса", + "Expected \\right after \\left" => "После \\left ожидается \\right", + "\\middle must be within \\left and \\right" => "\\middle должен стоять между \\left и \\right", + "Invalid environment name" => "Недопустимое имя окружения", + "Expected \\end after environment body" => "После содержимого окружения ожидается \\end", + "Expected URL" => "Ожидается URL-адрес", + "\\tag requires an argument" => "Для \\tag требуется аргумент", + "only one infix operator per group" => "В группе допускается только один инфиксный оператор", + "Expected color token" => "Ожидается цвет", + "Expected size for \\raisebox" => "Для \\raisebox ожидается размер", + "Expected size for \\rule width" => "Для ширины \\rule ожидается размер", + "Expected size for \\rule height" => "Для высоты \\rule ожидается размер", + "Cannot use both \\tag and \\nonumber in the same row" => "Нельзя использовать \\tag и \\nonumber в одной строке", + "Multiple \\tag in a row" => "Несколько \\tag в одной строке", + "\\tag must appear at the end of the row after the equation body" => "\\tag должен стоять в конце строки после формулы", + "Multiple \\nonumber in a row" => "Несколько \\nonumber в одной строке", + "\\nonumber must appear at the end of the row" => "\\nonumber должен стоять в конце строки", + "Too many tab characters: &" => "Слишком много символов табуляции: &", + "Invalid column alignment for array" => "Недопустимое выравнивание столбцов для array", + "Expected column alignment character" => "Ожидается символ выравнивания столбца", + "Expected l or c or r" => "Ожидается l, c или r", + "Expected ]" => "Ожидается ]", + "Unexpected end of CD row after @" => "Неожиданный конец строки CD после @", + "Invalid column alignment for subarray" => "Недопустимое выравнивание столбцов для subarray", + "{subarray} can contain only one column" => "{subarray} может содержать только один столбец", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "В prooftree есть \\LeftLabel или \\RightLabel без последующей команды вывода" + } + "Recursion limit exceeded" => "Превышен предел рекурсии", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Слишком много раскрытий макросов: бесконечный цикл или слишком малое значение maxExpand" + } + "Expected raw style for \\htmlStyle" => "Для \\htmlStyle ожидается необработанный стиль", + "\\verb assertion failed" => "Проверка \\verb не пройдена", + "Undefined control sequence: {name}" => "Неопределённая управляющая последовательность: {name}", + "Expected '{expected}', got '{got}'" => "Ожидается '{expected}', получено '{got}'", + "Expected group after '{symbol}'" => "После '{symbol}' ожидается группа", + "Expected delimiter as argument to '{function}'" => "В качестве аргумента '{function}' ожидается разделитель", + "Expected group as argument to '{function}'" => "В качестве аргумента '{function}' ожидается группа", + "Got function '{function}' with no arguments as superscript" => "Функция '{function}' без аргументов использована как верхний индекс", + "Got function '{function}' with no arguments as subscript" => "Функция '{function}' без аргументов использована как нижний индекс", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Функция '{function}' без аргументов использована как аргумент '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Функция '{function}' без аргументов использована как \\tag", + "Can't use function '{function}' in text mode" => "Функцию '{function}' нельзя использовать в текстовом режиме", + "Can't use function '{function}' in math mode" => "Функцию '{function}' нельзя использовать в математическом режиме", + "Invalid color: '{color}'" => "Недопустимый цвет: '{color}'", + "Invalid size: '{size}'" => "Недопустимый размер: '{size}'", + "Invalid unit: '{unit}'" => "Недопустимая единица: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Недопустимый разделитель '{delimiter}' после '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Недопустимый тип разделителя '{type}' после '{function}'", + "Invalid delimiter type '{type}'" => "Недопустимый тип разделителя '{type}'", + "No such environment: {name}" => "Неизвестное окружение: {name}", + "Expected argument to \\begin{{name}}" => "Для \\begin{{name}} ожидается аргумент", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Несоответствие: \\begin{{begin}} закрыт \\end{{end}}", + "{command} valid only within array environment" => "{command} допускается только в окружении array", + "Mismatched {command}" => "{command} без пары", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Ожидается &, \\\\, \\cr или \\end, получено '{got}'", + "Unknown column alignment: {alignment}" => "Неизвестное выравнивание столбца: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Слишком много формул в строке: ожидалось {expected}, получено {got}", + "Unknown CD directive: @{directive}" => "Неизвестная директива CD: @{directive}", + "Expected argument for {command}" => "Для {command} ожидается аргумент", + "{command} needs {count} premise(s), but only {available} available" => { + "Для {command} нужно посылок: {count}, но доступно только {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} допускается в prooftree только как поддерживаемая команда bussproofs" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "prooftree завершился с элементами в стеке доказательства: {count}, ожидался 1" + } + "\\@char has non-numeric argument {argument}" => "У \\@char нечисловой аргумент {argument}", + "\\@char with invalid code point {code}" => "\\@char с недопустимой кодовой точкой {code}", + "Invalid environment name character: {character}" => "Недопустимый символ в имени окружения: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/sr.rs b/crates/ui-egui/src/i18n/sr.rs index 7a8312d52..fad0524d8 100644 --- a/crates/ui-egui/src/i18n/sr.rs +++ b/crates/ui-egui/src/i18n/sr.rs @@ -513,6 +513,80 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Traženje cilja je pronašlo rešenje: {value}", "Sheets: {sheets}" => "Listovi: {sheets}", "Hidden: {sheets}" => "Skriveni: {sheets}", + "Double superscript" => "Dvostruki eksponent", + "Double subscript" => "Dvostruki indeks", + "Extra }" => "Višak }", + "Unexpected end of input in a macro argument" => "Neočekivan kraj unosa u argumentu makroa", + "Expected \\right after \\left" => "Posle \\left se očekuje \\right", + "\\middle must be within \\left and \\right" => "\\middle mora biti između \\left i \\right", + "Invalid environment name" => "Nevažeći naziv okruženja", + "Expected \\end after environment body" => "Posle sadržaja okruženja se očekuje \\end", + "Expected URL" => "Očekuje se URL adresa", + "\\tag requires an argument" => "\\tag zahteva argument", + "only one infix operator per group" => "Samo jedan infiksni operator po grupi", + "Expected color token" => "Očekuje se boja", + "Expected size for \\raisebox" => "Za \\raisebox se očekuje veličina", + "Expected size for \\rule width" => "Za širinu \\rule se očekuje veličina", + "Expected size for \\rule height" => "Za visinu \\rule se očekuje veličina", + "Cannot use both \\tag and \\nonumber in the same row" => "\\tag i \\nonumber ne mogu biti u istom redu", + "Multiple \\tag in a row" => "Više \\tag u jednom redu", + "\\tag must appear at the end of the row after the equation body" => "\\tag mora biti na kraju reda, posle sadržaja jednačine", + "Multiple \\nonumber in a row" => "Više \\nonumber u jednom redu", + "\\nonumber must appear at the end of the row" => "\\nonumber mora biti na kraju reda", + "Too many tab characters: &" => "Previše znakova tabulatora: &", + "Invalid column alignment for array" => "Nevažeće poravnanje kolona za array", + "Expected column alignment character" => "Očekuje se znak za poravnanje kolone", + "Expected l or c or r" => "Očekuje se l, c ili r", + "Expected ]" => "Očekuje se ]", + "Unexpected end of CD row after @" => "Neočekivan kraj CD reda posle @", + "Invalid column alignment for subarray" => "Nevažeće poravnanje kolona za subarray", + "{subarray} can contain only one column" => "{subarray} može da sadrži samo jednu kolonu", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree sadrži \\LeftLabel ili \\RightLabel bez naredne komande zaključivanja" + } + "Recursion limit exceeded" => "Prekoračeno ograničenje rekurzije", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Previše proširenja makroa: beskonačna petlja ili premala vrednost postavke maxExpand" + } + "Expected raw style for \\htmlStyle" => "Za \\htmlStyle se očekuje neobrađeni stil", + "\\verb assertion failed" => "Provera za \\verb nije uspela", + "Undefined control sequence: {name}" => "Nedefinisana kontrolna sekvenca: {name}", + "Expected '{expected}', got '{got}'" => "Očekuje se '{expected}', pronađeno '{got}'", + "Expected group after '{symbol}'" => "Posle '{symbol}' se očekuje grupa", + "Expected delimiter as argument to '{function}'" => "Kao argument za '{function}' se očekuje graničnik", + "Expected group as argument to '{function}'" => "Kao argument za '{function}' se očekuje grupa", + "Got function '{function}' with no arguments as superscript" => "Funkcija '{function}' bez argumenata upotrebljena kao eksponent", + "Got function '{function}' with no arguments as subscript" => "Funkcija '{function}' bez argumenata upotrebljena kao indeks", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Funkcija '{function}' bez argumenata upotrebljena kao argument za '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Funkcija '{function}' bez argumenata upotrebljena kao \\tag", + "Can't use function '{function}' in text mode" => "Funkcija '{function}' ne može da se koristi u tekstualnom režimu", + "Can't use function '{function}' in math mode" => "Funkcija '{function}' ne može da se koristi u matematičkom režimu", + "Invalid color: '{color}'" => "Nevažeća boja: '{color}'", + "Invalid size: '{size}'" => "Nevažeća veličina: '{size}'", + "Invalid unit: '{unit}'" => "Nevažeća jedinica: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Nevažeći graničnik '{delimiter}' posle '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Nevažeći tip graničnika '{type}' posle '{function}'", + "Invalid delimiter type '{type}'" => "Nevažeći tip graničnika '{type}'", + "No such environment: {name}" => "Nepoznato okruženje: {name}", + "Expected argument to \\begin{{name}}" => "Za \\begin{{name}} se očekuje argument", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Neslaganje: \\begin{{begin}} zatvoreno sa \\end{{end}}", + "{command} valid only within array environment" => "{command} važi samo unutar okruženja array", + "Mismatched {command}" => "{command} bez para", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Očekuje se &, \\\\, \\cr ili \\end, pronađeno '{got}'", + "Unknown column alignment: {alignment}" => "Nepoznato poravnanje kolone: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Previše formula u redu: očekivano {expected}, pronađeno {got}", + "Unknown CD directive: @{directive}" => "Nepoznata CD direktiva: @{directive}", + "Expected argument for {command}" => "Za {command} se očekuje argument", + "{command} needs {count} premise(s), but only {available} available" => "{command} zahteva {count} premisa, ali je dostupno samo {available}", + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} u prooftree važi samo kao podržana bussproofs komanda" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree se završio sa {count} stavki na steku dokaza, očekivana 1", + "\\@char has non-numeric argument {argument}" => "\\@char ima nenumerički argument {argument}", + "\\@char with invalid code point {code}" => "\\@char sa nevažećom kodnom tačkom {code}", + "Invalid environment name character: {character}" => "Nevažeći znak u nazivu okruženja: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/tr.rs b/crates/ui-egui/src/i18n/tr.rs index 8e94e8b65..d6f63b7f1 100644 --- a/crates/ui-egui/src/i18n/tr.rs +++ b/crates/ui-egui/src/i18n/tr.rs @@ -483,6 +483,82 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Hedef Ara bir çözüm buldu: {value}", "Sheets: {sheets}" => "Sayfalar: {sheets}", "Hidden: {sheets}" => "Gizli: {sheets}", + "Double superscript" => "Çift üst simge", + "Double subscript" => "Çift alt simge", + "Extra }" => "Fazladan }", + "Unexpected end of input in a macro argument" => "Makro bağımsız değişkeninde beklenmeyen giriş sonu", + "Expected \\right after \\left" => "\\left sonrasında \\right bekleniyordu", + "\\middle must be within \\left and \\right" => "\\middle, \\left ile \\right arasında olmalıdır", + "Invalid environment name" => "Geçersiz ortam adı", + "Expected \\end after environment body" => "Ortam gövdesinden sonra \\end bekleniyordu", + "Expected URL" => "URL bekleniyordu", + "\\tag requires an argument" => "\\tag bir bağımsız değişken gerektirir", + "only one infix operator per group" => "Grup başına yalnızca bir ara işleç", + "Expected color token" => "Renk bekleniyordu", + "Expected size for \\raisebox" => "\\raisebox için boyut bekleniyordu", + "Expected size for \\rule width" => "\\rule genişliği için boyut bekleniyordu", + "Expected size for \\rule height" => "\\rule yüksekliği için boyut bekleniyordu", + "Cannot use both \\tag and \\nonumber in the same row" => "\\tag ve \\nonumber aynı satırda birlikte kullanılamaz", + "Multiple \\tag in a row" => "Bir satırda birden çok \\tag", + "\\tag must appear at the end of the row after the equation body" => "\\tag satırın sonunda, denklem gövdesinden sonra yer almalıdır", + "Multiple \\nonumber in a row" => "Bir satırda birden çok \\nonumber", + "\\nonumber must appear at the end of the row" => "\\nonumber satırın sonunda yer almalıdır", + "Too many tab characters: &" => "Çok fazla sekme karakteri: &", + "Invalid column alignment for array" => "array için geçersiz sütun hizalaması", + "Expected column alignment character" => "Sütun hizalama karakteri bekleniyordu", + "Expected l or c or r" => "l, c veya r bekleniyordu", + "Expected ]" => "] bekleniyordu", + "Unexpected end of CD row after @" => "@ sonrasında beklenmeyen CD satırı sonu", + "Invalid column alignment for subarray" => "subarray için geçersiz sütun hizalaması", + "{subarray} can contain only one column" => "{subarray} yalnızca bir sütun içerebilir", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree, ardından çıkarım komutu gelmeyen bir \\LeftLabel veya \\RightLabel içeriyor" + } + "Recursion limit exceeded" => "Özyineleme sınırı aşıldı", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Çok fazla makro genişletmesi: sonsuz döngü veya maxExpand ayarı çok düşük" + } + "Expected raw style for \\htmlStyle" => "\\htmlStyle için ham stil bekleniyordu", + "\\verb assertion failed" => "\\verb denetimi başarısız oldu", + "Undefined control sequence: {name}" => "Tanımsız denetim dizisi: {name}", + "Expected '{expected}', got '{got}'" => "'{expected}' bekleniyordu, '{got}' bulundu", + "Expected group after '{symbol}'" => "'{symbol}' sonrasında grup bekleniyordu", + "Expected delimiter as argument to '{function}'" => "'{function}' bağımsız değişkeni olarak sınırlayıcı bekleniyordu", + "Expected group as argument to '{function}'" => "'{function}' bağımsız değişkeni olarak grup bekleniyordu", + "Got function '{function}' with no arguments as superscript" => "Bağımsız değişkensiz '{function}' işlevi üst simge olarak kullanıldı", + "Got function '{function}' with no arguments as subscript" => "Bağımsız değişkensiz '{function}' işlevi alt simge olarak kullanıldı", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Bağımsız değişkensiz '{function}' işlevi '{parent}' bağımsız değişkeni olarak kullanıldı" + } + "Got function '{function}' with no arguments as \\tag" => "Bağımsız değişkensiz '{function}' işlevi \\tag olarak kullanıldı", + "Can't use function '{function}' in text mode" => "'{function}' işlevi metin modunda kullanılamaz", + "Can't use function '{function}' in math mode" => "'{function}' işlevi matematik modunda kullanılamaz", + "Invalid color: '{color}'" => "Geçersiz renk: '{color}'", + "Invalid size: '{size}'" => "Geçersiz boyut: '{size}'", + "Invalid unit: '{unit}'" => "Geçersiz birim: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "'{function}' sonrasında geçersiz sınırlayıcı '{delimiter}'", + "Invalid delimiter type '{type}' after '{function}'" => "'{function}' sonrasında geçersiz sınırlayıcı türü '{type}'", + "Invalid delimiter type '{type}'" => "Geçersiz sınırlayıcı türü '{type}'", + "No such environment: {name}" => "Bilinmeyen ortam: {name}", + "Expected argument to \\begin{{name}}" => "\\begin{{name}} için bağımsız değişken bekleniyordu", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Uyuşmazlık: \\begin{{begin}}, \\end{{end}} ile kapatılmış", + "{command} valid only within array environment" => "{command} yalnızca array ortamında geçerlidir", + "Mismatched {command}" => "Eşi olmayan {command}", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "&, \\\\, \\cr veya \\end bekleniyordu, '{got}' bulundu", + "Unknown column alignment: {alignment}" => "Bilinmeyen sütun hizalaması: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Bir satırda çok fazla formül: {expected} bekleniyordu, {got} bulundu", + "Unknown CD directive: @{directive}" => "Bilinmeyen CD yönergesi: @{directive}", + "Expected argument for {command}" => "{command} için bağımsız değişken bekleniyordu", + "{command} needs {count} premise(s), but only {available} available" => { + "{command} {count} öncül gerektirir, ancak yalnızca {available} mevcut" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} prooftree içinde yalnızca desteklenen bir bussproofs komutu olarak geçerlidir" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree, ispat yığınında {count} öğeyle bitti, 1 bekleniyordu", + "\\@char has non-numeric argument {argument}" => "\\@char sayısal olmayan bir bağımsız değişkene sahip: {argument}", + "\\@char with invalid code point {code}" => "\\@char geçersiz bir kod noktası içeriyor: {code}", + "Invalid environment name character: {character}" => "Ortam adında geçersiz karakter: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rs index 2711398e8..3fa3550c8 100644 --- a/crates/ui-egui/src/i18n/uk.rs +++ b/crates/ui-egui/src/i18n/uk.rs @@ -1039,6 +1039,84 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Macro “{name}” stopped: {message}" => "Макрос «{name}» зупинено: {message}", "Ran macro “{name}” ({steps} step)" => "Макрос «{name}» виконано ({steps} крок)", "Ran macro “{name}” ({steps} steps)" => "Макрос «{name}» виконано (кроків: {steps})", + "Double superscript" => "Подвійний верхній індекс", + "Double subscript" => "Подвійний нижній індекс", + "Extra }" => "Зайва }", + "Unexpected end of input in a macro argument" => "Неочікуваний кінець введення в аргументі макросу", + "Expected \\right after \\left" => "Після \\left очікується \\right", + "\\middle must be within \\left and \\right" => "\\middle має стояти між \\left і \\right", + "Invalid environment name" => "Неприпустима назва середовища", + "Expected \\end after environment body" => "Після вмісту середовища очікується \\end", + "Expected URL" => "Очікується URL-адреса", + "\\tag requires an argument" => "Для \\tag потрібен аргумент", + "only one infix operator per group" => "У групі допускається лише один інфіксний оператор", + "Expected color token" => "Очікується колір", + "Expected size for \\raisebox" => "Для \\raisebox очікується розмір", + "Expected size for \\rule width" => "Для ширини \\rule очікується розмір", + "Expected size for \\rule height" => "Для висоти \\rule очікується розмір", + "Cannot use both \\tag and \\nonumber in the same row" => "Не можна використовувати \\tag і \\nonumber в одному рядку", + "Multiple \\tag in a row" => "Кілька \\tag в одному рядку", + "\\tag must appear at the end of the row after the equation body" => "\\tag має стояти в кінці рядка після формули", + "Multiple \\nonumber in a row" => "Кілька \\nonumber в одному рядку", + "\\nonumber must appear at the end of the row" => "\\nonumber має стояти в кінці рядка", + "Too many tab characters: &" => "Забагато символів табуляції: &", + "Invalid column alignment for array" => "Неприпустиме вирівнювання стовпців для array", + "Expected column alignment character" => "Очікується символ вирівнювання стовпця", + "Expected l or c or r" => "Очікується l, c або r", + "Expected ]" => "Очікується ]", + "Unexpected end of CD row after @" => "Неочікуваний кінець рядка CD після @", + "Invalid column alignment for subarray" => "Неприпустиме вирівнювання стовпців для subarray", + "{subarray} can contain only one column" => "{subarray} може містити лише один стовпець", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "У prooftree є \\LeftLabel або \\RightLabel без наступної команди виведення" + } + "Recursion limit exceeded" => "Перевищено межу рекурсії", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Забагато розгортань макросів: нескінченний цикл або замале значення maxExpand" + } + "Expected raw style for \\htmlStyle" => "Для \\htmlStyle очікується необроблений стиль", + "\\verb assertion failed" => "Перевірку \\verb не пройдено", + "Undefined control sequence: {name}" => "Невизначена керівна послідовність: {name}", + "Expected '{expected}', got '{got}'" => "Очікується '{expected}', отримано '{got}'", + "Expected group after '{symbol}'" => "Після '{symbol}' очікується група", + "Expected delimiter as argument to '{function}'" => "Як аргумент '{function}' очікується роздільник", + "Expected group as argument to '{function}'" => "Як аргумент '{function}' очікується група", + "Got function '{function}' with no arguments as superscript" => "Функцію '{function}' без аргументів використано як верхній індекс", + "Got function '{function}' with no arguments as subscript" => "Функцію '{function}' без аргументів використано як нижній індекс", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Функцію '{function}' без аргументів використано як аргумент '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Функцію '{function}' без аргументів використано як \\tag", + "Can't use function '{function}' in text mode" => "Функцію '{function}' не можна використовувати в текстовому режимі", + "Can't use function '{function}' in math mode" => "Функцію '{function}' не можна використовувати в математичному режимі", + "Invalid color: '{color}'" => "Неприпустимий колір: '{color}'", + "Invalid size: '{size}'" => "Неприпустимий розмір: '{size}'", + "Invalid unit: '{unit}'" => "Неприпустима одиниця: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Неприпустимий роздільник '{delimiter}' після '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Неприпустимий тип роздільника '{type}' після '{function}'", + "Invalid delimiter type '{type}'" => "Неприпустимий тип роздільника '{type}'", + "No such environment: {name}" => "Невідоме середовище: {name}", + "Expected argument to \\begin{{name}}" => "Для \\begin{{name}} очікується аргумент", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Невідповідність: \\begin{{begin}} закрито \\end{{end}}", + "{command} valid only within array environment" => "{command} допускається лише в середовищі array", + "Mismatched {command}" => "{command} без пари", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Очікується &, \\\\, \\cr або \\end, отримано '{got}'", + "Unknown column alignment: {alignment}" => "Невідоме вирівнювання стовпця: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Забагато формул у рядку: очікувалося {expected}, отримано {got}", + "Unknown CD directive: @{directive}" => "Невідома директива CD: @{directive}", + "Expected argument for {command}" => "Для {command} очікується аргумент", + "{command} needs {count} premise(s), but only {available} available" => { + "Для {command} потрібно засновків: {count}, але доступно лише {available}" + } + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} допускається в prooftree лише як підтримувана команда bussproofs" + } + "prooftree ended with {count} proof stack item(s), expected 1" => { + "prooftree завершився з елементами в стеку доведення: {count}, очікувався 1" + } + "\\@char has non-numeric argument {argument}" => "\\@char має нечисловий аргумент {argument}", + "\\@char with invalid code point {code}" => "\\@char з неприпустимою кодовою точкою {code}", + "Invalid environment name character: {character}" => "Неприпустимий символ у назві середовища: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/vi.rs b/crates/ui-egui/src/i18n/vi.rs index fb4a72c59..1789fd5bd 100644 --- a/crates/ui-egui/src/i18n/vi.rs +++ b/crates/ui-egui/src/i18n/vi.rs @@ -483,6 +483,80 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "Tìm mục tiêu đã tìm thấy nghiệm: {value}", "Sheets: {sheets}" => "Trang tính: {sheets}", "Hidden: {sheets}" => "Đang ẩn: {sheets}", + "Double superscript" => "Chỉ số trên bị lặp", + "Double subscript" => "Chỉ số dưới bị lặp", + "Extra }" => "Thừa }", + "Unexpected end of input in a macro argument" => "Dữ liệu nhập kết thúc bất ngờ trong đối số macro", + "Expected \\right after \\left" => "Cần \\right sau \\left", + "\\middle must be within \\left and \\right" => "\\middle phải nằm giữa \\left và \\right", + "Invalid environment name" => "Tên môi trường không hợp lệ", + "Expected \\end after environment body" => "Cần \\end sau phần thân môi trường", + "Expected URL" => "Cần URL", + "\\tag requires an argument" => "\\tag cần một đối số", + "only one infix operator per group" => "Mỗi nhóm chỉ được có một toán tử trung tố", + "Expected color token" => "Cần màu", + "Expected size for \\raisebox" => "Cần kích thước cho \\raisebox", + "Expected size for \\rule width" => "Cần kích thước cho chiều rộng \\rule", + "Expected size for \\rule height" => "Cần kích thước cho chiều cao \\rule", + "Cannot use both \\tag and \\nonumber in the same row" => "Không thể dùng cả \\tag và \\nonumber trong cùng một hàng", + "Multiple \\tag in a row" => "Nhiều \\tag trong một hàng", + "\\tag must appear at the end of the row after the equation body" => "\\tag phải nằm ở cuối hàng, sau phần thân phương trình", + "Multiple \\nonumber in a row" => "Nhiều \\nonumber trong một hàng", + "\\nonumber must appear at the end of the row" => "\\nonumber phải nằm ở cuối hàng", + "Too many tab characters: &" => "Quá nhiều ký tự tab: &", + "Invalid column alignment for array" => "Căn chỉnh cột không hợp lệ cho array", + "Expected column alignment character" => "Cần ký tự căn chỉnh cột", + "Expected l or c or r" => "Cần l, c hoặc r", + "Expected ]" => "Cần ]", + "Unexpected end of CD row after @" => "Hàng CD kết thúc bất ngờ sau @", + "Invalid column alignment for subarray" => "Căn chỉnh cột không hợp lệ cho subarray", + "{subarray} can contain only one column" => "{subarray} chỉ có thể chứa một cột", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree có \\LeftLabel hoặc \\RightLabel mà không có lệnh suy luận theo sau" + } + "Recursion limit exceeded" => "Vượt quá giới hạn đệ quy", + "Too many expansions: infinite loop or need to increase maxExpand setting" => { + "Quá nhiều lần mở rộng macro: vòng lặp vô hạn hoặc thiết lập maxExpand quá thấp" + } + "Expected raw style for \\htmlStyle" => "Cần kiểu thô cho \\htmlStyle", + "\\verb assertion failed" => "Kiểm tra \\verb không thành công", + "Undefined control sequence: {name}" => "Chuỗi điều khiển chưa định nghĩa: {name}", + "Expected '{expected}', got '{got}'" => "Cần '{expected}', nhận được '{got}'", + "Expected group after '{symbol}'" => "Cần nhóm sau '{symbol}'", + "Expected delimiter as argument to '{function}'" => "Cần dấu phân cách làm đối số cho '{function}'", + "Expected group as argument to '{function}'" => "Cần nhóm làm đối số cho '{function}'", + "Got function '{function}' with no arguments as superscript" => "Hàm '{function}' không có đối số được dùng làm chỉ số trên", + "Got function '{function}' with no arguments as subscript" => "Hàm '{function}' không có đối số được dùng làm chỉ số dưới", + "Got function '{function}' with no arguments as argument to '{parent}'" => { + "Hàm '{function}' không có đối số được dùng làm đối số cho '{parent}'" + } + "Got function '{function}' with no arguments as \\tag" => "Hàm '{function}' không có đối số được dùng làm \\tag", + "Can't use function '{function}' in text mode" => "Không thể dùng hàm '{function}' trong chế độ văn bản", + "Can't use function '{function}' in math mode" => "Không thể dùng hàm '{function}' trong chế độ toán", + "Invalid color: '{color}'" => "Màu không hợp lệ: '{color}'", + "Invalid size: '{size}'" => "Kích thước không hợp lệ: '{size}'", + "Invalid unit: '{unit}'" => "Đơn vị không hợp lệ: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "Dấu phân cách '{delimiter}' không hợp lệ sau '{function}'", + "Invalid delimiter type '{type}' after '{function}'" => "Loại dấu phân cách '{type}' không hợp lệ sau '{function}'", + "Invalid delimiter type '{type}'" => "Loại dấu phân cách '{type}' không hợp lệ", + "No such environment: {name}" => "Môi trường không xác định: {name}", + "Expected argument to \\begin{{name}}" => "Cần đối số cho \\begin{{name}}", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "Không khớp: \\begin{{begin}} được đóng bằng \\end{{end}}", + "{command} valid only within array environment" => "{command} chỉ hợp lệ bên trong môi trường array", + "Mismatched {command}" => "{command} không có cặp", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "Cần &, \\\\, \\cr hoặc \\end, nhận được '{got}'", + "Unknown column alignment: {alignment}" => "Căn chỉnh cột không xác định: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "Quá nhiều công thức trong một hàng: cần {expected}, có {got}", + "Unknown CD directive: @{directive}" => "Chỉ thị CD không xác định: @{directive}", + "Expected argument for {command}" => "Cần đối số cho {command}", + "{command} needs {count} premise(s), but only {available} available" => "{command} cần {count} tiền đề, nhưng chỉ có {available}", + "{command} valid only as a supported bussproofs command within prooftree" => { + "{command} chỉ hợp lệ như một lệnh bussproofs được hỗ trợ bên trong prooftree" + } + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree kết thúc với {count} mục trên ngăn xếp chứng minh, cần 1", + "\\@char has non-numeric argument {argument}" => "\\@char có đối số không phải số {argument}", + "\\@char with invalid code point {code}" => "\\@char có điểm mã không hợp lệ {code}", + "Invalid environment name character: {character}" => "Ký tự không hợp lệ trong tên môi trường: {character}", _ => return None, }) } diff --git a/crates/ui-egui/src/i18n/zh.rs b/crates/ui-egui/src/i18n/zh.rs index 86e24c7c2..b2370c2bb 100644 --- a/crates/ui-egui/src/i18n/zh.rs +++ b/crates/ui-egui/src/i18n/zh.rs @@ -512,6 +512,74 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Goal Seeking found a solution: {value}" => "单变量求解找到一个解: {value}", "Sheets: {sheets}" => "工作表: {sheets}", "Hidden: {sheets}" => "隐藏: {sheets}", + "Double superscript" => "上标重复", + "Double subscript" => "下标重复", + "Extra }" => "多余的 }", + "Unexpected end of input in a macro argument" => "宏参数中输入意外结束", + "Expected \\right after \\left" => "\\left 之后应有 \\right", + "\\middle must be within \\left and \\right" => "\\middle 必须位于 \\left 和 \\right 之间", + "Invalid environment name" => "环境名称无效", + "Expected \\end after environment body" => "环境主体之后应有 \\end", + "Expected URL" => "应为 URL", + "\\tag requires an argument" => "\\tag 需要一个参数", + "only one infix operator per group" => "每个组只能有一个中缀运算符", + "Expected color token" => "应为颜色", + "Expected size for \\raisebox" => "\\raisebox 需要尺寸", + "Expected size for \\rule width" => "\\rule 的宽度需要尺寸", + "Expected size for \\rule height" => "\\rule 的高度需要尺寸", + "Cannot use both \\tag and \\nonumber in the same row" => "同一行中不能同时使用 \\tag 和 \\nonumber", + "Multiple \\tag in a row" => "一行中有多个 \\tag", + "\\tag must appear at the end of the row after the equation body" => "\\tag 必须位于行尾、公式主体之后", + "Multiple \\nonumber in a row" => "一行中有多个 \\nonumber", + "\\nonumber must appear at the end of the row" => "\\nonumber 必须位于行尾", + "Too many tab characters: &" => "制表符过多: &", + "Invalid column alignment for array" => "array 的列对齐方式无效", + "Expected column alignment character" => "应为列对齐字符", + "Expected l or c or r" => "应为 l、c 或 r", + "Expected ]" => "应为 ]", + "Unexpected end of CD row after @" => "CD 行在 @ 之后意外结束", + "Invalid column alignment for subarray" => "subarray 的列对齐方式无效", + "{subarray} can contain only one column" => "{subarray} 只能包含一列", + "prooftree has a \\LeftLabel or \\RightLabel without a following inference command" => { + "prooftree 中的 \\LeftLabel 或 \\RightLabel 之后没有推理命令" + } + "Recursion limit exceeded" => "超出递归限制", + "Too many expansions: infinite loop or need to increase maxExpand setting" => "宏展开次数过多: 无限循环或 maxExpand 设置过小", + "Expected raw style for \\htmlStyle" => "\\htmlStyle 需要原始样式", + "\\verb assertion failed" => "\\verb 检查失败", + "Undefined control sequence: {name}" => "未定义的控制序列: {name}", + "Expected '{expected}', got '{got}'" => "应为 '{expected}',实际为 '{got}'", + "Expected group after '{symbol}'" => "'{symbol}' 之后应有组", + "Expected delimiter as argument to '{function}'" => "'{function}' 的参数应为分隔符", + "Expected group as argument to '{function}'" => "'{function}' 的参数应为组", + "Got function '{function}' with no arguments as superscript" => "无参数的函数 '{function}' 被用作上标", + "Got function '{function}' with no arguments as subscript" => "无参数的函数 '{function}' 被用作下标", + "Got function '{function}' with no arguments as argument to '{parent}'" => "无参数的函数 '{function}' 被用作 '{parent}' 的参数", + "Got function '{function}' with no arguments as \\tag" => "无参数的函数 '{function}' 被用作 \\tag", + "Can't use function '{function}' in text mode" => "函数 '{function}' 不能在文本模式中使用", + "Can't use function '{function}' in math mode" => "函数 '{function}' 不能在数学模式中使用", + "Invalid color: '{color}'" => "颜色无效: '{color}'", + "Invalid size: '{size}'" => "尺寸无效: '{size}'", + "Invalid unit: '{unit}'" => "单位无效: '{unit}'", + "Invalid delimiter '{delimiter}' after '{function}'" => "'{function}' 之后的分隔符 '{delimiter}' 无效", + "Invalid delimiter type '{type}' after '{function}'" => "'{function}' 之后的分隔符类型 '{type}' 无效", + "Invalid delimiter type '{type}'" => "分隔符类型 '{type}' 无效", + "No such environment: {name}" => "未知环境: {name}", + "Expected argument to \\begin{{name}}" => "\\begin{{name}} 需要参数", + "Mismatch: \\begin{{begin}} matched by \\end{{end}}" => "不匹配: \\begin{{begin}} 由 \\end{{end}} 结束", + "{command} valid only within array environment" => "{command} 仅在 array 环境中有效", + "Mismatched {command}" => "{command} 没有配对", + "Expected & or \\\\ or \\cr or \\end, got '{got}'" => "应为 &、\\\\、\\cr 或 \\end,实际为 '{got}'", + "Unknown column alignment: {alignment}" => "未知的列对齐方式: {alignment}", + "Too many math in a row: expected {expected}, but got {got}" => "一行中的公式过多: 应为 {expected} 个,实际为 {got} 个", + "Unknown CD directive: @{directive}" => "未知的 CD 指令: @{directive}", + "Expected argument for {command}" => "{command} 需要参数", + "{command} needs {count} premise(s), but only {available} available" => "{command} 需要 {count} 个前提,但只有 {available} 个", + "{command} valid only as a supported bussproofs command within prooftree" => "{command} 在 prooftree 中只能作为受支持的 bussproofs 命令使用", + "prooftree ended with {count} proof stack item(s), expected 1" => "prooftree 结束时证明栈中有 {count} 项,应为 1 项", + "\\@char has non-numeric argument {argument}" => "\\@char 的参数 {argument} 不是数字", + "\\@char with invalid code point {code}" => "\\@char 的码位 {code} 无效", + "Invalid environment name character: {character}" => "环境名称中有无效字符: {character}", _ => return None, }) } diff --git a/docs/localization-parity.md b/docs/localization-parity.md index d4c489f36..d3f94425c 100644 --- a/docs/localization-parity.md +++ b/docs/localization-parity.md @@ -1,6 +1,6 @@ # Localization parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-13 · **Change:** minor (status bar statistics, resize tips, picture-in-cell text, sheet notes, Format Control title, equation errors, Goal Seek and macro toasts follow the interface language); previously minor (Arabic PDF export no longer fails when a character or the Arabic font is missing; Arabic PDF cells keep their reading direction and RTL pages mirror); previously minor (Ukrainian Chart is Діаграма); previously minor (Diagram and Decorative Text labels, Diagram distinct from Chart); previously minor (CJK fallback baseline alignment); previously minor (Arabic bidi display, editing and cell reading direction; missing translations are listed by `cargo xtask i18n-report` and never fail a check); previously minor (Arabic font fallback; missing translations are listed by `cargo xtask i18n-report` and never fail a check); previously minor (number formats honour the `B1`/`B2` calendar prefixes, checked against Excel; earlier: missing translations are listed by `cargo xtask i18n-report` and never fail a check; Arabic text sorts by its letters, not its vowel marks); previously minor (AutoFit estimates Arabic text width from measured glyph widths); previously minor (missing translations are listed by `cargo xtask i18n-report` and never fail a check; Arabic text sorts by its letters, not its vowel marks) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-15 · **Change:** minor (RaTeX equation parser messages follow the interface language); previously minor (status bar statistics, resize tips, picture-in-cell text, sheet notes, Format Control title, equation errors, Goal Seek and macro toasts follow the interface language); previously minor (Arabic PDF export no longer fails when a character or the Arabic font is missing; Arabic PDF cells keep their reading direction and RTL pages mirror); previously minor (Ukrainian Chart is Діаграма); previously minor (Diagram and Decorative Text labels, Diagram distinct from Chart); previously minor (CJK fallback baseline alignment); previously minor (Arabic bidi display, editing and cell reading direction; missing translations are listed by `cargo xtask i18n-report` and never fail a check); previously minor (Arabic font fallback; missing translations are listed by `cargo xtask i18n-report` and never fail a check); previously minor (number formats honour the `B1`/`B2` calendar prefixes, checked against Excel; earlier: missing translations are listed by `cargo xtask i18n-report` and never fail a check; Arabic text sorts by its letters, not its vowel marks); previously minor (AutoFit estimates Arabic text width from measured glyph widths); previously minor (missing translations are listed by `cargo xtask i18n-report` and never fail a check; Arabic text sorts by its letters, not its vowel marks) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4 Per-language status against Excel, which ships its UI in dozens of languages (Windows language packs cover 100+), with localized function names, argument separators, number and date formats, @@ -17,8 +17,9 @@ Cell text now uses shared Unicode bidi layout while retaining logical source ind the Languages table are a snapshot from the dates given there; every language since added a catalog of its own (`crates/ui-egui/src/i18n/.rs`, 18 languages besides English), and `cargo xtask i18n-report` lists what each one still lacks. The status bar statistics, resize - tips, sheet notes, Goal Seek and macro toasts and the equation editor's own error messages now - follow the interface language; error text from the RaTeX equation parser stays English. + tips, sheet notes, Goal Seek and macro toasts and the equation editor's error messages, its own + and those of the RaTeX equation parser, now follow the interface language (a parser message of + a shape GridCraft does not know stays English). Where an older bullet below says status messages are English literals, this one supersedes it. - **A first catalog exists, for the ribbon only.** `crates/ui-egui/src/i18n.rs` (merged 10-10 in #31, #104, #82; German added 10-11) adds an interface-language preference that defaults to the @@ -145,6 +146,7 @@ language (none so far) and of localized function names. | Date | Change | Summary | |---|---|---| +| 2026-11-15 | minor | The RaTeX equation parser's messages follow the interface language: its 33 fixed messages are catalog keys, and its 33 messages that carry a piece of the source (a command, token, environment name or count) are read back into templates (`i18n::unfill`) whose translation is filled with the same pieces. A message of another shape, such as RaTeX's internal ones or the chemistry parser's, stays English. 66 new keys in every catalog (#4261) | | 2026-11-10 | minor | Ukrainian Chart is `Діаграма`, matching [craft-i18n#211](https://github.com/storytold/craft-i18n/pull/211) and distinct from Diagram (`Схема`) | | 2026-11-10 | minor | Diagram and Decorative Text labels in all 18 non-English catalogs; Diagram never repeats the catalog's chart word (German `Schema`, Ukrainian `Схема`, Romanian `Schemă`), see [feature-names.md](feature-names.md) | | 2026-11-09 | minor | Arabic PDF export no longer fails on a character the Arabic face lacks (it falls back like other text) or when no Arabic font is available (Arabic is set in the CID font, which has no Arabic glyphs, and a message says so) |