diff --git a/locale/zh/LC_MESSAGES/ginga.mo b/locale/zh/LC_MESSAGES/ginga.mo index e1635e655ec..313becab331 100644 Binary files a/locale/zh/LC_MESSAGES/ginga.mo and b/locale/zh/LC_MESSAGES/ginga.mo differ diff --git a/locale/zh/LC_MESSAGES/ginga.po b/locale/zh/LC_MESSAGES/ginga.po index f7f7721a399..7f13341e093 100644 --- a/locale/zh/LC_MESSAGES/ginga.po +++ b/locale/zh/LC_MESSAGES/ginga.po @@ -33,12 +33,10 @@ msgstr "Galaxy" 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 "工具" @@ -57,7 +55,6 @@ msgstr "ENCODE工具" msgid "Lift-Over" msgstr "版本转换" - msgid "Text Manipulation" msgstr "文本操作" @@ -134,7 +131,7 @@ msgid "History Item Attributes" msgstr "历史项目属性" #: templates/dataset/edit_attributes.mako:19 -msgid "Edit Attributes" +msgid "Edit attributes" msgstr "编辑属性" #: templates/dataset/edit_attributes.mako:64 @@ -148,21 +145,21 @@ msgid "" "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" @@ -177,7 +174,7 @@ msgid "" "This will change the datatype of the existing dataset but not modify " "its contents. Use this if Galaxy has incorrectly guessed the type of your " "dataset." -msgstr "这将改变已有数据集的数据类型,但是不改变其内容。当Galaxy不能正确判断你的数据类型时,设置该参数。" +msgstr "这将改变已有数据集的数据类型,但不改变其内容。当Galaxy不能正确判断你的数据类型时,设置该参数。" #: templates/dataset/edit_attributes.mako:137 msgid "Copy History Item" @@ -185,19 +182,16 @@ msgstr "复制历史记录项" #: 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" @@ -209,7 +203,7 @@ msgstr "大小" #: templates/history/list.mako:27 msgid "Last modified" -msgstr "最后修改" +msgstr "最后修改时间" #: templates/history/list.mako:27 msgid "Actions" @@ -229,7 +223,7 @@ msgstr "删除" #: templates/history/list.mako:49 msgid "undelete" -msgstr "取消删除" +msgstr "还原" #: templates/history/list.mako:55 msgid "Action" @@ -249,7 +243,7 @@ msgstr "删除" #: templates/history/list.mako:58 msgid "Undelete" -msgstr "取消删除" +msgstr "还原" #: templates/history/list.mako:65 msgid "You have no stored histories" @@ -261,7 +255,7 @@ msgstr "历史记录选项" #: templates/history/options.mako:9 msgid "You must be " -msgstr "你必须" +msgstr "你必须成为" #: templates/history/options.mako:9 msgid "logged in" @@ -290,7 +284,7 @@ msgstr "创建" #: templates/history/options.mako:18 msgid " a new empty history" -msgstr " 一个新的空历史记录" +msgstr " 一个新的空白历史记录" #: templates/history/options.mako:20 msgid "Construct workflow" @@ -550,10 +544,10 @@ msgstr "数据安全性" msgid "Show Deleted Datasets" -msgstr "显示已删除数据" +msgstr "显示已删除的数据" msgid "Show Hidden Datasets" -msgstr "显示隐藏数据" +msgstr "显示隐藏的数据" msgid "Show Structure" msgstr "显示结构" @@ -594,4 +588,16 @@ msgstr "用户" msgid "Register" -msgstr "注册" \ No newline at end of file +msgstr "注册" + +msgid "Support" +msgstr "技术支持" + +msgid "Galaxy Wiki" +msgstr "Galaxy百科" + +msgid "Video tutorials (screencasts)" +msgstr "视频教程(动画演示)" + +msgid "How to Cite Galaxy" +msgstr "如何引用Galaxy" diff --git a/templates/root/history_common.mako b/templates/root/history_common.mako index e0585d871e3..bbd04684c58 100644 --- a/templates/root/history_common.mako +++ b/templates/root/history_common.mako @@ -19,7 +19,7 @@ %endif @@ -75,7 +75,7 @@ ## 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. - + %if for_editing: %endif @@ -98,7 +98,7 @@ %if data.purged: %else: - %else: - + %endif %endif %endif %if for_editing: %if can_edit: - + %else: %endif @@ -136,17 +136,17 @@ %elif data_state == "queued":
${_('Job is waiting to run')}
- + %if for_editing: - + %endif
%elif data_state == "running":
${_('Job is currently running')}
- + %if for_editing: - + %endif
%elif data_state == "error": @@ -163,9 +163,9 @@ %if data.has_data(): ${render_download_links( data, dataset_id )} %endif - + %if for_editing: - + %endif %elif data_state == "discarded": @@ -177,9 +177,9 @@ %elif data_state == "empty":
${_('No data: ')}${data.display_info()}
- + %if for_editing: - + %endif
%elif data_state in [ "ok", "failed_metadata" ]: @@ -193,8 +193,8 @@ %endif
${data.blurb}
- format: ${data.ext}, - database: + ${_("format: ")} ${data.ext}, + ${_("database: ")} %if data.dbkey == '?' and can_edit: ${_(data.dbkey)} %else: @@ -208,10 +208,10 @@ %if data.has_data(): ${render_download_links( data, dataset_id )} - + %if for_editing: - + %if app.config.get_bool( 'enable_tracks', False ) and data.ext in app.datatypes_registry.get_available_tracks(): <% if data.dbkey != '?': @@ -266,8 +266,8 @@
%endfor %elif for_editing: - - + + %endif
diff --git a/templates/root/index.mako b/templates/root/index.mako index e6f28509b79..74ff48fbed8 100644 --- a/templates/root/index.mako +++ b/templates/root/index.mako @@ -11,71 +11,71 @@ // 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. diff --git a/templates/webapps/galaxy/base_panels.mako b/templates/webapps/galaxy/base_panels.mako index 50ef7be93bc..254312f35c1 100644 --- a/templates/webapps/galaxy/base_panels.mako +++ b/templates/webapps/galaxy/base_panels.mako @@ -64,32 +64,32 @@ ## 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 ) ) ) ) %> @@ -98,10 +98,10 @@ %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 @@ -111,23 +111,23 @@ ## 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: @@ -137,9 +137,9 @@ menu_options = [ [ '
  • Logged in as %s
  • ' % 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: @@ -148,14 +148,14 @@ 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 )