From bbb1db06be715ed5ca9bee9388bd1f252e6e4d2a Mon Sep 17 00:00:00 2001 From: protocol-1903 <67478786+protocol-1903@users.noreply.github.com> Date: Thu, 1 Jan 2026 14:40:02 -0700 Subject: [PATCH] Fixed AM/FM text in beacon GUI not being localizable, again. Resolves https://github.com/pyanodon/pybugreports/issues/1337 --- changelog.txt | 1 + scripts/beacons.lua | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index 6cc358358..bfad6d345 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Version: 3.0.45 Date: ??? Changes: - Updated German locale courtesy of CarstenG + - Fixed AM/FM text in beacon GUI not being localizable, again. Resolves https://github.com/pyanodon/pybugreports/issues/1337 - Fixed Dutch locale translating two fluids to the same name. Resolves https://github.com/pyanodon/pybugreports/issues/1305 --------------------------------------------------------------------------------------------------- Version: 3.0.44 diff --git a/scripts/beacons.lua b/scripts/beacons.lua index 87dc786af..28bde6efe 100644 --- a/scripts/beacons.lua +++ b/scripts/beacons.lua @@ -285,15 +285,14 @@ Beacons.events.on_gui_opened = function(event) } local AM = dial.add {type = "flow", name = "AM_flow"} AM.style.vertical_align = "center" - AM.add {type = "label", name = "AM_label", caption = "AM"} + AM.add {type = "label", name = "AM_label", caption = { "beacon-modifier.am" }} AM.add { type = "slider", name = "AM", minimum_value = 1, maximum_value = 5, value = name:match("%d+"), - discrete_slider = true, - caption = { "beacon-modifier.am" } + discrete_slider = true } AM.add { type = "textfield", @@ -305,15 +304,14 @@ Beacons.events.on_gui_opened = function(event) local FM = dial.add {type = "flow", name = "FM_flow"} FM.style.vertical_align = "center" - FM.add {type = "label", name = "FM_label", caption = "FM"} + FM.add {type = "label", name = "FM_label", caption = { "beacon-modifier.fm" }} FM.add { type = "slider", name = "FM", minimum_value = 1, maximum_value = 5, value = name:match("%d+$"), - discrete_slider = true, - caption = { "beacon-modifier.fm" } + discrete_slider = true } FM.add { type = "textfield",