diff --git a/CHANGELOG.md b/CHANGELOG.md index 45c4cb63c7..5cfca637be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix a bug causing NPCs to jitter on interaction and randomly run away. - Harvester boss arenas should be more accessible and easier to exit - Fix agents not idling +- Fixed an error where '{amount} Exp' floater did not use existing localizations ## [0.12.0] - 2022-02-19 diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index aa5718fe16..8184998303 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -1522,7 +1522,10 @@ impl Hud { if floater.exp_change > 0 { let xp_pool = &floater.xp_pools; // Don't show 0 Exp - Text::new(&format!("{} Exp", floater.exp_change.max(1))) + let exp_string = &i18n + .get("hud.sct.experience") + .replace("{amount}", &floater.exp_change.max(1).to_string()); + Text::new(exp_string) .font_size(font_size_xp) .font_id(self.fonts.cyri.conrod_id) .color(Color::Rgba(0.0, 0.0, 0.0, fade)) @@ -1532,7 +1535,7 @@ impl Hud { - 3.0, ) .set(player_sct_bg_id, ui_widgets); - Text::new(&format!("{} Exp", floater.exp_change.max(1))) + Text::new(exp_string) .font_size(font_size_xp) .font_id(self.fonts.cyri.conrod_id) .color(