Integration: #829 Polish table columns, grid columns and a selection's group get their own words (pl::CONTEXT)

This commit is contained in:
aiongg
2026-10-13 20:06:53 +00:00
parent 16c2ac46c6
commit 946ecf8da8
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -4155,6 +4155,7 @@ pub fn tr_context<'a>(lang: &str, s: &'a str, context: &str) -> &'a str {
"uk" => uk::CONTEXT,
"ru" => ru::CONTEXT,
"cs" => cs::CONTEXT,
"pl" => pl::CONTEXT,
"ja" => ja::CONTEXT,
_ => return tr(lang, s),
};
@@ -4494,6 +4495,12 @@ mod tests {
assert_eq!(tr("pl", "Unknown label"), "Unknown label");
assert_eq!(style_name("pl", "[Basic Paragraph]"), "[Podstawowy akapit]");
assert_eq!(workspace_name("pl", "Essentials"), "Podstawowe");
// A table's columns and grid columns aren't a text frame's; a selection's group isn't the action.
assert_eq!(tr("pl", "Columns"), "Łamy");
assert_eq!(tr_context("pl", "Columns", "table"), "Kolumny");
assert_eq!(tr_context("pl", "Columns:", "grid"), "Łamy:");
assert_eq!(tr("pl", "Group"), "Grupuj");
assert_eq!(tr_context("pl", "Group", "selection"), "Grupa");
}
#[test]
+4
View File
@@ -1738,3 +1738,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("View/Separations Preview", "Widok/Podgląd separacji"),
("View/Structure", "Widok/Struktura"),
];
/// Contexts whose Polish noun differs from the shared action/text-layout label.
pub(super) const CONTEXT: &[(&str, &str, &str)] =
&[("Columns", "table", "Kolumny"), ("Columns:", "grid", "Łamy:"), ("Group", "selection", "Grupa")];