diff options
-rw-r--r-- | core/gui.lua | 2 | ||||
-rw-r--r-- | core/locale.conf | 220 | ||||
-rw-r--r-- | modules/textadept/find.lua | 20 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 220 |
4 files changed, 240 insertions, 222 deletions
diff --git a/core/gui.lua b/core/gui.lua index 24a68de9..09540f7e 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -77,7 +77,7 @@ end -- LuaDoc is in core/.gui.luadoc. function gui.switch_buffer() - local columns, items = { 'Name', 'File' }, {} + local columns, items = { L('Name'), L('File') }, {} for _, buffer in ipairs(_BUFFERS) do local filename = buffer.filename or buffer._type or L('Untitled') items[#items + 1] = (buffer.dirty and '*' or '')..filename:match('[^/\\]+$') diff --git a/core/locale.conf b/core/locale.conf index 78973277..9cba204a 100644 --- a/core/locale.conf +++ b/core/locale.conf @@ -29,11 +29,14 @@ Close _without saving = Close _without saving Reload? = Reload? Reload modified file? = Reload modified file? has been modified. Reload it? = has been modified. Reload it? +File = File % core/gui.lua Buffer argument expected. = Buffer argument expected. This buffer is not the current one. = This buffer is not the current one. [Message Buffer] = [Message Buffer] +Name = Name +%File = File Untitled = Untitled Switch Buffers = Switch Buffers CRLF = CRLF @@ -60,16 +63,16 @@ Go To = Go To Line Number: = Line Number: % modules/textadept/find.lua -_Find: = _Find: -R_eplace: = R_eplace: -Find _Next = Find _Next -Find _Prev = Find _Prev -_Replace = _Replace -Replace _All = Replace _All -_Match case = _Match case -_Whole word = _Whole word -_Lua pattern = _Lua pattern -_In files = _In files +Find: = _Find: +Replace: = R_eplace: +Find Next = Find _Next +Find Prev = Find _Prev +Replace = _Replace +Replace All = Replace _All +Match case = _Match case +Whole word = _Whole word +Lua pattern = _Lua pattern +In files = _In files Find in Files = Find in Files No results found = No results found [Files Found Buffer] = [Files Found Buffer] @@ -84,124 +87,132 @@ Style = Style % modules/textadept/menu.lua Error loading webpage: = Error loading webpage: -_File = _File +File = _File gtk-new = gtk-new gtk-open = gtk-open -_Reload = _Reload +Open Recent... = Open _Recent... +Reload = Re_load gtk-save = gtk-save gtk-save-as = gtk-save-as gtk-close = gtk-close -Close A_ll = Close A_ll -Loa_d Session... = Loa_d Session... +Close All = Close All +Load Session... = Load Session... Load Session = Load Session -Sa_ve Session... = Sa_ve Session... +Save Session... = Save Session... Save Session = Save Session gtk-quit = gtk-quit -_Edit = _Edit +Edit = _Edit gtk-undo = gtk-undo gtk-redo = gtk-redo gtk-cut = gtk-cut gtk-copy = gtk-copy gtk-paste = gtk-paste +Duplicate = Duplicat_e gtk-delete = gtk-delete gtk-select-all = gtk-select-all -Match _Brace = Match _Brace -Select t_o Brace = Select t_o Brace -Complete _Word = Complete _Word -De_lete Word = De_lete Word -Hi_ghlight Word = Hi_ghlight Word -Complete S_ymbol = Complete S_ymbol -S_how Documentation = S_how Documentation -Tran_spose Characters = Tran_spose Characters -_Join Lines = _Join Lines -Convert _Indentation = Convert _Indentation -S_election = S_election -_Enclose in... = _Enclose in... -_HTML Tags = _HTML Tags -HTML Single _Tag = HTML Single _Tag -_Double Quotes = _Double Quotes -_Single Quotes = _Single Quotes -_Parentheses = _Parentheses -_Brackets = _Brackets -B_races = B_races -_Grow = _Grow -Select i_n... = Select i_n... -_HTML Tag = _HTML Tag -_Double Quote = _Double Quote -_Single Quote = _Single Quote -_Parenthesis = _Parenthesis -_Bracket = _Bracket -B_race = B_race -_Word = _Word -_Line = _Line -Para_graph = Para_graph -_Indented Block = _Indented Block -S_cope = S_cope -_Tools = _Tools -_Find = _Find +Match Brace = _Match Brace +Select to Brace = Select to _Brace +Complete Word = Complete _Word +Delete Word = De_lete Word +Highlight Word = _Highlight Word +Complete Symbol = Complete S_ymbol +Show Documentation = Show D_ocumentation +Block (Un)comment = Bloc_k (Un)comment +Transpose Characters = T_ranspose Characters +Join Lines = _Join Lines +Convert Indentation = Convert _Indentation +Selection = Selectio_n +Enclose in... = _Enclose in... +HTML Tags = _HTML Tags +HTML Single Tag = HTML Single _Tag +Double Quotes = _Double Quotes +Single Quotes = _Single Quotes +Parentheses = _Parentheses +Brackets = _Brackets +Braces = B_races +Grow = _Grow +Select in... = _Select in... +HTML Tag = _HTML Tag +Double Quote = _Double Quote +Single Quote = _Single Quote +Parenthesis = _Parenthesis +Bracket = _Bracket +Brace = B_race +Word = _Word +Line = _Line +Paragraph = Para_graph +Indented Block = _Indented Block +Scope = S_cope +Search = _Search gtk-find = gtk-find -Find _Next = Find _Next -Find _Previous = Find _Previous -gtk-find-and-replace = gtk-find-and-replace -Replace = Replace -Replace _All = Replace _All -Find _Incremental = Find _Incremental -Find in Fi_les = Find in Fi_les +%Find Next = Find _Next +Find Previous = Find _Previous +Replace = _Replace +%Replace All = Replace _All +Find Incremental = Find _Incremental +Find in Files = Find in Fi_les Goto Next File Found = Goto Next File Found Goto Previous File Found = Goto Previous File Found gtk-jump-to = gtk-jump-to -Command _Entry = Command _Entry -_Run = _Run -_Compile = _Compile -Fi_lter Through = Fi_lter Through -_Snippets = _Snippets -_Expand = _Expand -_Insert... = _Insert... -_Previous Placeholder = _Previous Placeholder -_Cancel = _Cancel -_Bookmark = _Bookmark -_Toggle on Current Line = _Toggle on Current Line -_Clear All = _Clear All -_Next = _Next -_Previous = _Previous -_Goto Bookmark... = _Goto Bookmark... -Snap_open = Snap_open -_User Home = _User Home -_Textadept Home = _Textadept Home -_Current Directory = _Current Directory -_Buffer = _Buffer -_Next Buffer = _Next Buffer -_Previous Buffer = _Previous Buffer -Switch _Buffer = Switch _Buffer -Toggle View _EOL = Toggle View _EOL -Toggle _Wrap Mode = Toggle _Wrap Mode -Toggle Show Indentation _Guides = Toggle Show Indentation _Guides -Toggle Use _Tabs = Toggle Use _Tabs -Toggle View White_space = Toggle View White_space -Toggle _Virtual Space = Toggle _Virtual Space -_Indentation = _Indentation -EOL _Mode = EOL _Mode -En_coding = En_coding +Tools = _Tools +Command Entry = Command _Entry +Run = _Run +Compile = _Compile +Filter Through = Fi_lter Through +Snippets = _Snippets +Expand = _Expand +Insert... = _Insert... +Previous Placeholder = _Previous Placeholder +Cancel = _Cancel +Bookmark = _Bookmark +Toggle on Current Line = _Toggle on Current Line +Clear All = _Clear All +Next = _Next +Previous = _Previous +Goto Bookmark... = _Goto Bookmark... +Snapopen = Snap_open +User Home = _User Home +Textadept Home = _Textadept Home +Current Directory = _Current Directory +Buffer = _Buffer +Next Buffer = _Next Buffer +Previous Buffer = _Previous Buffer +Switch Buffer = Switch _Buffer +Toggle View EOL = Toggle View _EOL +Toggle Wrap Mode = Toggle _Wrap Mode +Toggle Show Indentation Guides = Toggle Show Indentation _Guides +Toggle Use Tabs = Toggle Use _Tabs +Toggle View Whitespace = Toggle View White_space +Toggle Virtual Space = Toggle _Virtual Space +Indentation = _Indentation +EOL Mode = EOL _Mode +%CRLF = CRLF +%CR = CR +%LF = LF +Encoding = En_coding UTF-8 = UTF-8 ASCII = ASCII ISO-8859-1 = ISO-8859-1 MacRoman = MacRoman UTF-16 = UTF-16 -_Refresh Syntax Highlighting = _Refresh Syntax Highlighting -_View = _View -_Next View = _Next View -_Previous View = _Previous View -Split _Vertical = Split _Vertical -Split _Horizontal = Split _Horizontal -_Unsplit = _Unsplit -Unsplit _All = Unsplit _All -_Grow = _Grow -_Shrink = _Shrink -_Help = _Help -_Manual = _Manual -_LuaDoc = _LuaDoc +Refresh Syntax Highlighting = _Refresh Syntax Highlighting +View = _View +Next View = _Next View +Previous View = _Previous View +Split Vertical = Split _Vertical +Split Horizontal = Split _Horizontal +Unsplit = _Unsplit +Unsplit All = Unsplit _All +Grow = _Grow +Shrink = _Shrink +Zoom In = Zoom _In +Zoom Out = Zoom _Out +Reset Zoom = _Reset Zoom +Help = _Help +Manual = _Manual +LuaDoc = _LuaDoc gtk-about = gtk-about -Le_xers = Le_xers +Lexers = Le_xers Unknown command: = Unknown command: % modules/textadept/mime_types.lua @@ -217,7 +228,8 @@ The following session files were not found = The following session files were no % modules/textadept/snapopen.lua File Limit Exceeded = File Limit Exceeded files or more were found. Showing the first = files or more were found. Showing the first -File = File +%Open = Open +%File = File % modules/textadept/snippets.lua Select Snippet = Select Snippet diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index a3723683..4d80ae39 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -5,16 +5,16 @@ local events = events local find = gui.find local c = _SCINTILLA.constants -find.find_label_text = L('_Find:') -find.replace_label_text = L('R_eplace:') -find.find_next_button_text = L('Find _Next') -find.find_prev_button_text = L('Find _Prev') -find.replace_button_text = L('_Replace') -find.replace_all_button_text = L('Replace _All') -find.match_case_label_text = L('_Match case') -find.whole_word_label_text = L('_Whole word') -find.lua_pattern_label_text = L('_Lua pattern') -find.in_files_label_text = L('_In files') +find.find_label_text = L('Find:') +find.replace_label_text = L('Replace:') +find.find_next_button_text = L('Find Next') +find.find_prev_button_text = L('Find Prev') +find.replace_button_text = L('Replace') +find.replace_all_button_text = L('Replace All') +find.match_case_label_text = L('Match case') +find.whole_word_label_text = L('Whole word') +find.lua_pattern_label_text = L('Lua pattern') +find.in_files_label_text = L('In files') local MARK_FIND = _SCINTILLA.next_marker_number() local MARK_FIND_COLOR = 0x4D9999 diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 3cab568d..92385fa0 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -58,17 +58,18 @@ end -- @class table -- @name menubar menubar = { - { title = L('_File'), + { title = L('File'), { L('gtk-new'), new_buffer }, { L('gtk-open'), io.open_file }, - { L('_Reload'), { _buffer.reload, _buffer } }, + { L('Open Recent...'), io.open_recent_file }, + { L('Reload'), { _buffer.reload, _buffer } }, { L('gtk-save'), { _buffer.save, _buffer } }, { L('gtk-save-as'), { _buffer.save_as, _buffer } }, SEPARATOR, { L('gtk-close'), { _buffer.close, _buffer } }, - { L('Close A_ll'), io.close_all }, + { L('Close All'), io.close_all }, SEPARATOR, - { L('Loa_d Session...'), function() + { L('Load Session...'), function() local session_file = _SESSIONFILE or '' local utf8_filename = gui.dialog('fileselect', '--title', L('Load Session'), @@ -81,7 +82,7 @@ menubar = { _m.textadept.session.load(utf8_filename:iconv(_CHARSET, 'UTF-8')) end end }, - { L('Sa_ve Session...'), function() + { L('Save Session...'), function() local session_file = _SESSIONFILE or '' local utf8_filename = gui.dialog('filesave', '--title', L('Save Session'), @@ -97,35 +98,37 @@ menubar = { SEPARATOR, { L('gtk-quit'), quit }, }, - { title = L('_Edit'), + { title = L('Edit'), { L('gtk-undo'), { _buffer.undo, _buffer } }, { L('gtk-redo'), { _buffer.redo, _buffer } }, SEPARATOR, { L('gtk-cut'), { _buffer.cut, _buffer } }, { L('gtk-copy'), { _buffer.copy, _buffer } }, { L('gtk-paste'), { _buffer.paste, _buffer } }, + { L('Duplicate'), { _buffer.line_duplicate, _buffer } }, { L('gtk-delete'), { _buffer.clear, _buffer } }, { L('gtk-select-all'), { _buffer.select_all, _buffer } }, SEPARATOR, - { L('Match _Brace'), m_editing.match_brace }, - { L('Select t_o Brace'), { m_editing.match_brace, 'select' } }, - { L('Complete _Word'), { m_editing.autocomplete_word, '%w_' } }, - { L('De_lete Word'), { m_editing.current_word, 'delete' } }, - { L('Hi_ghlight Word'), m_editing.highlight_word }, - { L('Complete S_ymbol'), function() + { L('Match Brace'), m_editing.match_brace }, + { L('Select to Brace'), { m_editing.match_brace, 'select' } }, + { L('Complete Word'), { m_editing.autocomplete_word, '%w_' } }, + { L('Delete Word'), { m_editing.current_word, 'delete' } }, + { L('Highlight Word'), m_editing.highlight_word }, + { L('Complete Symbol'), function() local m = _m[buffer:get_lexer()] if m and m.adeptsense then m.adeptsense.sense:complete() end end }, - { L('S_how Documentation'), function() + { L('Show Documentation'), function() local m = _m[buffer:get_lexer()] if m and m.adeptsense then m.adeptsense.sense:show_apidoc() end end }, - { L('Tran_spose Characters'), m_editing.transpose_chars }, - { L('_Join Lines'), m_editing.join_lines }, - { L('Convert _Indentation'), m_editing.convert_indentation }, - { title = L('S_election'), - { title = L('_Enclose in...'), - { L('_HTML Tags'), function() + { L('Toggle Block Comment'), m_editing.block_comment }, + { L('Transpose Characters'), m_editing.transpose_chars }, + { L('Join Lines'), m_editing.join_lines }, + { L('Convert Indentation'), m_editing.convert_indentation }, + { title = L('Selection'), + { title = L('Enclose in...'), + { L('HTML Tags'), function() m_editing.enclose('<', '>') local buffer = buffer local pos = buffer.current_pos @@ -133,103 +136,102 @@ menubar = { buffer:insert_text(-1, '</'..buffer:text_range(pos, buffer.current_pos)) end }, - { L('HTML Single _Tag'), { m_editing.enclose, '<', ' />' } }, - { L('_Double Quotes'), { m_editing.enclose, '"', '"' } }, - { L('_Single Quotes'), { m_editing.enclose, "'", "'" } }, - { L('_Parentheses'), { m_editing.enclose, '(', ')' } }, - { L('_Brackets'), { m_editing.enclose, '[', ']' } }, - { L('B_races'), { m_editing.enclose, '{', '}' } }, + { L('HTML Single Tag'), { m_editing.enclose, '<', ' />' } }, + { L('Double Quotes'), { m_editing.enclose, '"', '"' } }, + { L('Single Quotes'), { m_editing.enclose, "'", "'" } }, + { L('Parentheses'), { m_editing.enclose, '(', ')' } }, + { L('Brackets'), { m_editing.enclose, '[', ']' } }, + { L('Braces'), { m_editing.enclose, '{', '}' } }, }, - { L('_Grow'), { m_editing.grow_selection, 1 } }, + { L('Grow'), { m_editing.grow_selection, 1 } }, }, - { title = L('Select i_n...'), - { L('_HTML Tag'), { m_editing.select_enclosed, '>', '<' } }, - { L('_Double Quote'), { m_editing.select_enclosed, '"', '"' } }, - { L('_Single Quote'), { m_editing.select_enclosed, "'", "'" } }, - { L('_Parenthesis'), { m_editing.select_enclosed, '(', ')' } }, - { L('_Bracket'), { m_editing.select_enclosed, '[', ']' } }, - { L('B_race'), { m_editing.select_enclosed, '{', '}' } }, - { L('_Word'), { m_editing.current_word, 'select' } }, - { L('_Line'), m_editing.select_line }, - { L('Para_graph'), m_editing.select_paragraph }, - { L('_Indented Block'), m_editing.select_indented_block }, - { L('S_cope'), m_editing.select_scope }, + { title = L('Select in...'), + { L('HTML Tag'), { m_editing.select_enclosed, '>', '<' } }, + { L('Double Quote'), { m_editing.select_enclosed, '"', '"' } }, + { L('Single Quote'), { m_editing.select_enclosed, "'", "'" } }, + { L('Parenthesis'), { m_editing.select_enclosed, '(', ')' } }, + { L('Bracket'), { m_editing.select_enclosed, '[', ']' } }, + { L('Brace'), { m_editing.select_enclosed, '{', '}' } }, + { L('Word'), { m_editing.current_word, 'select' } }, + { L('Line'), m_editing.select_line }, + { L('Paragraph'), m_editing.select_paragraph }, + { L('Indented Block'), m_editing.select_indented_block }, + { L('Scope'), m_editing.select_scope }, }, }, - { title = L('_Tools'), - { title = L('_Find'), - { L('gtk-find'), gui.find.focus }, - { L('Find _Next'), gui.find.call_find_next }, - { L('Find _Previous'), gui.find.call_find_prev }, - { L('gtk-find-and-replace'), gui.find.focus }, - { L('Replace'), gui.find.call_replace }, - { L('Replace _All'), gui.find.call_replace_all }, - { L('Find _Incremental'), gui.find.find_incremental }, - SEPARATOR, - { L('Find in Fi_les'), function() - gui.find.in_files = true - gui.find.focus() - end }, - { L('Goto Next File Found'), { gui.find.goto_file_in_list, true } }, - { L('Goto Previous File Found'), { gui.find.goto_file_in_list, false } }, - SEPARATOR, - { L('gtk-jump-to'), m_editing.goto_line }, - }, - { L('Command _Entry'), gui.command_entry.focus }, + { title = L('Search'), + { L('gtk-find'), gui.find.focus }, + { L('Find Next'), gui.find.call_find_next }, + { L('Find Previous'), gui.find.call_find_prev }, + { L('Replace'), gui.find.call_replace }, + { L('Replace All'), gui.find.call_replace_all }, + { L('Find Incremental'), gui.find.find_incremental }, SEPARATOR, - { L('_Run'), m_textadept.run.run }, - { L('_Compile'), m_textadept.run.compile }, - { L('Fi_lter Through'), _m.textadept.filter_through.filter_through }, + { L('Find in Files'), function() + gui.find.in_files = true + gui.find.focus() + end }, + { L('Goto Next File Found'), { gui.find.goto_file_in_list, true } }, + { L('Goto Previous File Found'), { gui.find.goto_file_in_list, false } }, SEPARATOR, - { title = L('_Snippets'), - { L('_Expand'), m_textadept.snippets._insert }, - { L('_Insert...'), m_textadept.snippets._select }, - { L('_Previous Placeholder'), m_textadept.snippets._previous }, - { L('_Cancel'), m_textadept.snippets._cancel_current }, + { L('gtk-jump-to'), m_editing.goto_line }, + }, + { title = L('Tools'), + { L('Command Entry'), gui.command_entry.focus }, + SEPARATOR, + { L('Run'), m_textadept.run.run }, + { L('Compile'), m_textadept.run.compile }, + { L('Filter Through'), _m.textadept.filter_through.filter_through }, + SEPARATOR, + { title = L('Snippets'), + { L('Expand'), m_textadept.snippets._insert }, + { L('Insert...'), m_textadept.snippets._select }, + { L('Previous Placeholder'), m_textadept.snippets._previous }, + { L('Cancel'), m_textadept.snippets._cancel_current }, }, - { title = L('_Bookmark'), - { L('_Toggle on Current Line'), m_textadept.bookmarks.toggle }, - { L('_Clear All'), m_textadept.bookmarks.clear }, - { L('_Next'), m_textadept.bookmarks.goto_next }, - { L('_Previous'), m_textadept.bookmarks.goto_prev }, - { L('_Goto Bookmark...'), m_textadept.bookmarks.goto }, + { title = L('Bookmark'), + { L('Toggle on Current Line'), m_textadept.bookmarks.toggle }, + { L('Clear All'), m_textadept.bookmarks.clear }, + { L('Next'), m_textadept.bookmarks.goto_next }, + { L('Previous'), m_textadept.bookmarks.goto_prev }, + { L('Goto Bookmark...'), m_textadept.bookmarks.goto }, }, - { title = L('Snap_open'), - { L('_User Home'), { m_textadept.snapopen.open, _USERHOME } }, - { L('_Textadept Home'), { m_textadept.snapopen.open, _HOME } }, - { L('_Current Directory'), function() + { title = L('Snapopen'), + { L('User Home'), { m_textadept.snapopen.open, _USERHOME } }, + { L('Textadept Home'), { m_textadept.snapopen.open, _HOME } }, + { L('Current Directory'), function() if buffer.filename then m_textadept.snapopen.open(buffer.filename:match('^(.+)[/\\]')) end end }, }, }, - { title = L('_Buffer'), - { L('_Next Buffer'), { _view.goto_buffer, _view, 1, false } }, - { L('_Previous Buffer'), { _view.goto_buffer, _view, -1, false } }, - { L('Switch _Buffer'), gui.switch_buffer }, + { title = L('Buffer'), + { L('Next Buffer'), { _view.goto_buffer, _view, 1, false } }, + { L('Previous Buffer'), { _view.goto_buffer, _view, -1, false } }, + { L('Switch Buffer'), gui.switch_buffer }, SEPARATOR, - { L('Toggle View _EOL'), { toggle_setting, 'view_eol' } }, - { L('Toggle _Wrap Mode'), { toggle_setting, 'wrap_mode' } }, - { L('Toggle Show Indentation _Guides'), + { L('Toggle View EOL'), { toggle_setting, 'view_eol' } }, + { L('Toggle Wrap Mode'), { toggle_setting, 'wrap_mode' } }, + { L('Toggle Show Indentation Guides'), { toggle_setting, 'indentation_guides' } }, - { L('Toggle Use _Tabs'), { toggle_setting, 'use_tabs' } }, - { L('Toggle View White_space'), { toggle_setting, 'view_ws' } }, - { L('Toggle _Virtual Space'), + { L('Toggle Use Tabs'), { toggle_setting, 'use_tabs' } }, + { L('Toggle View Whitespace'), { toggle_setting, 'view_ws' } }, + { L('Toggle Virtual Space'), { toggle_setting, 'virtual_space_options', 2} }, SEPARATOR, - { title = L('_Indentation'), - { '_2', { set_indentation, 2 } }, - { '_3', { set_indentation, 3 } }, - { '_4', { set_indentation, 4 } }, - { '_8', { set_indentation, 8 } }, + { title = L('Indentation'), + { '2', { set_indentation, 2 } }, + { '3', { set_indentation, 3 } }, + { '4', { set_indentation, 4 } }, + { '8', { set_indentation, 8 } }, }, - { title = L('EOL _Mode'), + { title = L('EOL Mode'), { L('CRLF'), { set_eol_mode, 0 } }, { L('CR'), { set_eol_mode, 1 } }, { L('LF'), { set_eol_mode, 2 } }, }, - { title = L('En_coding'), + { title = L('Encoding'), { L('UTF-8'), { set_encoding, 'UTF-8' } }, { L('ASCII'), { set_encoding, 'ASCII' } }, { L('ISO-8859-1'), { set_encoding, 'ISO-8859-1' } }, @@ -237,30 +239,34 @@ menubar = { { L('UTF-16'), { set_encoding, 'UTF-16LE' } }, }, SEPARATOR, - { L('_Refresh Syntax Highlighting'), + { L('Refresh Syntax Highlighting'), { _buffer.colourise, _buffer, 0, -1 } }, }, - { title = L('_View'), - { L('_Next View'), { gui.goto_view, 1, false } }, - { L('_Previous View'), { gui.goto_view, -1, false } }, + { title = L('View'), + { L('Next View'), { gui.goto_view, 1, false } }, + { L('Previous View'), { gui.goto_view, -1, false } }, SEPARATOR, - { L('Split _Vertical'), { _view.split, _view } }, - { L('Split _Horizontal'), { _view.split, _view, false } }, - { L('_Unsplit'), function() view:unsplit() end }, - { L('Unsplit _All'), function() while view:unsplit() do end end }, + { L('Split Vertical'), { _view.split, _view } }, + { L('Split Horizontal'), { _view.split, _view, false } }, + { L('Unsplit'), function() view:unsplit() end }, + { L('Unsplit All'), function() while view:unsplit() do end end }, SEPARATOR, - { L('_Grow'), + { L('Grow'), function() if view.size then view.size = view.size + 10 end end }, - { L('_Shrink'), + { L('Shrink'), function() if view.size then view.size = view.size - 10 end end }, + SEPARATOR, + { L('Zoom In'), function() buffer.zoom = buffer.zoom + 1 end }, + { L('Zoom Out'), function() buffer.zoom = buffer.zoom - 1 end }, + { L('Reset Zoom'), function() buffer.zoom = 0 end }, }, -- Lexer menu inserted here - { title = L('_Help'), - { L('_Manual'), + { title = L('Help'), + { L('Manual'), { open_webpage, _HOME..'/doc/manual/1_Introduction.html' } }, - { L('_LuaDoc'), { open_webpage, _HOME..'/doc/index.html' } }, + { L('LuaDoc'), { open_webpage, _HOME..'/doc/index.html' } }, SEPARATOR, { L('gtk-about'), { gui.dialog, 'ok-msgbox', '--title', 'Textadept', '--informative-text', @@ -268,7 +274,7 @@ menubar = { }, }, } -local lexer_menu = { title = L('Le_xers') } +local lexer_menu = { title = L('Lexers') } for _, lexer in ipairs(_m.textadept.mime_types.lexers) do lexer_menu[#lexer_menu + 1] = { lexer:gsub('_', '__'), { set_lexer, lexer} } end |