From c15e9a9cf36da02cb883eb14fd3a4ee23548f675 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 3 Jan 2009 22:50:12 -0500 Subject: Added localization support. All Textadept messages are in core/locale.lua which provides the new 'textadept.locale' module. --- core/.textadept.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'core/.textadept.lua') 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 -- cgit v1.2.3