aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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
---