Commits

Hanfei Sun committed 9c1b9d5

Modify some string in Mako templetes for complete i18n support.

  • Participants
  • Parent commits ab90893

Comments (0)

Files changed (5)

locale/zh/LC_MESSAGES/ginga.mo

Binary file modified.

locale/zh/LC_MESSAGES/ginga.po

 msgid "Are you sure you want to delete the current history?"
 msgstr "确认要删除当前的历史记录吗?"
 
-
 #: templates/root/history.mako:38
 msgid "collapse all"
 msgstr "全部收缩"
 
-
 #: templates/root/index.mako:5
 msgid "Tools"
 msgstr "工具"
 msgid "Lift-Over"
 msgstr "版本转换"
 
-
 msgid "Text Manipulation"
 msgstr "文本操作"
 
 msgstr "历史项目属性"
 
 #: templates/dataset/edit_attributes.mako:19
-msgid "Edit Attributes"
+msgid "Edit attributes"
 msgstr "编辑属性"
 
 #: templates/dataset/edit_attributes.mako:64
 "Required metadata values are missing. Some of these values may not be "
 "editable by the user. Selecting \"Auto-detect\" will attempt to fix these "
 "values."
-msgstr "所需元数据值缺失。其中一些值可能无法被用户编辑。选择“自动检测”修正这些值。"
+msgstr "缺少所需的metadata的值。用户可能无法对这些值进行编辑。选择“自动检测”来尝试修正这些值。"
 
 #: templates/dataset/edit_attributes.mako:78
 msgid "Convert to new format"
-msgstr "转换新格式"
+msgstr "转换新格式"
 
 #: templates/dataset/edit_attributes.mako:84
 msgid "Convert to"
-msgstr "转换"
+msgstr "转换"
 
 #: templates/dataset/edit_attributes.mako:95
 msgid ""
 "This will create a new dataset with the contents of this dataset converted "
 "to a new format."
-msgstr "这将创建一个新的数据集,内容是转换后的数据集"
+msgstr "这将产生一个转换格式后的数据集"
 
 #: templates/dataset/edit_attributes.mako:111
 msgid "Change data type"
 "This will change the datatype of the existing dataset but <i>not</i> modify "
 "its contents. Use this if Galaxy has incorrectly guessed the type of your "
 "dataset."
-msgstr "这将改变已有数据集的数据类型,但<i>不</i>改变其内容。当Galaxy不能正确判断你的数据类型时,设置该参数。"
+msgstr "这将改变已有数据集的数据类型,但<i>不</i>改变其内容。当Galaxy不能正确判断你的数据类型时,设置该参数。"
 
 #: templates/dataset/edit_attributes.mako:137
 msgid "Copy History Item"
 
 #: templates/history/list.mako:3
 msgid "Saved Histories"
-msgstr "保存的历史记录"
+msgstr "保存的历史"
 
-#: templates/history/list.mako:19
-msgid "Stored Histories"
-msgstr "存储的历史记录"
 
 #: templates/history/list.mako:21 templates/root/history.mako:239
 msgid "hide deleted"
-msgstr "隐藏已删除"
+msgstr "隐藏已删除的数据"
 
 #: templates/history/list.mako:23
 msgid "show deleted"
-msgstr "显示已删除"
+msgstr "显示已删除的数据"
 
 #: templates/history/list.mako:27
 msgid "Name"
 
 #: templates/history/list.mako:27
 msgid "Last modified"
-msgstr "最后修改"
+msgstr "最后修改时间"
 
 #: templates/history/list.mako:27
 msgid "Actions"
 
 #: templates/history/list.mako:49
 msgid "undelete"
-msgstr "取消删除"
+msgstr "还原"
 
 #: templates/history/list.mako:55
 msgid "Action"
 
 #: templates/history/list.mako:58
 msgid "Undelete"
-msgstr "取消删除"
+msgstr "还原"
 
 #: templates/history/list.mako:65
 msgid "You have no stored histories"
 
 #: templates/history/options.mako:9
 msgid "You must be "
-msgstr "你必须"
+msgstr "你必须成为"
 
 #: templates/history/options.mako:9
 msgid "logged in"
 
 #: templates/history/options.mako:18
 msgid " a new empty history"
-msgstr " 一个新的空历史记录"
+msgstr " 一个新的空历史记录"
 
 #: templates/history/options.mako:20
 msgid "Construct workflow"
 
 
 msgid "Show Deleted Datasets"
-msgstr "显示已删除数据"
+msgstr "显示已删除数据"
 
 msgid "Show Hidden Datasets"
-msgstr "显示隐藏数据"
+msgstr "显示隐藏数据"
 
 msgid "Show Structure"
 msgstr "显示结构"
 
 
 msgid "Register"
-msgstr "注册"
+msgstr "注册"
+
+msgid "Support"
+msgstr "技术支持"
+
+msgid "Galaxy Wiki"
+msgstr "Galaxy百科"
+
+msgid "Video tutorials (screencasts)"
+msgstr "视频教程(动画演示)"
+
+msgid "How to Cite Galaxy"
+msgstr "如何引用Galaxy"

templates/root/history_common.mako

             </div>
             <div style="float:left;" class="menubutton split popup" id="dataset-${dataset_id}-popup">
         %endif
-        <a href="${h.url_for( controller='dataset', action='display', dataset_id=dataset_id, to_ext=data.ext )}" title="Download" class="icon-button disk tooltip"></a>
+        <a href="${h.url_for( controller='dataset', action='display', dataset_id=dataset_id, to_ext=data.ext )}" title='${_("Download")}' class="icon-button disk tooltip"></a>
         %if meta_files:
             </div>
         %endif
                 ## TODO: Make these CSS, just adding a "disabled" class to the normal
                 ## links should be enough. However the number of datasets being uploaded
                 ## at a time is usually small so the impact of these images is also small.
-                <span title='Display Data' class='icon-button display_disabled tooltip'></span>
+                <span title='${_("Display Data")}' class='icon-button display_disabled tooltip'></span>
                 %if for_editing:
                     <span title='Edit Attributes' class='icon-button edit_disabled tooltip'></span>
                 %endif
                 %if data.purged:
                     <span class="icon-button display_disabled tooltip" title="Cannot display datasets removed from disk"></span>
                 %else:
-                    <a class="icon-button display tooltip" title="Display data in browser" href="${display_url}"
+                    <a class="icon-button display tooltip" title='${_("Display data in browser")}' href="${display_url}"
                     %if for_editing:
                         target="galaxy_main"
                     %endif
                     %elif data.purged:
                         <span title="Cannot edit attributes of datasets removed from disk" class="icon-button edit_disabled tooltip"></span>
                     %else:
-                        <a class="icon-button edit tooltip" title="Edit attributes" href="${h.url_for( controller='dataset', action='edit', dataset_id=dataset_id )}" target="galaxy_main"></a>
+                        <a class="icon-button edit tooltip" title='${_("Edit attributes")}' href="${h.url_for( controller='dataset', action='edit', dataset_id=dataset_id )}" target="galaxy_main"></a>
                     %endif
                 %endif
             %endif
             %if for_editing:
                 %if can_edit:
-                    <a class="icon-button delete tooltip" title="Delete" href="${h.url_for( controller='dataset', action='delete', dataset_id=dataset_id, show_deleted_on_refresh=show_deleted_on_refresh )}" id="historyItemDeleter-${dataset_id}"></a>
+                    <a class="icon-button delete tooltip" title='${_("Delete")}' href="${h.url_for( controller='dataset', action='delete', dataset_id=dataset_id, show_deleted_on_refresh=show_deleted_on_refresh )}" id="historyItemDeleter-${dataset_id}"></a>
                 %else:
                     <span title="Dataset is already deleted" class="icon-button delete_disabled tooltip"></span>
                 %endif
         %elif data_state == "queued":
             <div>${_('Job is waiting to run')}</div>
             <div>
-                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title="View Details" class="icon-button information tooltip"></a>
+                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title='${_("View Details")}' class="icon-button information tooltip"></a>
                 %if for_editing:
-                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title="Run this job again" class="icon-button arrow-circle tooltip"></a>
+                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title='${_("Run this job again")}' class="icon-button arrow-circle tooltip"></a>
                 %endif
             </div>
         %elif data_state == "running":
             <div>${_('Job is currently running')}</div>
             <div>
-                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title="View Details" class="icon-button information tooltip"></a>
+                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title='${_("View Details")}' class="icon-button information tooltip"></a>
                 %if for_editing:
-                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title="Run this job again" class="icon-button arrow-circle tooltip"></a>
+                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title='${_("Run this job again")}' class="icon-button arrow-circle tooltip"></a>
                 %endif
             </div>
         %elif data_state == "error":
                 %if data.has_data():
                     ${render_download_links( data, dataset_id )}
                 %endif
-                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title="View Details" class="icon-button information tooltip"></a>
+                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title='${_("View Details")}' class="icon-button information tooltip"></a>
                 %if for_editing:
-                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title="Run this job again" class="icon-button arrow-circle tooltip"></a>
+                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title='${_("Run this job again")}' class="icon-button arrow-circle tooltip"></a>
                 %endif
             </div>
         %elif data_state == "discarded":
         %elif data_state == "empty":
             <div>${_('No data: ')}<i>${data.display_info()}</i></div>
             <div>
-                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title="View Details" class="icon-button information tooltip"></a>
+                <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title='${_("View Details")}' class="icon-button information tooltip"></a>
                 %if for_editing:
-                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title="Run this job again" class="icon-button arrow-circle tooltip"></a>
+                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title='${_("Run this job again")}' class="icon-button arrow-circle tooltip"></a>
                 %endif
             </div>
         %elif data_state in [ "ok", "failed_metadata" ]:
             %endif
             <div>
                 ${data.blurb}<br />
-                format: <span class="${data.ext}">${data.ext}</span>, 
-                database:
+                ${_("format: ")} <span class="${data.ext}">${data.ext}</span>, 
+                ${_("database: ")}
                 %if data.dbkey == '?' and can_edit:
                     <a href="${h.url_for( controller='dataset', action='edit', dataset_id=dataset_id )}" target="galaxy_main">${_(data.dbkey)}</a>
                 %else:
                 %if data.has_data():
                     ${render_download_links( data, dataset_id )}
                     
-                    <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title="View Details" class="icon-button information tooltip"></a>
+                    <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title='${_("View Details")}' class="icon-button information tooltip"></a>
                     
                     %if for_editing:
-                        <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title="Run this job again" class="icon-button arrow-circle tooltip"></a>
+                        <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title='${_("Run this job again")}' class="icon-button arrow-circle tooltip"></a>
                         %if app.config.get_bool( 'enable_tracks', False ) and data.ext in app.datatypes_registry.get_available_tracks():
                             <%
                             if data.dbkey != '?':
                         <br />
                     %endfor
                 %elif for_editing:
-                    <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title="View Details" class="icon-button information tooltip"></a>
-                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title="Run this job again" class="icon-button arrow-circle tooltip"></a>
+                    <a href="${h.url_for( controller='dataset', action='show_params', dataset_id=dataset_id )}" target="galaxy_main" title='${_("View Details")}' class="icon-button information tooltip"></a>
+                    <a href="${h.url_for( controller='tool_runner', action='rerun', id=data.id )}" target="galaxy_main" title='${_("Run this job again")}' class="icon-button arrow-circle tooltip"></a>
                 %endif
     
                 </div>

templates/root/index.mako

         // Init history options.
         $("#history-options-button").css( "position", "relative" );
         make_popupmenu( $("#history-options-button"), {
-            "History Lists": null,
-            "Saved Histories": function() {
+            "${_("History Lists")}": null,
+            "${_("Saved Histories")}": function() {
                 galaxy_main.location = "${h.url_for( controller='history', action='list')}";
             },
-            "Histories Shared with Me": function() {
+            "${_("Histories Shared with Me")}": function() {
                 galaxy_main.location = "${h.url_for( controller='history', action='list_shared')}";
             },
-            "Current History": null,
-            "Create New": function() {
+            "${_("Current History")}": null,
+            "${_("Create New")}": function() {
                 galaxy_history.location = "${h.url_for( controller='root', action='history_new' )}";
             },
-            "Clone": function() {
+            "${_("Clone")}": function() {
                 galaxy_main.location = "${h.url_for( controller='history', action='clone')}";
             },
-            "Copy Datasets": function() {
+            "${_("Copy Datasets")}": function() {
                 galaxy_main.location = "${h.url_for( controller='dataset', action='copy_datasets' )}";
             },
-            "Share or Publish": function() {
+            "${_("Share or Publish")}": function() {
                 galaxy_main.location = "${h.url_for( controller='history', action='sharing' )}";
             },
-            "Extract Workflow": function() {
+            "${_("Extract Workflow")}": function() {
                 galaxy_main.location = "${h.url_for( controller='workflow', action='build_from_current_history' )}";
             },
-            "Dataset Security": function() {
+            "${_("Dataset Security")}": function() {
                 galaxy_main.location = "${h.url_for( controller='root', action='history_set_default_permissions' )}";
             },
-            "Show Deleted Datasets": function() {
+            "${_("Show Deleted Datasets")}": function() {
                 galaxy_history.location = "${h.url_for( controller='root', action='history', show_deleted=True)}";
             },
-            "Show Hidden Datasets": function() {
+            "${_("Show Hidden Datasets")}": function() {
                 galaxy_history.location = "${h.url_for( controller='root', action='history', show_hidden=True)}";
             },
-            "Purge Deleted Datasets": function() {
+            "${_("Purge Deleted Datasets")}": function() {
                 if ( confirm( "Really delete all deleted datasets permanently? This cannot be undone." ) ) {
                     galaxy_main.location = "${h.url_for( controller='history', action='purge_deleted_datasets' )}";
                 }
             },
-            "Show Structure": function() {
+            "${_("Show Structure")}": function() {
                 galaxy_main.location = "${h.url_for( controller='history', action='display_structured' )}";
             },
-            "Export to File": function() {
+            "${_("Export to File")}": function() {
                 galaxy_main.location = "${h.url_for( controller='history', action='export_archive' )}";
             },
-            "Delete": function() {
+            "${_("Delete")}": function() {
                 if ( confirm( "Really delete the current history?" ) ) {
                     galaxy_main.location = "${h.url_for( controller='history', action='delete_current' )}";
                 }
             },
-            "Delete Permanently": function() {
+            "${_("Delete Permanently")}": function() {
                 if ( confirm( "Really delete the current history permanently? This cannot be undone." ) ) {
                     galaxy_main.location = "${h.url_for( controller='history', action='delete_current', purge=True )}";
                 }
             },
-            "Other Actions": null,
-            "Import from File": function() {
+            "${_("Other Actions")}": null,
+            "${_("Import from File")}": function() {
                 galaxy_main.location = "${h.url_for( controller='history', action='import_archive' )}";
             }
         });
         
         var menu_options = {}; // Holds dictionary of { label: toggle_fn }
         
-        SHOW_TOOL = "Show Tool Search";
-        HIDE_TOOL = "Hide Tool Search";
-        SHOW_RECENT = "Show Recently Used";
-        HIDE_RECENT = "Hide Recently Used";
+        SHOW_TOOL = "${_("Show Tool Search")}";
+        HIDE_TOOL = "${_("Hide Tool Search")}";
+        SHOW_RECENT = "${_("Show Recently Used")}";
+        HIDE_RECENT = "${_("Hide Recently Used")}";
         
         var toggle_tool_search_fn = function() {
             // Show/hide menu and update vars, user preferences.

templates/webapps/galaxy/base_panels.mako

     
 
     ## Analyze data tab.
-    ${tab( "analysis", "Analyze Data", h.url_for( controller='/root', action='index' ) )}
+    ${tab( "analysis", _("Analyze Data"), h.url_for( controller='/root', action='index' ) )}
     
     ## Workflow tab.
-    ${tab( "workflow", "Workflow", h.url_for( controller='/workflow', action='index' ) )}
+    ${tab( "workflow", _("Workflow"), h.url_for( controller='/workflow', action='index' ) )}
     
     ## 'Shared Items' or Libraries tab.
     <%
         menu_options = [ 
-                        [ 'Data Libraries', h.url_for( controller='/library', action='index') ],
+                        [ _('Data Libraries'), h.url_for( controller='/library', action='index') ],
                         None,
-                        [ 'Published Histories', h.url_for( controller='/history', action='list_published' ) ],
-                        [ 'Published Workflows', h.url_for( controller='/workflow', action='list_published' ) ]
+                        [ _('Published Histories'), h.url_for( controller='/history', action='list_published' ) ],
+                        [ _('Published Workflows'), h.url_for( controller='/workflow', action='list_published' ) ]
                        ]
         if app.config.get_bool( 'enable_tracks', False ):
-            menu_options.append( [ 'Published Visualizations', h.url_for( controller='/visualization', action='list_published' ) ] )        
+            menu_options.append( [ _('Published Visualizations'), h.url_for( controller='/visualization', action='list_published' ) ] )        
         if app.config.get_bool( 'enable_pages', False ):
-            menu_options.append( [ 'Published Pages', h.url_for( controller='/page', action='list_published' ) ] )
-        tab( "shared", "Shared Data", h.url_for( controller='/library', action='index'), menu_options=menu_options )
+            menu_options.append( [ _('Published Pages'), h.url_for( controller='/page', action='list_published' ) ] )
+        tab( "shared", _("Shared Data"), h.url_for( controller='/library', action='index'), menu_options=menu_options )
     %>
     
     ## Lab menu.
     <%
         menu_options = [
-                         [ 'Sequencing Requests', h.url_for( controller='/requests', action='index' ) ],
-                         [ 'Find Samples', h.url_for( controller='/requests', action='find_samples_index' ) ],
-                         [ 'Help', app.config.get( "lims_doc_url", "http://main.g2.bx.psu.edu/u/rkchak/p/sts" ), "galaxy_main" ]
+                         [ _('Sequencing Requests'), h.url_for( controller='/requests', action='index' ) ],
+                         [ _('Find Samples'), h.url_for( controller='/requests', action='find_samples_index' ) ],
+                         [ _('Help'), app.config.get( "lims_doc_url", "http://main.g2.bx.psu.edu/u/rkchak/p/sts" ), "galaxy_main" ]
                        ]
         tab( "lab", "Lab", None, menu_options=menu_options, visible=( trans.user and ( trans.user.requests or trans.app.security_agent.get_accessible_request_types( trans, trans.user ) ) ) )
     %>
     %if app.config.get_bool( 'enable_tracks', False ):
         <%
             menu_options = [
-                             ['New Track Browser', h.url_for( controller='/tracks', action='index' ) ],
-                             ['Saved Visualizations', h.url_for( controller='/visualization', action='list' ) ]
+                             [_('New Track Browser'), h.url_for( controller='/tracks', action='index' ) ],
+                             [_('Saved Visualizations'), h.url_for( controller='/visualization', action='list' ) ]
                            ]
-            tab( "visualization", "Visualization", h.url_for( controller='/visualization', action='list'), menu_options=menu_options )
+            tab( "visualization", _("Visualization"), h.url_for( controller='/visualization', action='list'), menu_options=menu_options )
         %>
     %endif
 
     ## Help tab.
     <%
         menu_options = [
-                            ['Support', app.config.get( "support_url", "http://wiki.g2.bx.psu.edu/Support" ), "_blank" ],
-                            ['Galaxy Wiki', app.config.get( "wiki_url", "http://wiki.g2.bx.psu.edu/" ), "_blank" ],
-                            ['Video tutorials (screencasts)', app.config.get( "screencasts_url", "http://galaxycast.org" ), "_blank" ],
-                            ['How to Cite Galaxy', app.config.get( "citation_url", "http://wiki.g2.bx.psu.edu/Citing%20Galaxy" ), "_blank" ]
+                            [_('Support'), app.config.get( "support_url", "http://wiki.g2.bx.psu.edu/Support" ), "_blank" ],
+                            [_('Galaxy Wiki'), app.config.get( "wiki_url", "http://wiki.g2.bx.psu.edu/" ), "_blank" ],
+                            [_('Video tutorials (screencasts)'), app.config.get( "screencasts_url", "http://galaxycast.org" ), "_blank" ],
+                            [_('How to Cite Galaxy'), app.config.get( "citation_url", "http://wiki.g2.bx.psu.edu/Citing%20Galaxy" ), "_blank" ]
                         ]
-        tab( "help", "Help", None, menu_options=menu_options)
+        tab( "help", _("Help"), None, menu_options=menu_options)
     %>
     
     ## User tabs.
     <%  
         # Menu for user who is not logged in.
-        menu_options = [ [ "Login", h.url_for( controller='/user', action='login' ), "galaxy_main" ] ]
+        menu_options = [ [ _("Login"), h.url_for( controller='/user', action='login' ), "galaxy_main" ] ]
         if app.config.allow_user_creation:
-            menu_options.append( [ "Register", h.url_for( controller='/user', action='create', cntrller='user' ), "galaxy_main" ] ) 
+            menu_options.append( [ _("Register"), h.url_for( controller='/user', action='create', cntrller='user' ), "galaxy_main" ] ) 
         extra_class = "loggedout-only"
         visible = ( trans.user == None )
-        tab( "user", "User", None, visible=visible, menu_options=menu_options )
+        tab( "user", _("User"), None, visible=visible, menu_options=menu_options )
         
         # Menu for user who is logged in.
         if trans.user:
         menu_options = [ [ '<li>Logged in as <span id="user-email">%s</span></li>' %  email ] ]
         if app.config.use_remote_user:
             if app.config.remote_user_logout_href:
-                menu_options.append( [ 'Logout', app.config.remote_user_logout_href, "_top" ] )
+                menu_options.append( [ _('Logout'), app.config.remote_user_logout_href, "_top" ] )
         else:
-            menu_options.append( [ 'Preferences', h.url_for( controller='/user', action='index', cntrller='user' ), "galaxy_main" ] )
+            menu_options.append( [ _('Preferences'), h.url_for( controller='/user', action='index', cntrller='user' ), "galaxy_main" ] )
             if app.config.get_bool( 'enable_tracks', False ):
                 menu_options.append( [ 'Custom Builds', h.url_for( controller='/user', action='dbkeys' ), "galaxy_main" ] )
             if app.config.require_login:
                 logout_url = h.url_for( controller='/user', action='logout' )
             menu_options.append( [ 'Logout', logout_url, "_top" ] )
             menu_options.append( None )
-        menu_options.append( [ 'Saved Histories', h.url_for( controller='/history', action='list' ), "galaxy_main" ] )
-        menu_options.append( [ 'Saved Datasets', h.url_for( controller='/dataset', action='list' ), "galaxy_main" ] )
+        menu_options.append( [ _('Saved Histories'), h.url_for( controller='/history', action='list' ), "galaxy_main" ] )
+        menu_options.append( [ _('Saved Datasets'), h.url_for( controller='/dataset', action='list' ), "galaxy_main" ] )
         if app.config.get_bool( 'enable_pages', False ):
-            menu_options.append( [ 'Saved Pages', h.url_for( controller='/page', action='list' ), "_top" ] )
+            menu_options.append( [ _('Saved Pages'), h.url_for( controller='/page', action='list' ), "_top" ] )
         if app.config.enable_api:
-            menu_options.append( [ 'API Keys', h.url_for( controller='/user', action='api_keys', cntrller='user' ), "galaxy_main" ] )
+            menu_options.append( [ _('API Keys'), h.url_for( controller='/user', action='api_keys', cntrller='user' ), "galaxy_main" ] )
         if app.config.use_remote_user:
-            menu_options.append( [ 'Public Name', h.url_for( controller='/user', action='edit_username', cntrller='user' ), "galaxy_main" ] )
+            menu_options.append( [ _('Public Name'), h.url_for( controller='/user', action='edit_username', cntrller='user' ), "galaxy_main" ] )
     
         extra_class = "loggedin-only"
         visible = ( trans.user != None )