aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-03 22:50:12 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-03 22:50:12 -0500
commitc15e9a9cf36da02cb883eb14fd3a4ee23548f675 (patch)
treebe8de81c387208fa5011399d31df5c772e626f50 /core/ext/pm.lua
parentfd48dede42c0678e4a5410bd635a02d255fe89d6 (diff)
downloadtextadept-c15e9a9cf36da02cb883eb14fd3a4ee23548f675.tar.gz
textadept-c15e9a9cf36da02cb883eb14fd3a4ee23548f675.zip
Added localization support.
All Textadept messages are in core/locale.lua which provides the new 'textadept.locale' module.
Diffstat (limited to 'core/ext/pm.lua')
-rw-r--r--core/ext/pm.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/ext/pm.lua b/core/ext/pm.lua
index 05b0e16a..ed997c5d 100644
--- a/core/ext/pm.lua
+++ b/core/ext/pm.lua
@@ -119,12 +119,13 @@ end
-- Performs an action based on the selected menu item.
-- This function is called internally and shouldn't be called by a script.
-- @param menu_item The label text of the menu item selected.
+-- @param menu_id The numeric ID of the menu item.
-- @param selected_item Identical to 'full_path' in pm.get_contents_for.
-- @see pm.get_contents_for
-function pm.perform_menu_action(menu_item, selected_item)
+function pm.perform_menu_action(menu_item, menu_id, selected_item)
for _, browser in pairs(pm.browsers) do
if browser.matches( selected_item[1] ) then
- return browser.perform_menu_action(menu_item, selected_item)
+ return browser.perform_menu_action(menu_item, menu_id, selected_item)
end
end
end