From 017716b4c4d6f8b3ad963ee49852a7aa1458039e Mon Sep 17 00:00:00 2001 From: Hanfei Sun Date: Thu, 24 Nov 2011 23:56:36 +0800 Subject: [PATCH] Modify some string in Mako templetes for complete i18n support. --- locale/zh/LC_MESSAGES/ginga.mo | Bin 9248 -> 9906 bytes locale/zh/LC_MESSAGES/ginga.po | 52 ++++++++++--------- templates/root/history_common.mako | 38 +++++++------- templates/root/index.mako | 46 ++++++++--------- templates/webapps/galaxy/base_panels.mako | 58 +++++++++++----------- 5 files changed, 100 insertions(+), 94 deletions(-) diff --git a/locale/zh/LC_MESSAGES/ginga.mo b/locale/zh/LC_MESSAGES/ginga.mo index e1635e655ec80cf13465adcac6cf06e52f4e1d25..313becab3316482d2927e80aebaf24133df491f0 100644 GIT binary patch delta 4702 zcmZ{meQ;FO8HY~_2Gqz$_%cGm5|pn(fr_A_6*MV|q9`aLsNKK<3n8J&V!&b(A_?Iu zAH9ho5J*6Q)D{8+NDK*S$Nte;r(?BW)(&yX-n*L)7429@ZD;KB+dTpP>6!bx&pGFw z^S(I_fZ5{Q4GShQi;#LGU6R1FzWr!2^s* zp*;?2{v4PFpNAU11>Okvz(iOJ`@w_p=Y{4dmD}lPg-P&la0cv&4=`y1;{i;C#AY&J zGMo>&%=6q7>v}j0Zi2*S%Hd#G59Rm-)VQ-y^M3&cnnGhfpd!bYAU@5fP?3KFHE|FP zO&9@3z)7$_d=P5hqmZHIS@>nlWZ$*z&qe&38wgVlhC>aU2xahI z%lS}&JO{NxKa`;Yr~pdg&Cr1gtO06%6O`RH%iqGjv@b&WxdaPurSdry?a3{S)(VF~ zrErSnY$$_|KrXYCn+#+_1@;P*oo!G79$oq@kX1rUa~G(E}WUwir=I%Fte zNSytl1`dQ;(NN1&C`02Qmzl;*sm_2}fFH_X5XLeDxlAcHEnuH*zX^xazA%LRz0rlF) zCm9}uh101lqw*eH1t)U=v;qezBXv;k_hBf99WWLC5-N~xsBxE}PW!*%WOyqFLR*sw zH7*Ozg}G4UP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gofg;+x@B#MX;#5|&a*hX}h46B4kQ&~y8M7(UBg?Ovg z#r;;-)u&j!8*Q=5ctX3U|B!f_-ALjm#4iYyRRLX}YyV#lyK89Z)tgQHoX8?n77>-i z1mZEGgix7EXxCmOiV1xoy+Eks5Y@!9#3O`u^LZjfs5}+mHkzI?-9_UzVhq6(>6R0z z#6yG%yWUksnUnBtVx6_`GoL{HKB&AF;D(rY;(S66>M-l;LRXS+9c9R^cRwTa3cW(` zz0`H@Z^0*tv4o1=2o=2ndBnrSVnVO1zK~S(aCR5{GomslpzD8z71YC<_|VU74`Lbd zOQO3}Q7I>863-BNz2b@W#0ElT8Zn(%LZlHY6~yC2sT!2N0dB5&vw4T^Cv4vCEiN|zP+}t+%G-qZA==H z;5u6ON6L3cN-HB<8zZ|~{FVyud{Vj>lRP51?WE^7doEJd7%6Y?8#egG^^u~z&M)27 z`FfpKo?P6OulK+)vHr2Q+FENPN7lC2mwB@X7J45IoEYa9A8Kpf*S`IgAb~d}Wk^iq zc(Gqz<-L@W<~5}(^io3wT{*UdCd70!H2SSo-lb4xw6cU!7mki>DC(>&@{8Bm5{g>d zTblj4L!TDC>=z$xJAR<;cu`w(jbGH_R~+nE*BaTjE7DZev3p#CQLa*-2?OMFIB`r50nA}CGPqo)I zcW$rj*jC|PPRsU&4@&WJ2KR}HR8+P#*LkxBO&-AhUcKJ-Lnr+=%D!mX*w$JSsXpla zcF@A{erb(=vRSJ>{u}oD>bZ>LM8BliZ#coZ!9DRSH+}yEEjw6>?&8e!`(piyt&yXp zb~|d)`zHjK?S61KzD`e0KCs8Ht&i+{tG%|&KXy16aP``~k%Ke51%r2c@fn4~xVh_j U9Q@Ko_xnot 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 )