diff --git a/assets/voxygen/i18n/en/item/common.ftl b/assets/voxygen/i18n/en/item/common.ftl new file mode 100644 index 0000000000..334ed2677e --- /dev/null +++ b/assets/voxygen/i18n/en/item/common.ftl @@ -0,0 +1 @@ +items-common-amount = Amount: { $amount } \ No newline at end of file diff --git a/voxygen/src/ui/widgets/item_tooltip.rs b/voxygen/src/ui/widgets/item_tooltip.rs index ac640d3553..8bb91fe871 100644 --- a/voxygen/src/ui/widgets/item_tooltip.rs +++ b/voxygen/src/ui/widgets/item_tooltip.rs @@ -577,9 +577,14 @@ impl<'a> Widget for ItemTooltip<'a> { .color(quality) .set(state.ids.title, ui); + let amount = i18n.get_msg_ctx( + "items-common-amount", + &i18n::fluent_args! { "amount" => self.item.amount().get() }, + ); + // Amount let (subtitle_relative_id, spacing) = if self.item.amount().get() > 1 { - widget::Text::new(&format!("Amount: {}", self.item.amount().get())) + widget::Text::new(&amount) .w(title_w) .graphics_for(id) .parent(id)