translations fixed to be safe

This commit is contained in:
Priec
2026-08-15 12:44:36 +02:00
parent 6ef2694fef
commit 794efac594
26 changed files with 746 additions and 418 deletions

View File

@@ -464,14 +464,10 @@ impl TableDraft {
column: self.generated_display_name(&generated.name),
data_type: generated.data_type.clone(),
option: if generated.inherits_currency {
let mode = match column.money_mode {
crate::schema::MoneyMode::Exact => "exact",
crate::schema::MoneyMode::Rounded => "half-up",
};
format!(
"{}, {}",
column.currency,
tr!(*locale, &format!("td-money-{mode}")),
column.money_mode.display_label(locale),
)
} else {
String::new()