aboutsummaryrefslogtreecommitdiff
path: root/core/.textadept.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/.textadept.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/.textadept.lua')
-rw-r--r--core/.textadept.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/.textadept.lua b/core/.textadept.lua
index 41846c7a..2a73c374 100644
--- a/core/.textadept.lua
+++ b/core/.textadept.lua
@@ -59,13 +59,14 @@ function get_split_table() end
---
-- Creates a GTK menu, returning the userdata.
--- @param menu_table A table defining the menu. It is an ordered list of strings
--- that are handled as follows:
+-- @param menu_table A table defining the menu. It is an ordered list of tables
+-- with a string menu item and integer menu ID.
+-- The string menu item is handled as follows:
-- 'gtk-*' - a stock menu item is created based on the GTK stock-id.
-- 'separator' - a menu separator item is created.
-- Otherwise a regular menu item with a mnemonic is created.
--- An additional 'title' key can be used to define the menu's title text (if it
--- is a submenu).
+-- Submenus are just nested menu-structure tables. Their title text is defined
+-- with a 'title' key.
-- @see popupmenu
function gtkmenu(menu_table) end