From 8946ed8d82c392e69fda4a4e7de5781e8f9033f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20PHELIPOT?= Date: Tue, 21 Jan 2020 21:10:49 +0100 Subject: [PATCH] Add missing translations in voxygen Fix #436 --- assets/voxygen/i18n/en.ron | 1 + voxygen/src/hud/settings_window.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/voxygen/i18n/en.ron b/assets/voxygen/i18n/en.ron index ad38894438..0df1307fc7 100644 --- a/assets/voxygen/i18n/en.ron +++ b/assets/voxygen/i18n/en.ron @@ -153,6 +153,7 @@ Want to free your cursor to close this window? Press TAB! Enjoy your stay in the World of Veloren."#, "hud.settings.general": "General", + "hud.settings.none": "None", "hud.settings.help_window": "Help Window", "hud.settings.debug_info": "Debug Info", "hud.settings.tips_on_startup": "Tips-On-Startup", diff --git a/voxygen/src/hud/settings_window.rs b/voxygen/src/hud/settings_window.rs index e5ed0e947f..9a67ed00d9 100644 --- a/voxygen/src/hud/settings_window.rs +++ b/voxygen/src/hud/settings_window.rs @@ -445,7 +445,7 @@ impl<'a> Widget for SettingsWindow<'a> { events.push(Event::UiScale(ScaleChange::ToRelative)); } - Text::new("Relative Scaling") + Text::new(self.localized_strings.get("hud.settings.relative_scaling")) .right_from(state.ids.relative_to_win_button, 10.0) .font_size(14) .font_id(self.fonts.cyri) @@ -480,7 +480,7 @@ impl<'a> Widget for SettingsWindow<'a> { events.push(Event::UiScale(ScaleChange::ToAbsolute)); } - Text::new("Custom Scaling") + Text::new(self.localized_strings.get("hud.settings.custom_scaling")) .right_from(state.ids.absolute_scale_button, 10.0) .font_size(14) .font_id(self.fonts.cyri)