summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire/autofire_menu.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-11 15:02:55 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-11 15:02:55 +1100
commit751c2806bfc59d9bbe87c15b2a89b6c797d9eeb1 (patch)
tree24dc4e35a444fc8486195b4e15f5af87aed41185 /plugins/autofire/autofire_menu.lua
parentb653a00fbccfc6c9eca5bcae78977ef1307a3a6f (diff)
Re-generated translations for I/O port names.
Trying to collect messages from everything at once hits some limit in xgettext and causes messages to be lost no, so I've split it up by the second-level source directories. For some reason xgettext thinks overloaded Lua functions are blasphemy, so that has to be worked around, too.
Diffstat (limited to 'plugins/autofire/autofire_menu.lua')
-rw-r--r--plugins/autofire/autofire_menu.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/autofire/autofire_menu.lua b/plugins/autofire/autofire_menu.lua
index d71984a4b57..c4a76e39f64 100644
--- a/plugins/autofire/autofire_menu.lua
+++ b/plugins/autofire/autofire_menu.lua
@@ -65,7 +65,7 @@ local function populate_main_menu(buttons)
local rate = 60 / (button.on_frames + button.off_frames)
-- Round to two decimal places
rate = math.floor(rate * 100) / 100
- local text = string.format(_('%s [%d Hz]'), _("input-name", button.button.name), rate)
+ local text = string.format(_('%s [%d Hz]'), _p("input-name", button.button.name), rate)
local subtext = input:seq_name(button.key)
menu[#menu + 1] = {text, subtext, ''}
end
@@ -100,7 +100,7 @@ end
-- Add/edit menus (mostly identical)
local function populate_configure_menu(menu)
- local button_name = current_button.button and _("input-name", current_button.button.name) or _('NOT SET')
+ local button_name = current_button.button and _p("input-name", current_button.button.name) or _('NOT SET')
local key_name = current_button.key and manager.machine.input:seq_name(current_button.key) or _('NOT SET')
menu[#menu + 1] = {_('Input'), button_name, ''}
menu[#menu + 1] = {_('Hotkey'), key_name, ''}
@@ -249,7 +249,7 @@ local function populate_button_menu()
for port_key, port in pairs(manager.machine.ioport.ports) do
for field_key, field in pairs(port.fields) do
if is_supported_input(field) then
- menu[#menu + 1] = { _("input-name", field.name), '', '' }
+ menu[#menu + 1] = { _p("input-name", field.name), '', '' }
inputs[#inputs + 1] = {
port_name = port_key,
field_name = field_key,