aboutsummaryrefslogtreecommitdiff
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
parente0b1aaba74de1bd3a87af5592118570d609b8578 (diff)
downloadtextadept-fe6d7dd00f8a0150c153388287df56909aa0e55c.tar.gz
textadept-fe6d7dd00f8a0150c153388287df56909aa0e55c.zip
keys.conf and keys.osx.conf can be in English or localized.
-rw-r--r--modules/textadept/keys.conf2
-rw-r--r--modules/textadept/keys.osx.conf2
-rw-r--r--modules/textadept/menu.lua3
3 files changed, 4 insertions, 3 deletions
diff --git a/modules/textadept/keys.conf b/modules/textadept/keys.conf
index a18de479..4b7dd023 100644
--- a/modules/textadept/keys.conf
+++ b/modules/textadept/keys.conf
@@ -18,7 +18,7 @@
% Multiple keys separated by spaces can be assigned to the same command.
% Keychains are not supported. Please define chains manually.
-% If you use a different locale, please use the localized versions of commands.
+% The commands below can either be in English or localized for your locale.
% File
gtk-new = cn
diff --git a/modules/textadept/keys.osx.conf b/modules/textadept/keys.osx.conf
index 786c8d65..42492597 100644
--- a/modules/textadept/keys.osx.conf
+++ b/modules/textadept/keys.osx.conf
@@ -18,7 +18,7 @@
% Multiple keys separated by spaces can be assigned to the same command.
% Keychains are not supported. Please define chains manually.
-% If you use a different locale, please use the localized versions of commands.
+% The commands below can either be in English or localized for your locale.
% File
gtk-new = cn
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
---