mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-26 11:16:50 -06:00
Integration: #829 Polish table columns, grid columns and a selection's group get their own words (pl::CONTEXT)
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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")];
|
||||
|
||||
Reference in New Issue
Block a user