(ViewManager._init_lists): Translate menu labels.
svn: r6486
This commit is contained in:
parent
7fbc99f60f
commit
20606d2797
@ -2,6 +2,7 @@
|
|||||||
* src/ScratchPad.py (ScratchPadWindow.__init__): Allow only one
|
* src/ScratchPad.py (ScratchPadWindow.__init__): Allow only one
|
||||||
instance; translate label; remove unneeded event handlers.
|
instance; translate label; remove unneeded event handlers.
|
||||||
* src/ViewManager.py (ViewManager.scratchpad): Catch exception.
|
* src/ViewManager.py (ViewManager.scratchpad): Catch exception.
|
||||||
|
(ViewManager._init_lists): Translate menu labels.
|
||||||
|
|
||||||
2006-04-27 Alex Roitman <shura@gramps-project.org>
|
2006-04-27 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/ViewManager.py (ViewManager.build_plugin_menu): Use unique
|
* src/ViewManager.py (ViewManager.build_plugin_menu): Use unique
|
||||||
|
@ -287,56 +287,57 @@ class ViewManager:
|
|||||||
|
|
||||||
def _init_lists(self):
|
def _init_lists(self):
|
||||||
self._file_action_list = [
|
self._file_action_list = [
|
||||||
('FileMenu', None, '_File'),
|
('FileMenu', None, _('_File')),
|
||||||
('New', gtk.STOCK_NEW, '_New', "<control>n", None,
|
('New', gtk.STOCK_NEW, _('_New'), "<control>n", None,
|
||||||
self.new_activate),
|
self.new_activate),
|
||||||
('Open', gtk.STOCK_OPEN, '_Open', "<control>o", None,
|
('Open', gtk.STOCK_OPEN, _('_Open'), "<control>o", None,
|
||||||
self.open_activate),
|
self.open_activate),
|
||||||
('OpenRecent', None, 'Open _Recent'),
|
('OpenRecent', None, _('Open _Recent')),
|
||||||
('Quit', gtk.STOCK_QUIT, '_Quit', "<control>q", None, self.quit),
|
('Quit', gtk.STOCK_QUIT, _('_Quit'), "<control>q",None,self.quit),
|
||||||
('ViewMenu', None, '_View'),
|
('ViewMenu', None, _('_View')),
|
||||||
('EditMenu', None, '_Edit'),
|
('EditMenu', None, _('_Edit')),
|
||||||
('Preferences', gtk.STOCK_PREFERENCES, '_Preferences', None, None,
|
('Preferences', gtk.STOCK_PREFERENCES,_('_Preferences'),None,None,
|
||||||
self.preferences_activate),
|
self.preferences_activate),
|
||||||
('HelpMenu', None, '_Help'),
|
('HelpMenu', None, _('_Help')),
|
||||||
('HomePage', None, _('GRAMPS _home page'), None, None,
|
('HomePage', None, _('GRAMPS _home page'), None, None,
|
||||||
self.home_page_activate),
|
self.home_page_activate),
|
||||||
('MailingLists', None, _('GRAMPS _mailing lists'), None, None,
|
('MailingLists', None, _('GRAMPS _mailing lists'), None, None,
|
||||||
self.mailing_lists_activate),
|
self.mailing_lists_activate),
|
||||||
('ReportBug', None, _('_Report a bug'), None, None,
|
('ReportBug', None, _('_Report a bug'), None, None,
|
||||||
self.report_bug_activate),
|
self.report_bug_activate),
|
||||||
('About', gtk.STOCK_ABOUT, '_About', None, None, self.about),
|
('About', gtk.STOCK_ABOUT, _('_About'), None, None, self.about),
|
||||||
('PluginStatus', None, '_Plugin status', None, None,
|
('PluginStatus', None,_('_Plugin status'), None, None,
|
||||||
self.plugin_status),
|
self.plugin_status),
|
||||||
('FAQ', None, '_FAQ', None, None, self.faq_activate),
|
('FAQ', None, _('_FAQ'), None, None, self.faq_activate),
|
||||||
('UserManual', gtk.STOCK_HELP, '_User Manual', 'F1', None,
|
('UserManual', gtk.STOCK_HELP, _('_User Manual'), 'F1', None,
|
||||||
self.manual_activate),
|
self.manual_activate),
|
||||||
('TipOfDay', None, 'Tip of the day', None, None,
|
('TipOfDay', None, _('Tip of the day'), None, None,
|
||||||
self.tip_of_day_activate),
|
self.tip_of_day_activate),
|
||||||
]
|
]
|
||||||
|
|
||||||
self._action_action_list = [
|
self._action_action_list = [
|
||||||
('SaveAs', gtk.STOCK_SAVE_AS, '_Save As'),
|
('SaveAs', gtk.STOCK_SAVE_AS, _('_Save As')),
|
||||||
('Export', gtk.STOCK_SAVE_AS, '_Export', "<control>e", None,
|
('Export', gtk.STOCK_SAVE_AS, _('_Export')), "<control>e", None,
|
||||||
self.export_data),
|
self.export_data),
|
||||||
('Abandon', gtk.STOCK_REVERT_TO_SAVED, '_Abandon changes and quit'),
|
('Abandon', gtk.STOCK_REVERT_TO_SAVED,
|
||||||
('CmpMerge', None, '_Compare and merge'),
|
_('_Abandon changes and quit')),
|
||||||
('FastMerge', None, '_Fast merge'),
|
('CmpMerge', None, _('_Compare and merge')),
|
||||||
('ScratchPad', gtk.STOCK_PASTE, '_ScratchPad', None, None,
|
('FastMerge', None, _('_Fast merge')),
|
||||||
|
('ScratchPad', gtk.STOCK_PASTE, _('_ScratchPad'), None, None,
|
||||||
self.scratchpad),
|
self.scratchpad),
|
||||||
('Import', gtk.STOCK_CONVERT, '_Import', "<control>i", None,
|
('Import', gtk.STOCK_CONVERT, _('_Import'), "<control>i", None,
|
||||||
self.import_data),
|
self.import_data),
|
||||||
('Reports', gtk.STOCK_DND_MULTIPLE, '_Reports', None, None,
|
('Reports', gtk.STOCK_DND_MULTIPLE, _('_Reports'), None, None,
|
||||||
self.reports_clicked),
|
self.reports_clicked),
|
||||||
('Tools', gtk.STOCK_EXECUTE, '_Tools', None, None,
|
('Tools', gtk.STOCK_EXECUTE, _('_Tools'), None, None,
|
||||||
self.tools_clicked),
|
self.tools_clicked),
|
||||||
('EditMenu', None, '_Edit'),
|
('EditMenu', None, _('_Edit')),
|
||||||
('ColumnEdit', gtk.STOCK_PROPERTIES, '_Column Editor'),
|
('ColumnEdit', gtk.STOCK_PROPERTIES, _('_Column Editor')),
|
||||||
('GoMenu', None, '_Go'),
|
('GoMenu', None, _('_Go')),
|
||||||
('BookMenu', None, '_Bookmarks'),
|
('BookMenu', None, _('_Bookmarks')),
|
||||||
('ReportsMenu', None, '_Reports'),
|
('ReportsMenu', None, _('_Reports')),
|
||||||
('ToolsMenu', None, '_Tools'),
|
('ToolsMenu', None, _('_Tools')),
|
||||||
('WindowsMenu', None, '_Windows'),
|
('WindowsMenu', None, _('_Windows')),
|
||||||
('F2', None, None, "F2", None, self.keypress),
|
('F2', None, None, "F2", None, self.keypress),
|
||||||
('F3', None, None, "F3", None, self.keypress),
|
('F3', None, None, "F3", None, self.keypress),
|
||||||
('F4', None, None, "F4", None, self.keypress),
|
('F4', None, None, "F4", None, self.keypress),
|
||||||
@ -350,18 +351,18 @@ class ViewManager:
|
|||||||
]
|
]
|
||||||
|
|
||||||
self._file_toggle_action_list = [
|
self._file_toggle_action_list = [
|
||||||
('Sidebar', None, '_Sidebar', None, None, self.sidebar_toggle,
|
('Sidebar', None, _('_Sidebar'), None, None, self.sidebar_toggle,
|
||||||
self.show_sidebar ),
|
self.show_sidebar ),
|
||||||
('Toolbar', None, '_Toolbar', None, None, self.toolbar_toggle,
|
('Toolbar', None, _('_Toolbar'), None, None, self.toolbar_toggle,
|
||||||
self.show_toolbar ),
|
self.show_toolbar ),
|
||||||
]
|
]
|
||||||
|
|
||||||
self._undo_action_list = [
|
self._undo_action_list = [
|
||||||
('Undo', gtk.STOCK_UNDO, '_Undo', '<control>z', None, self.undo),
|
('Undo', gtk.STOCK_UNDO, _('_Undo'),'<control>z', None, self.undo),
|
||||||
]
|
]
|
||||||
|
|
||||||
self._redo_action_list = [
|
self._redo_action_list = [
|
||||||
('Redo', gtk.STOCK_REDO, '_Redo', '<shift><control>z', None,
|
('Redo', gtk.STOCK_REDO,_('_Redo'), '<shift><control>z', None,
|
||||||
self.redo),
|
self.redo),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user