aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-02-21 16:09:53 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2020-02-21 16:09:53 -0500
commit5b2511834db13d21724314c20be06aa71afdee2b (patch)
tree8235872dd868dd2bf87592a0b2ac0a11bf945f2c /core/ui.lua
parentb4a67ffb3aedafcd778ad853246f8119f7e5e9e6 (diff)
downloadtextadept-5b2511834db13d21724314c20be06aa71afdee2b.tar.gz
textadept-5b2511834db13d21724314c20be06aa71afdee2b.zip
Removed '_' mnemonics from locale keys.
Kept backward-compatibility for now.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua6
1 files changed, 3 insertions, 3 deletions
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)