Complete application localization across all supported languages

This commit is contained in:
Hakan Seven committed 2026-09-07 01:05:02 +03:00
1 parent 96c794c072
commit d66e89ca19
78 files changed
+26043 -877

No files matched your search

+6 -6
View File
@@ -323,8 +323,8 @@ let mut layer_usage = vec![Vec::<String>::new(); 256];
} else {
crate::io::plot_style::LW_TABLE
.get(e.lineweight as usize)
.map(|lw| format!("{lw:.2}mm (idx {})", e.lineweight))
.unwrap_or_else(|| format!("idx {}", e.lineweight))
.map(|lw| crate::tf!("{lw:.2}mm (idx {})", e.lineweight).into_owned())
.unwrap_or_else(|| crate::tf!("idx {}", e.lineweight).into_owned())
}
})
.unwrap_or_else(|| "—".into());
@@ -491,7 +491,7 @@ let mut layer_usage = vec![Vec::<String>::new(); 256];
container(
column![
row![
text(format!("Layers using ACI {selected_aci}"))
text(crate::tf!("Layers using ACI {selected_aci}"))
.size(11),
Space::new().width(iced::Length::Fill),
@@ -500,9 +500,9 @@ let mut layer_usage = vec![Vec::<String>::new(); 256];
"{} {}",
selected_layers.len(),
if selected_layers.len() == 1 {
"layer"
t!("layer")
} else {
"layers"
t!("layers")
}
))
.size(10)
@@ -512,7 +512,7 @@ let mut layer_usage = vec![Vec::<String>::new(); 256];
if selected_layers.is_empty() {
column![
text("No layers use this ACI in the current drawing.")
text(t!("No layers use this ACI in the current drawing."))
.size(10)
.style(muted_style)
]
+3 -3
View File
@@ -254,11 +254,11 @@ impl canvas::Program<Message> for TablePreviewCanvas {
let active = &self.rows[self.active_row.min(2)];
frame.fill_text(canvas::Text {
content: format!(
"{} · {} · type {} / unit {}{}{}",
"{} · {} · {} {} / {} {}{}{}",
active.text_style,
if self.annotative { t!("Annotative") } else { t!("Drawing units") },
active.data_type,
active.unit_type,
t!("Type"), active.data_type,
t!("Unit"), active.unit_type,
if self.description.trim().is_empty() { "" } else { " · " },
self.description,
),