From 5b2511834db13d21724314c20be06aa71afdee2b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 21 Feb 2020 16:09:53 -0500 Subject: Removed '_' mnemonics from locale keys. Kept backward-compatibility for now. --- core/ui.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/ui.lua') diff --git a/core/ui.lua b/core/ui.lua index 1f067657..c7d8dd40 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -96,7 +96,7 @@ ui.dialogs = setmetatable({}, {__index = function(_, k) -- @return Lua objects depending on the dialog kind return function(options) -- Set up dialog defaults and convert any 1-based indices to 0-based ones. - if not options.button1 then options.button1 = _L['_OK'] end + if not options.button1 then options.button1 = _L['OK'] end local select = options.select if type(select) == 'number' then options.select = select - 1 @@ -430,8 +430,8 @@ events_connect(events.QUIT, function() title = _L['Quit without saving?'], text = _L['The following buffers are unsaved:'], informative_text = table.concat(utf8_list, '\n'), - icon = 'gtk-dialog-question', button1 = _L['_Cancel'], - button2 = _L['Quit _without saving'] + icon = 'gtk-dialog-question', button1 = _L['Cancel'], + button2 = _L['Quit without saving'] } ~= 2 if cancel then return true end -- prevent quit end) -- cgit v1.2.3