From 9af75e1fc920492c6bed14bcba87a6e3b192253e Mon Sep 17 00:00:00 2001 From: Woeful_Wolf <54476280+WoefulWolf@users.noreply.github.com> Date: Sun, 28 Jan 2024 18:00:56 +0200 Subject: [PATCH] Settings labels use i18n --- assets/voxygen/i18n/en/hud/settings.ftl | 4 +++- voxygen/src/hud/settings_window/gameplay.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/voxygen/i18n/en/hud/settings.ftl b/assets/voxygen/i18n/en/hud/settings.ftl index b61b457e7d..2a3d61bca0 100644 --- a/assets/voxygen/i18n/en/hud/settings.ftl +++ b/assets/voxygen/i18n/en/hud/settings.ftl @@ -57,6 +57,8 @@ hud-settings-walking_speed_behavior = Walking speed behavior hud-settings-walking_speed = Walking speed hud-settings-camera_clamp_behavior = Camera clamp behavior hud-settings-zoom_lock_behavior = Camera zoom lock behavior +hud-settings-aim_offset_x = Horizontal Aim Offset +hud-settings-aim_offset_y = Vertical Aim Offset hud-settings-player_physics_behavior = Player physics (experimental) hud-settings-stop_auto_walk_on_input = Stop auto walk on movement hud-settings-auto_camera = Auto camera @@ -158,4 +160,4 @@ hud-settings-group_only = Group only hud-settings-reset_chat = Reset to Defaults hud-settings-third_party_integrations = Third-party Integrations hud-settings-enable_discord_integration = Enable Discord Integration -hud-settings-subtitles = Subtitles +hud-settings-subtitles = Subtitles \ No newline at end of file diff --git a/voxygen/src/hud/settings_window/gameplay.rs b/voxygen/src/hud/settings_window/gameplay.rs index 6645e350a6..bd3d641af0 100644 --- a/voxygen/src/hud/settings_window/gameplay.rs +++ b/voxygen/src/hud/settings_window/gameplay.rs @@ -670,7 +670,7 @@ impl<'a> Widget for Gameplay<'a> { // Aim offset x let display_aim_offset_x = self.global_state.settings.gameplay.aim_offset_x; - Text::new("Aim Offset X") + Text::new(&self.localized_strings.get_msg("hud-settings-aim_offset_x")) .down_from(state.ids.zoom_lock_behavior_list, 10.0) .font_size(self.fonts.cyri.scale(14)) .font_id(self.fonts.cyri.conrod_id) @@ -703,7 +703,7 @@ impl<'a> Widget for Gameplay<'a> { // Aim offset y let display_aim_offset_y = self.global_state.settings.gameplay.aim_offset_y; - Text::new("Aim Offset Y") + Text::new(&self.localized_strings.get_msg("hud-settings-aim_offset_y")) .down_from(state.ids.aim_offset_x_slider, 10.0) .font_size(self.fonts.cyri.scale(14)) .font_id(self.fonts.cyri.conrod_id)