diff --git a/changelog.txt b/changelog.txt index 6cc35835..bfad6d34 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 87dc786a..28bde6ef 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",