AddMenuItems

LuaFAR for Editor

AddMenuItems


trg = utils.AddMenuItems (trg, src, msgtable)

Parameters:
  trg :     table (array of menu items), or nil
  src :     table (array of menu items)
  msgtable: table (localization conversion table)

Returns:
  trg:      table

Description:
  -- Adds menu items from src table to trg table.
  -- If trg argument is nil, a new empty table is first created.
  -- The items whose text starts with :: are replaced with items
     with their text converted by msgtable (see AddToMenu and
     Utility for localization).