translations fixed to be safe
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user