aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-07-28 21:12:22 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-07-28 21:12:22 -0400
commitfe6d7dd00f8a0150c153388287df56909aa0e55c (patch)
tree3ad1c78f07d519d3513884139b32ceefb4c8744d /modules/textadept/menu.lua
parente0b1aaba74de1bd3a87af5592118570d609b8578 (diff)
downloadtextadept-fe6d7dd00f8a0150c153388287df56909aa0e55c.tar.gz
textadept-fe6d7dd00f8a0150c153388287df56909aa0e55c.zip
keys.conf and keys.osx.conf can be in English or localized.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 1c202efa..d9841946 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -77,7 +77,8 @@ end
-- @param label The label that will be localized.
-- @param f The function or table.
local function menuitem(label, f)
- return { L(label), f, K[L(label):gsub('_([^_])', '%1')] }
+ return { L(label), f,
+ K[L(label):gsub('_([^_])', '%1')] or K[label:gsub('_([^_])', '%1')] }
end
---