diff --git a/eggs.ini b/eggs.ini index 43f226b378e..d0646b2f284 100644 --- a/eggs.ini +++ b/eggs.ini @@ -47,6 +47,7 @@ WebError = 0.8a WebHelpers = 0.2 WebOb = 0.8.5 wsgiref = 0.1.2 +Babel = 0.9.4 ; extra version information [tags] @@ -92,3 +93,4 @@ WebError = http://pypi.python.org/packages/source/W/WebError/WebError-0.8a.tar.g WebHelpers = http://pypi.python.org/packages/source/W/WebHelpers/WebHelpers-0.2.tar.gz WebOb = http://pypi.python.org/packages/source/W/WebOb/WebOb-0.8.5.tar.gz wsgiref = http://pypi.python.org/packages/source/w/wsgiref/wsgiref-0.1.2.zip +Babel = http://ftp.edgewall.com/pub/babel/Babel-0.9.4.zip diff --git a/lib/galaxy/config.py b/lib/galaxy/config.py index 4e481f7f9ce..7a351704057 100644 --- a/lib/galaxy/config.py +++ b/lib/galaxy/config.py @@ -183,5 +183,3 @@ def configure_logging( config ): # Hook everything up handler.setFormatter( formatter ) root.addHandler( handler ) - - diff --git a/lib/galaxy/web/framework/__init__.py b/lib/galaxy/web/framework/__init__.py index 66358a2ee8a..e6d14c80753 100644 --- a/lib/galaxy/web/framework/__init__.py +++ b/lib/galaxy/web/framework/__init__.py @@ -24,6 +24,9 @@ pkg_resources.require( "Mako" ) import mako.template import mako.lookup +pkg_resources.require( "Babel" ) +from babel.support import Translations + pkg_resources.require( "SQLAlchemy >= 0.4" ) from sqlalchemy import and_ @@ -134,6 +137,7 @@ class UniverseWebTransaction( base.DefaultWebTransaction ): self.__history = NOT_SET self.__galaxy_session = NOT_SET base.DefaultWebTransaction.__init__( self, environ ) + self.setup_i18n() self.sa_session.clear() self.debug = asbool( self.app.config.get( 'debug', False ) ) # Flag indicating whether we are in workflow building mode (means @@ -144,6 +148,16 @@ class UniverseWebTransaction( base.DefaultWebTransaction ): self.__ensure_valid_session( session_cookie ) if self.app.config.require_login: self.__ensure_logged_in_user( environ ) + def setup_i18n( self ): + if 'HTTP_ACCEPT_LANGUAGE' in self.environ: + # locales looks something like: ['en', 'en-us;q=0.7', 'ja;q=0.3'] + locales = self.environ['HTTP_ACCEPT_LANGUAGE'].split( ',' ) + locales = [ l.split( ';' )[0] for l in locales ] + else: + # Default to English + locales = 'en' + t = Translations.load( dirname='locale', locales=locales, domain='ginga' ) + self.template_context.update ( dict( _=t.gettext, n_=t.gettext, N_=t.ngettext ) ) @property def sa_session( self ): """ diff --git a/locale/en/LC_MESSAGES/ginga.mo b/locale/en/LC_MESSAGES/ginga.mo new file mode 100644 index 00000000000..3ad6e6045a4 Binary files /dev/null and b/locale/en/LC_MESSAGES/ginga.mo differ diff --git a/locale/en/LC_MESSAGES/ginga.po b/locale/en/LC_MESSAGES/ginga.po new file mode 100644 index 00000000000..e9506ff7134 --- /dev/null +++ b/locale/en/LC_MESSAGES/ginga.po @@ -0,0 +1,299 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-09-21 18:33+0900\n" +"PO-Revision-Date: 2009-03-17 03:55-0400\n" +"Last-Translator: FULL NAME \n" +"Language-Team: en \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 0.9.4\n" + +#: templates/history/options.mako:17 +msgid " a new empty history" +msgstr "" + +#: templates/history/options.mako:22 templates/history/options.mako:24 +msgid " current history" +msgstr "" + +#: templates/history/options.mako:14 +#, python-format +msgid " current history (stored as \"%s\")" +msgstr "" + +#: templates/history/options.mako:20 +msgid " from the current history" +msgstr "" + +#: templates/history/options.mako:15 +msgid " previously stored histories" +msgstr "" + +#: templates/history/options.mako:8 +msgid " to store or switch histories." +msgstr "" + +#: templates/user/index.mako:9 templates/user/index.mako:11 +msgid "Account settings" +msgstr "" + +#: templates/root/masthead.mako:39 +msgid "Account: " +msgstr "" + +#: templates/admin_main.mako:16 +msgid "Admin password: " +msgstr "" + +#: templates/root/history_common.mako:41 +msgid "An error occurred running this job: " +msgstr "" + +#: templates/history/options.mako:24 +msgid "Are you sure you want to delete the current history?" +msgstr "" + +#: templates/user/index.mako:16 +msgid "Change your password" +msgstr "" + +#: templates/history/options.mako:20 +msgid "Construct workflow" +msgstr "" + +#: templates/history/options.mako:17 +msgid "Create" +msgstr "" + +#: templates/user/index.mako:24 +msgid "Create new account" +msgstr "" + +#: templates/history/rename.mako:9 +msgid "Current Name" +msgstr "" + +#: templates/history/options.mako:24 +msgid "Delete" +msgstr "" + +#: templates/history/share.mako:23 +msgid "Email of User to share with:" +msgstr "" + +#: templates/root/history_common.mako:76 +#, python-format +msgid "Error: unknown dataset state \"%s\"." +msgstr "" + +#: templates/admin_main.mako:2 templates/admin_main.mako:7 +msgid "Galaxy Administration" +msgstr "" + +#: templates/root/history.mako:12 +msgid "Galaxy History" +msgstr "" + +#: templates/root/tool_menu.mako:11 +msgid "Galaxy Tools" +msgstr "" + +#: templates/root/index.mako:34 +msgid "History" +msgstr "" + +#: templates/history/share.mako:8 +msgid "History Name:" +msgstr "" + +#: templates/history/options.mako:4 +msgid "History Options" +msgstr "" + +#: templates/root/history_common.mako:57 templates/root/masthead.mako:25 +msgid "Info: " +msgstr "" + +#: templates/root/history_common.mako:38 +msgid "Job is currently running" +msgstr "" + +#: templates/root/history_common.mako:36 +msgid "Job is waiting to run" +msgstr "" + +#: templates/history/options.mako:15 +msgid "List" +msgstr "" + +#: templates/root/masthead.mako:36 +#, python-format +msgid "Logged in as %s: " +msgstr "" + +#: templates/user/index.mako:23 +msgid "Login" +msgstr "" + +#: templates/user/index.mako:18 +msgid "Logout" +msgstr "" + +#: templates/root/tool_menu.mako:100 +msgid "Manage" +msgstr "" + +#: templates/history/rename.mako:9 +msgid "New Name" +msgstr "" + +#: templates/root/history_common.mako:45 +msgid "No data: " +msgstr "" + +#: templates/history/share.mako:8 +msgid "Number of Datasets:" +msgstr "" + +#: templates/root/index.mako:32 +msgid "Options" +msgstr "" + +#: templates/admin_main.mako:27 +msgid "Reload" +msgstr "" + +#: templates/admin_main.mako:18 +msgid "Reload tool: " +msgstr "" + +#: templates/history/options.mako:14 +msgid "Rename" +msgstr "" + +#: templates/history/rename.mako:2 templates/history/rename.mako:5 +msgid "Rename History" +msgstr "" + +#: templates/history/options.mako:22 +msgid "Share" +msgstr "" + +#: templates/history/share.mako:5 +msgid "Share Histories" +msgstr "" + +#: templates/history/share.mako:8 +msgid "Share Link" +msgstr "" + +#: templates/history/share.mako:2 +msgid "Share histories" +msgstr "" + +#: templates/history/share.mako:14 +msgid "This history contains no data." +msgstr "" + +#: templates/root/index.mako:5 +msgid "Tools" +msgstr "" + +#: templates/user/index.mako:17 +msgid "Update your email address" +msgstr "" + +#: templates/root/tool_menu.mako:95 +msgid "Workflow" +msgstr "" + +#: templates/user/index.mako:14 +#, python-format +msgid "You are currently logged in as %s." +msgstr "" + +#: templates/user/index.mako:21 +msgid "You are currently not logged in." +msgstr "" + +#: templates/root/history.mako:223 +msgid "You are currently viewing a deleted history!" +msgstr "" + +#: templates/history/options.mako:8 +msgid "You must be " +msgstr "" + +#: templates/root/history.mako:252 +msgid "Your history is empty. Click 'Get Data' on the left pane to start" +msgstr "" + +#: templates/root/masthead.mako:28 +msgid "blog" +msgstr "" + +#: templates/history/share.mako:20 +msgid "copy link to share" +msgstr "" + +#: templates/root/masthead.mako:39 +msgid "create" +msgstr "" + +#: templates/root/history_common.mako:50 +msgid "database: " +msgstr "" + +#: templates/root/history_common.mako:49 +msgid "format: " +msgstr "" + +#: templates/history/options.mako:8 +msgid "logged in" +msgstr "" + +#: templates/root/masthead.mako:40 +msgid "login" +msgstr "" + +#: templates/root/masthead.mako:37 +msgid "logout" +msgstr "" + +#: templates/root/masthead.mako:36 +msgid "manage" +msgstr "" + +#: templates/root/history.mako:218 +msgid "refresh" +msgstr "" + +#: templates/root/masthead.mako:25 +msgid "report bugs" +msgstr "" + +#: templates/root/history_common.mako:42 +msgid "report this error" +msgstr "" + +#: templates/root/masthead.mako:27 +msgid "screencasts" +msgstr "" + +#: templates/root/masthead.mako:26 +msgid "wiki" +msgstr "" + +#: templates/root/tool_menu.mako:100 +msgid "workflows" +msgstr "" + diff --git a/locale/en/LC_MESSAGES/tools.mo b/locale/en/LC_MESSAGES/tools.mo new file mode 100644 index 00000000000..55de14f711f Binary files /dev/null and b/locale/en/LC_MESSAGES/tools.mo differ diff --git a/locale/en/LC_MESSAGES/tools.po b/locale/en/LC_MESSAGES/tools.po new file mode 100644 index 00000000000..f7370221624 --- /dev/null +++ b/locale/en/LC_MESSAGES/tools.po @@ -0,0 +1,85 @@ +# English translations for PROJECT. +# Copyright (C) 2009 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2009-03-17 04:07-0400\n" +"PO-Revision-Date: 2009-03-17 04:07-0400\n" +"Last-Translator: FULL NAME \n" +"Language-Team: en \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 0.9.4\n" + +msgid "Get Data" +msgstr "" + +msgid "Get ENCODE Data" +msgstr "" + +msgid "ENCODE Tools" +msgstr "" + +msgid "Lift-Over" +msgstr "" + +msgid "Text Manipulation" +msgstr "" + +msgid "Filter and Sort" +msgstr "" + +msgid "Join, Subtract and Group" +msgstr "" + +msgid "Convert Formats" +msgstr "" + +msgid "Extract Features" +msgstr "" + +msgid "Fetch Sequences" +msgstr "" + +msgid "Fetch Alignments" +msgstr "" + +msgid "Get Genomic Scores" +msgstr "" + +msgid "Operate on Genomic Intervals" +msgstr "" + +msgid "Statistics" +msgstr "" + +msgid "Graph/Display Data" +msgstr "" + +msgid "Regional Variation" +msgstr "" + +msgid "Evolution: HyPhy" +msgstr "" + +msgid "Taxonomy manipulation" +msgstr "" + +msgid "Solexa tools" +msgstr "" + +msgid "FASTA manipulation" +msgstr "" + +msgid "Short Read QC and Manipulation" +msgstr "" + +msgid "Short Read Mapping" +msgstr "" + diff --git a/locale/ginga.pot b/locale/ginga.pot new file mode 100644 index 00000000000..1703143c416 --- /dev/null +++ b/locale/ginga.pot @@ -0,0 +1,296 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-09-21 18:33+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: templates/history/options.mako:17 +msgid " a new empty history" +msgstr "" + +#: templates/history/options.mako:22 templates/history/options.mako:24 +msgid " current history" +msgstr "" + +#: templates/history/options.mako:14 +#, python-format +msgid " current history (stored as \"%s\")" +msgstr "" + +#: templates/history/options.mako:20 +msgid " from the current history" +msgstr "" + +#: templates/history/options.mako:15 +msgid " previously stored histories" +msgstr "" + +#: templates/history/options.mako:8 +msgid " to store or switch histories." +msgstr "" + +#: templates/user/index.mako:9 templates/user/index.mako:11 +msgid "Account settings" +msgstr "" + +#: templates/root/masthead.mako:39 +msgid "Account: " +msgstr "" + +#: templates/admin_main.mako:16 +msgid "Admin password: " +msgstr "" + +#: templates/root/history_common.mako:41 +msgid "An error occurred running this job: " +msgstr "" + +#: templates/history/options.mako:24 +msgid "Are you sure you want to delete the current history?" +msgstr "" + +#: templates/user/index.mako:16 +msgid "Change your password" +msgstr "" + +#: templates/history/options.mako:20 +msgid "Construct workflow" +msgstr "" + +#: templates/history/options.mako:17 +msgid "Create" +msgstr "" + +#: templates/user/index.mako:24 +msgid "Create new account" +msgstr "" + +#: templates/history/rename.mako:9 +msgid "Current Name" +msgstr "" + +#: templates/history/options.mako:24 +msgid "Delete" +msgstr "" + +#: templates/history/share.mako:23 +msgid "Email of User to share with:" +msgstr "" + +#: templates/root/history_common.mako:76 +#, python-format +msgid "Error: unknown dataset state \"%s\"." +msgstr "" + +#: templates/admin_main.mako:2 templates/admin_main.mako:7 +msgid "Galaxy Administration" +msgstr "" + +#: templates/root/history.mako:12 +msgid "Galaxy History" +msgstr "" + +#: templates/root/tool_menu.mako:11 +msgid "Galaxy Tools" +msgstr "" + +#: templates/root/index.mako:34 +msgid "History" +msgstr "" + +#: templates/history/share.mako:8 +msgid "History Name:" +msgstr "" + +#: templates/history/options.mako:4 +msgid "History Options" +msgstr "" + +#: templates/root/history_common.mako:57 templates/root/masthead.mako:25 +msgid "Info: " +msgstr "" + +#: templates/root/history_common.mako:38 +msgid "Job is currently running" +msgstr "" + +#: templates/root/history_common.mako:36 +msgid "Job is waiting to run" +msgstr "" + +#: templates/history/options.mako:15 +msgid "List" +msgstr "" + +#: templates/root/masthead.mako:36 +#, python-format +msgid "Logged in as %s: " +msgstr "" + +#: templates/user/index.mako:23 +msgid "Login" +msgstr "" + +#: templates/user/index.mako:18 +msgid "Logout" +msgstr "" + +#: templates/root/tool_menu.mako:100 +msgid "Manage" +msgstr "" + +#: templates/history/rename.mako:9 +msgid "New Name" +msgstr "" + +#: templates/root/history_common.mako:45 +msgid "No data: " +msgstr "" + +#: templates/history/share.mako:8 +msgid "Number of Datasets:" +msgstr "" + +#: templates/root/index.mako:32 +msgid "Options" +msgstr "" + +#: templates/admin_main.mako:27 +msgid "Reload" +msgstr "" + +#: templates/admin_main.mako:18 +msgid "Reload tool: " +msgstr "" + +#: templates/history/options.mako:14 +msgid "Rename" +msgstr "" + +#: templates/history/rename.mako:2 templates/history/rename.mako:5 +msgid "Rename History" +msgstr "" + +#: templates/history/options.mako:22 +msgid "Share" +msgstr "" + +#: templates/history/share.mako:5 +msgid "Share Histories" +msgstr "" + +#: templates/history/share.mako:8 +msgid "Share Link" +msgstr "" + +#: templates/history/share.mako:2 +msgid "Share histories" +msgstr "" + +#: templates/history/share.mako:14 +msgid "This history contains no data." +msgstr "" + +#: templates/root/index.mako:5 +msgid "Tools" +msgstr "" + +#: templates/user/index.mako:17 +msgid "Update your email address" +msgstr "" + +#: templates/root/tool_menu.mako:95 +msgid "Workflow" +msgstr "" + +#: templates/user/index.mako:14 +#, python-format +msgid "You are currently logged in as %s." +msgstr "" + +#: templates/user/index.mako:21 +msgid "You are currently not logged in." +msgstr "" + +#: templates/root/history.mako:223 +msgid "You are currently viewing a deleted history!" +msgstr "" + +#: templates/history/options.mako:8 +msgid "You must be " +msgstr "" + +#: templates/root/history.mako:252 +msgid "Your history is empty. Click 'Get Data' on the left pane to start" +msgstr "" + +#: templates/root/masthead.mako:28 +msgid "blog" +msgstr "" + +#: templates/history/share.mako:20 +msgid "copy link to share" +msgstr "" + +#: templates/root/masthead.mako:39 +msgid "create" +msgstr "" + +#: templates/root/history_common.mako:50 +msgid "database: " +msgstr "" + +#: templates/root/history_common.mako:49 +msgid "format: " +msgstr "" + +#: templates/history/options.mako:8 +msgid "logged in" +msgstr "" + +#: templates/root/masthead.mako:40 +msgid "login" +msgstr "" + +#: templates/root/masthead.mako:37 +msgid "logout" +msgstr "" + +#: templates/root/masthead.mako:36 +msgid "manage" +msgstr "" + +#: templates/root/history.mako:218 +msgid "refresh" +msgstr "" + +#: templates/root/masthead.mako:25 +msgid "report bugs" +msgstr "" + +#: templates/root/history_common.mako:42 +msgid "report this error" +msgstr "" + +#: templates/root/masthead.mako:27 +msgid "screencasts" +msgstr "" + +#: templates/root/masthead.mako:26 +msgid "wiki" +msgstr "" + +#: templates/root/tool_menu.mako:100 +msgid "workflows" +msgstr "" diff --git a/locale/ja/LC_MESSAGES/ginga.mo b/locale/ja/LC_MESSAGES/ginga.mo new file mode 100644 index 00000000000..22e28078248 Binary files /dev/null and b/locale/ja/LC_MESSAGES/ginga.mo differ diff --git a/locale/ja/LC_MESSAGES/ginga.po b/locale/ja/LC_MESSAGES/ginga.po new file mode 100644 index 00000000000..8037ede7135 --- /dev/null +++ b/locale/ja/LC_MESSAGES/ginga.po @@ -0,0 +1,518 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: ginga 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-09-15 13:58+0900\n" +"PO-Revision-Date: 2008-09-21 19:13+0900\n" +"Last-Translator: Mitsuteru Nakao \n" +"Language-Team: Japanese\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: +msgid "iso-8859-1" +msgstr "utf-8" + +#: +msgid "lang=\"en\"" +msgstr "lang=\"ja\"" + + +#: templates/base_panels.mako:5 +msgid "Galaxy" +msgstr "Galaxy" + +#: templates/history/options.mako:24 +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 "ツール" + + + +#: tools/**.xml +msgid "Get Data" +msgstr "データ取得" + +msgid "Get ENCODE Data" +msgstr "ENCODEデータ取得" + +msgid "ENCODE Tools" +msgstr "ENCODEツール" + +msgid "Lift-Over" +msgstr "" + +msgid "Text Manipulation" +msgstr "テキスト操作" + +msgid "Filter and Sort" +msgstr "フィルターとソート" + +msgid "Join, Subtract and Group" +msgstr "結合、差分、集合演算" + +msgid "Convert Formats" +msgstr "フォーマット変換" + +msgid "Extract Features" +msgstr "Features抽出" + +msgid "Fetch Sequences" +msgstr "配列の取得" + +msgid "Fetch Alignments" +msgstr "アラインメントの取得" + +msgid "Get Genomic Scores" +msgstr "ゲノムスコア取得" + +msgid "Operate on Genomic Intervals" +msgstr "ゲノム間隔での操作" + +msgid "Statistics" +msgstr "統計量" + +msgid "Graph/Display Data" +msgstr "グラフ/データ表示" + +msgid "Regional Variation" +msgstr "領域的多型" + +msgid "Evolution: HyPhy" +msgstr "進化: HyPhy" + +msgid "Taxonomy manipulation" +msgstr "系統学的操作" + +msgid "Solexa tools" +msgstr "Solexaツールス" + +msgid "FASTA manipulation" +msgstr "FASTA操作" + +msgid "Short Read QC and Manipulation" +msgstr "Short Read QCと操作" + +msgid "Short Read Mapping" +msgstr "Short Readマッピング" + + + + + +#: templates/admin_main.mako:3 templates/admin_main.mako:8 +msgid "Galaxy Administration" +msgstr "Galaxy 管理" + +#: templates/admin_main.mako:17 +msgid "Admin password: " +msgstr "管理者パスワード: " + +#: templates/admin_main.mako:19 +msgid "Reload tool: " +msgstr "" + +#: templates/admin_main.mako:35 +msgid "Reload" +msgstr "再読込する" + +#: templates/dataset/edit_attributes.mako:2 +msgid "History Item Attributes" +msgstr "ヒストリーアイテム変数" + +#: templates/dataset/edit_attributes.mako:19 +msgid "Edit Attributes" +msgstr "変数を編集する" + +#: templates/dataset/edit_attributes.mako:64 +msgid "" +"This will inspect the dataset and attempt to correct the above column values " +"if they are not accurate." +msgstr "これはデータセットを調査して上記のカラムの値を修正することを試みます。" + +#: templates/dataset/edit_attributes.mako:68 +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 "必要なメタデータの値が不明です。それらのいくつかの値はユーザによって編集可能にはなっていません。「自動判定」を選択するとそれらの値をただしくできるかもしれません。" + +#: templates/dataset/edit_attributes.mako:78 +msgid "Convert to new format" +msgstr "新しいフォーマットに変換する" + +#: templates/dataset/edit_attributes.mako:84 +msgid "Convert to" +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 "新しいフォーマットに変換したデータセットを新規作成します。" + +#: templates/dataset/edit_attributes.mako:111 +msgid "Change data type" +msgstr "データタイプを変更する" + +#: templates/dataset/edit_attributes.mako:117 +msgid "New Type" +msgstr "新しいタイプ" + +#: templates/dataset/edit_attributes.mako:124 +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 "これは既存のデータセットのデータタイプを変更します。しかしデータセットの中身は変更しません。データセットのタイプの誤判定があったときに使用します。" + +#: templates/dataset/edit_attributes.mako:137 +msgid "Copy History Item" +msgstr "ヒストリーアイテムをコピーする" + +#: templates/history/list.mako:3 +msgid "Your saved histories" +msgstr "保存したヒストリー" + +#: templates/history/list.mako:19 +msgid "Stored Histories" +msgstr "格納してあるヒストリー" + +#: templates/history/list.mako:21 templates/root/history.mako:239 +msgid "hide deleted" +msgstr "削除したヒストリーを隠す" + +#: templates/history/list.mako:23 +msgid "show deleted" +msgstr "削除したヒストリーを表示する" + +#: templates/history/list.mako:27 +msgid "Name" +msgstr "名前" + +#: templates/history/list.mako:27 +msgid "Size" +msgstr "サイズ" + +#: templates/history/list.mako:27 +msgid "Last modified" +msgstr "最終更新日" + +#: templates/history/list.mako:27 +msgid "Actions" +msgstr "操作" + +#: templates/history/list.mako:45 +msgid "rename" +msgstr "名称変更する" + +#: templates/history/list.mako:46 +msgid "switch to" +msgstr "変更する" + +#: templates/history/list.mako:47 +msgid "delete" +msgstr "削除する" + +#: templates/history/list.mako:49 +msgid "undelete" +msgstr "削除から戻す" + +#: templates/history/list.mako:55 +msgid "Action" +msgstr "操作" + +#: templates/history/list.mako:56 templates/history/options.mako:21 +msgid "Share" +msgstr "共有" + +#: templates/history/list.mako:56 templates/history/options.mako:15 +msgid "Rename" +msgstr "名称変更する" + +#: templates/history/list.mako:56 templates/history/options.mako:24 +msgid "Delete" +msgstr "削除する" + +#: templates/history/list.mako:58 +msgid "Undelete" +msgstr "削除から戻す" + +#: templates/history/list.mako:65 +msgid "You have no stored histories" +msgstr "保管してあるヒストリーはありません" + +#: templates/history/options.mako:5 +msgid "History Options" +msgstr "ヒストリーオプション" + +#: templates/history/options.mako:9 +msgid "You must be " +msgstr "あなたは" + +#: templates/history/options.mako:9 +msgid "logged in" +msgstr "ログイン" + +#: templates/history/options.mako:9 +msgid " to store or switch histories." +msgstr "しないとヒストリーの保管や変更ができません。" + +#: templates/history/options.mako:15 +#, python-format +msgid " current history (stored as \"%s\")" +msgstr " 現在のヒストリー(\"%s\" として保管されています)" + +#: templates/history/options.mako:16 +msgid "List" +msgstr "リストする" + +#: templates/history/options.mako:16 +msgid " previously stored histories" +msgstr " 以前に保管したヒストリー" + +#: templates/history/options.mako:18 +msgid "Create" +msgstr "作成する" + +#: templates/history/options.mako:18 +msgid " a new empty history" +msgstr " 新規ヒストリー" + +#: templates/history/options.mako:20 +msgid "Construct workflow" +msgstr "ワークフローを構築する" + +#: templates/history/options.mako:20 +msgid " from the current history" +msgstr " 現在のヒストリーから" + +#: templates/history/options.mako:21 templates/history/options.mako:24 +msgid " current history" +msgstr " 現在のヒストリー" + +#: templates/history/options.mako:23 +msgid "Show deleted" +msgstr "削除したヒストリーを表示する" + +#: templates/history/options.mako:23 +msgid " datasets in history" +msgstr " ヒストリーのデータセット" + +#: templates/history/rename.mako:3 templates/history/rename.mako:6 +msgid "Rename History" +msgstr "ヒストリーの名称変更をする" + + +msgid "Rename Histories" +msgstr "名称変更する" + +msgid "Perform Action" +msgstr "操作を実行する" + +msgid "Submit" +msgstr "登録する" + + + +#: templates/history/rename.mako:10 +msgid "Current Name" +msgstr "現在の名称" + +#: templates/history/rename.mako:10 +msgid "New Name" +msgstr "新しい名称" + +#: templates/history/share.mako:3 +msgid "Share histories" +msgstr "ヒストリーを共有する" + +#: templates/history/share.mako:6 +msgid "Share Histories" +msgstr "ヒストリーを共有する" + +#: templates/history/share.mako:9 +msgid "History Name:" +msgstr "ヒストリー名" + +#: templates/history/share.mako:9 +msgid "Number of Datasets:" +msgstr "データセット数" + +#: templates/history/share.mako:9 +msgid "Share Link" +msgstr "共有リンク" + +#: templates/history/share.mako:15 +msgid "This history contains no data." +msgstr "このヒストリーにはデータがありません。" + +#: templates/history/share.mako:21 +msgid "copy link to share" +msgstr "共有リンクをコピーする" + +#: templates/history/share.mako:24 +msgid "Email of User to share with:" +msgstr "共有したいユーザのEメール:" +#msgstr "つぎのヒストリーを共有するユーザのEメールアドレス:" + +#: templates/root/history.mako:7 +msgid "Galaxy History" +msgstr "Galaxy ヒストリー" + +#: templates/root/history.mako:237 +msgid "refresh" +msgstr "リフレッシュ" + +#: templates/root/history.mako:245 +msgid "You are currently viewing a deleted history!" +msgstr "消去したヒストリーをみています。" + +#: templates/root/history.mako:289 +msgid "Your history is empty. Click 'Get Data' on the left pane to start" +msgstr "ヒストリーは空です。解析をはじめるには、左パネルの 'データ取得' をクリック" + +#: templates/root/history_common.mako:41 +msgid "Job is waiting to run" +msgstr "ジョブは実行待ちです" + +#: templates/root/history_common.mako:43 +msgid "Job is currently running" +msgstr "ジョブは実行中です" + +#: templates/root/history_common.mako:46 +msgid "An error occurred running this job: " +msgstr "このジョブの実行中に発生したエラー: " + +#: templates/root/history_common.mako:47 +msgid "report this error" +msgstr "このエラーを報告する" + +#: templates/root/history_common.mako:54 +msgid "No data: " +msgstr "データ無し: " + +#: templates/root/history_common.mako:58 +msgid "format: " +msgstr "フォーマット: " + +#: templates/root/history_common.mako:59 +msgid "database: " +msgstr "データベース: " + +#: templates/root/history_common.mako:66 templates/root/masthead.mako:20 +msgid "Info: " +msgstr "情報: " + +#: templates/root/history_common.mako:85 +#, python-format +msgid "Error: unknown dataset state \"%s\"." +msgstr "エラー: 不明なデータ状態 \"%s\"。" + +#: templates/root/index.mako:32 +msgid "Options" +msgstr "オプション" + +#: templates/root/index.mako:34 +msgid "History" +msgstr "ヒストリー" + +#: templates/root/masthead.mako:20 +msgid "report bugs" +msgstr "バグを報告する" + +#: templates/root/masthead.mako:21 +msgid "wiki" +msgstr "wiki" + +#: templates/root/masthead.mako:22 +msgid "screencasts" +msgstr "スクリーンキャスト" + +#: templates/root/masthead.mako:23 +msgid "blog" +msgstr "ブログ" + +#: templates/root/masthead.mako:31 +#, python-format +msgid "Logged in as %s: " +msgstr "%s としてログイン中: " + +#: templates/root/masthead.mako:31 +msgid "manage" +msgstr "管理" + +#: templates/root/masthead.mako:32 +msgid "logout" +msgstr "ログアウト" + +#: templates/root/masthead.mako:34 +msgid "Account: " +msgstr "アカウント: " + +#: templates/root/masthead.mako:34 +msgid "create" +msgstr "作成" + +#: templates/root/masthead.mako:35 +msgid "login" +msgstr "ログイン" + +#: templates/root/tool_menu.mako:52 +msgid "Galaxy Tools" +msgstr "Galaxy ツール群" + +#: templates/root/tool_menu.mako:129 +msgid "Workflow" +msgstr "ワークフロー" + +#: templates/root/tool_menu.mako:134 +msgid "Manage" +msgstr "管理" + +#: templates/root/tool_menu.mako:134 +msgid "workflows" +msgstr "ワークフロー" + +#: templates/user/index.mako:2 templates/user/index.mako:4 +msgid "Account settings" +msgstr "アカウント設定" + +#: templates/user/index.mako:7 +#, python-format +msgid "You are currently logged in as %s." +msgstr "%s としてログイン中。" + +#: templates/user/index.mako:9 +msgid "Change your password" +msgstr "パスワード変更" + +#: templates/user/index.mako:10 +msgid "Update your email address" +msgstr "メールアドレス変更" + +#: templates/user/index.mako:11 +msgid "Logout" +msgstr "ログアウト" + +#: templates/user/index.mako:16 +msgid "Login" +msgstr "ログイン" + +#: templates/user/index.mako:17 +msgid "Create new account" +msgstr "新規アカウントを作成する" diff --git a/locale/ja/LC_MESSAGES/tools.mo b/locale/ja/LC_MESSAGES/tools.mo new file mode 100644 index 00000000000..f6769d52c1a Binary files /dev/null and b/locale/ja/LC_MESSAGES/tools.mo differ diff --git a/locale/ja/LC_MESSAGES/tools.po b/locale/ja/LC_MESSAGES/tools.po new file mode 100644 index 00000000000..9e3960d48d5 --- /dev/null +++ b/locale/ja/LC_MESSAGES/tools.po @@ -0,0 +1,85 @@ +# Japanese translations for PROJECT. +# Copyright (C) 2009 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2009-03-17 04:06-0400\n" +"PO-Revision-Date: 2009-03-17 04:06-0400\n" +"Last-Translator: FULL NAME \n" +"Language-Team: ja \n" +"Plural-Forms: nplurals=1; plural=0\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 0.9.4\n" + +msgid "Get Data" +msgstr "" + +msgid "Get ENCODE Data" +msgstr "" + +msgid "ENCODE Tools" +msgstr "" + +msgid "Lift-Over" +msgstr "" + +msgid "Text Manipulation" +msgstr "" + +msgid "Filter and Sort" +msgstr "" + +msgid "Join, Subtract and Group" +msgstr "" + +msgid "Convert Formats" +msgstr "" + +msgid "Extract Features" +msgstr "" + +msgid "Fetch Sequences" +msgstr "" + +msgid "Fetch Alignments" +msgstr "" + +msgid "Get Genomic Scores" +msgstr "" + +msgid "Operate on Genomic Intervals" +msgstr "" + +msgid "Statistics" +msgstr "" + +msgid "Graph/Display Data" +msgstr "" + +msgid "Regional Variation" +msgstr "" + +msgid "Evolution: HyPhy" +msgstr "" + +msgid "Taxonomy manipulation" +msgstr "" + +msgid "Solexa tools" +msgstr "" + +msgid "FASTA manipulation" +msgstr "" + +msgid "Short Read QC and Manipulation" +msgstr "" + +msgid "Short Read Mapping" +msgstr "" + diff --git a/locale/tools.pot b/locale/tools.pot new file mode 100644 index 00000000000..480f5571aac --- /dev/null +++ b/locale/tools.pot @@ -0,0 +1,66 @@ +#: tools/**.xml +msgid "Get Data" +msgstr "" + +msgid "Get ENCODE Data" +msgstr "" + +msgid "ENCODE Tools" +msgstr "" + +msgid "Lift-Over" +msgstr "" + +msgid "Text Manipulation" +msgstr "" + +msgid "Filter and Sort" +msgstr "" + +msgid "Join, Subtract and Group" +msgstr "" + +msgid "Convert Formats" +msgstr "" + +msgid "Extract Features" +msgstr "" + +msgid "Fetch Sequences" +msgstr "" + +msgid "Fetch Alignments" +msgstr "" + +msgid "Get Genomic Scores" +msgstr "" + +msgid "Operate on Genomic Intervals" +msgstr "" + +msgid "Statistics" +msgstr "" + +msgid "Graph/Display Data" +msgstr "" + +msgid "Regional Variation" +msgstr "" + +msgid "Evolution: HyPhy" +msgstr "" + +msgid "Taxonomy manipulation" +msgstr "" + +msgid "Solexa tools" +msgstr "" + +msgid "FASTA manipulation" +msgstr "" + +msgid "Short Read QC and Manipulation" +msgstr "" + +msgid "Short Read Mapping" +msgstr "" diff --git a/scripts/paster.py b/scripts/paster.py index 7624257a665..e6736a712f5 100755 --- a/scripts/paster.py +++ b/scripts/paster.py @@ -7,6 +7,7 @@ top level directly. import os, sys +sys.setdefaultencoding( 'utf_8' ) assert sys.version_info[:2] >= ( 2, 4 ) new_path = [ os.path.join( os.getcwd(), "lib" ) ] diff --git a/templates/base.mako b/templates/base.mako index 64437d13af9..6e8fb17eb93 100644 --- a/templates/base.mako +++ b/templates/base.mako @@ -1,12 +1,13 @@ +<% _=n_ %> - - ${self.title()} - - ${self.stylesheets()} - ${self.javascripts()} - + +a ${self.title()} + +${self.stylesheets()} +${self.javascripts()} + ${next.body()} diff --git a/templates/base_panels.mako b/templates/base_panels.mako index 4b37337859e..c5912ef94bb 100644 --- a/templates/base_panels.mako +++ b/templates/base_panels.mako @@ -199,14 +199,13 @@ ## Document - - + ${self.init()} - - ${self.title()} - ${self.javascripts()} - ${self.stylesheets()} + ${self.title()} + + ${self.javascripts()} + ${self.stylesheets()} diff --git a/templates/dataset/edit_attributes.mako b/templates/dataset/edit_attributes.mako index afad60dc7c6..af00df93ea3 100644 --- a/templates/dataset/edit_attributes.mako +++ b/templates/dataset/edit_attributes.mako @@ -1,8 +1,7 @@ <%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> -<%def name="title()">Edit Dataset Attributes - +<%def name="title()">${_('Edit Dataset Attributes')} <%def name="datatype( dataset, datatypes )"> -
+
${_('Edit Attributes')}
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+ %for name, spec in data.metadata.spec.items(): + %if spec.visible: +
+ +
+ ${data.metadata.get_html_by_name( name )} +
+
+
+ %endif + %endfor +
+ +
+
+
+ +
+ +
+
+ ${_('This will inspect the dataset and attempt to correct the above column values if they are not accurate.')} +
+
+ %if data.missing_meta(): +
${_('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.')}
+ %endif +
+
+ +

+ + <% converters = data.get_converter_types() %> + %if len( converters ) > 0: +

+
${_('Convert to new format')}
+
+
+ +
-
-
-
-
- -
- -
-
-
- %for name, spec in data.metadata.spec.items(): - %if spec.visible: -
- -
- ${data.metadata.get_html_by_name( name )} -
-
-
- %endif - %endfor -
- -
-
-
- -
- -
-
- This will inspect the dataset and attempt to correct the above column values if they are not accurate. -
-
- %if data.missing_meta(): -
Required metadata values are missing. Some of these values may not be changeable by the user. Selecting "Auto-detect" will attempt to fix these values.
- %endif -
-
-

-<% converters = data.get_converter_types() %> -%if len( converters ) > 0: -

-
Convert to new format
-
-
- -
- -
- -
-
- This will create a new dataset with the contents of this dataset converted to a new format. -
-
-
-
- -
-
-
-
-

-%endif -

-
Change data type
-
-
- -
- -
- ${datatype( data, datatypes )} +
- 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. + ${_('This will create a new dataset with the contents of this dataset converted to a new format.')}
-
-
- -
-
-
-
-

- + +

+ +
+ + + + +

+ %endif %if trans.app.security_agent.allow_action( trans.user, data.permitted_actions.DATASET_MANAGE_PERMISSIONS, dataset = data ): <%namespace file="/dataset/security_common.mako" import="render_permission_form" /> ${render_permission_form( data.dataset, data.name, h.url_for( controller='root', action='edit', id=data.id ), trans.user.all_roles() )} @@ -154,7 +130,26 @@ %else:

This dataset is accessible by everyone (it is public).

%endif +
+
${_('Change data type')}
+
+
+ +
+ +
+ ${datatype( data, datatypes )}
-
-
-%endif +
+ ${_('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.')} +
+
+
+
+ +
+ + + diff --git a/templates/form.mako b/templates/form.mako index 6f85e8305cb..695931ebbf6 100644 --- a/templates/form.mako +++ b/templates/form.mako @@ -1,3 +1,4 @@ +<% _=n_ %> <%inherit file="/base.mako"/> <%def name="title()">${form.title} @@ -15,33 +16,33 @@ $(function(){ %endif
-
${form.title}
-
-
- %for input in form.inputs: - <% - cls = "form-row" - if input.error: - cls += " form-row-error" - %> -
- %if input.use_label: - - %endif -
- -
- %if input.error: -
${input.error}
- %endif - - %if input.help: -
- ${input.help} -
- %endif +
${form.title}
+
+ + %for input in form.inputs: + <% + cls = "form-row" + if input.error: + cls += " form-row-error" + %> +
+ +
+ +
+ %if input.error: +
+
 ${input.error}
+
+ %endif + + %if input.help: +
+ ${input.help} +
+ %endif
diff --git a/templates/history/list.mako b/templates/history/list.mako index a5de3273c68..2d3c32612f9 100644 --- a/templates/history/list.mako +++ b/templates/history/list.mako @@ -1,3 +1,4 @@ +<% _=n_ %> <%inherit file="/base.mako"/> <%def name="title()">Your saved histories @@ -62,7 +63,7 @@ -

Stored Histories

+

${_('Stored Histories')}

  • @@ -199,3 +200,4 @@ + diff --git a/templates/history/options.mako b/templates/history/options.mako index e946cfe048d..51ca4b94c4a 100644 --- a/templates/history/options.mako +++ b/templates/history/options.mako @@ -24,3 +24,4 @@
  • Delete current history
+ diff --git a/templates/history/rename.mako b/templates/history/rename.mako index 02b5f01c7c3..05c4e70b130 100644 --- a/templates/history/rename.mako +++ b/templates/history/rename.mako @@ -1,16 +1,17 @@ +<% _=n_ %> <%inherit file="/base.mako"/> -<%def name="title()">Rename History +<%def name="title()">${_('Rename History')}
-
Rename History
+
${_('Rename History')}
- + %for history in histories: %endfor - +
Current NameNew Name
${_('Current Name')}${_('New Name')}
${history.name}
diff --git a/templates/history/share.mako b/templates/history/share.mako index 3ec8a41581e..0221d4d3ad7 100644 --- a/templates/history/share.mako +++ b/templates/history/share.mako @@ -115,3 +115,4 @@
%endif + diff --git a/templates/message.mako b/templates/message.mako index 5d1ff043ff7..883abb3c6d8 100644 --- a/templates/message.mako +++ b/templates/message.mako @@ -51,3 +51,4 @@
${msg}

+ diff --git a/templates/root/history.mako b/templates/root/history.mako index 23402c41b8c..956277ebfe5 100644 --- a/templates/root/history.mako +++ b/templates/root/history.mako @@ -1,16 +1,17 @@ +<% _=n_ %> -Galaxy History +${_('Galaxy History')} ## This is now only necessary for tests %if bool( [ data for data in history.active_datasets if data.state in ['running', 'queued', '', None ] ] ): %endif - + @@ -29,7 +30,7 @@ initShowHide(); setupHistoryItem( q("div.historyItemWrapper") ); // Collapse all - q("#top-links").append( "| " ).append( q("collapse all").click( function() { + q("#top-links").append( "| " ).append( q("${_('collapse all')}").click( function() { q( "div.historyItemBody:visible" ).each( function() { if ( q.browser.mozilla ) { @@ -39,7 +40,7 @@ }) var state = new CookieSet( "galaxy.history.expand_state" ); state.removeAll().save(); - return false; + return false; })); $("#history-rename").click( function() { var old_name = $("#history-name").text() @@ -72,13 +73,13 @@ return false; }) }) - // Functionized so AJAX'd datasets can call them + //' Functionized so AJAX'd datasets can call them // Get shown/hidden state from cookie function initShowHide() { q( "div.historyItemBody" ).hide(); // Load saved state and show as neccesary var state = new CookieSet( "galaxy.history.expand_state" ); - for ( id in state.store ) { q( "#" + id ).children( "div.historyItemBody" ).show(); } + for ( id in state.store ) { q( "#" + id ).children( "div.historyItemBody" ).show(); } // If Mozilla, hide scrollbars in hidden items since they cause animation bugs if ( q.browser.mozilla ) { q( "div.historyItemBody" ).each( function() { @@ -110,51 +111,51 @@ state.add( id ); state.save(); delete state; } - return false; + return false; }); // Delete link q(this).find( "a.historyItemDelete" ).each( function() { - var data_id = this.id.split( "-" )[1]; - q(this).click( function() { - q( '#progress-' + data_id ).show(); - q.ajax({ - url: "${h.url_for( action='delete_async', id='XXX' )}".replace( 'XXX', data_id ), - error: function() { alert( "Delete failed" ) }, - success: function() { - %if show_deleted: - var to_update = {}; - to_update[data_id] = "none"; - updater( to_update ); - %else: - q( "#historyItem-" + data_id ).fadeOut( "fast", function() { - q( "div#historyItemContainer-" + data_id ).remove(); - if ( q( "div.historyItemContainer" ).length < 1 ) { - q ( "div#emptyHistoryMessage" ).show(); - } - }); - %endif - } - }); - return false; - }); - }); + var data_id = this.id.split( "-" )[1]; + q(this).click( function() { + q( '#progress-' + data_id ).show(); + q.ajax({ + url: "${h.url_for( action='delete_async', id='XXX' )}".replace( 'XXX', data_id ), + error: function() { alert( "Delete failed" ) }, + success: function() { + %if show_deleted: + var to_update = {}; + to_update[data_id] = "none"; + updater( to_update ); + %else: + q( "#historyItem-" + data_id ).fadeOut( "fast", function() { + q( "div#historyItemContainer-" + data_id ).remove(); + if ( q( "div.historyItemContainer" ).length < 1 ) { + q ( "div#emptyHistoryMessage" ).show(); + } + }); + %endif + } + }); + return false; + }); + }); // Undelete link q(this).find( "a.historyItemUndelete" ).each( function() { - var data_id = this.id.split( "-" )[1]; - q(this).click( function() { - q( '#progress-' + data_id ).show(); - q.ajax({ - url: "${h.url_for( controller='dataset', action='undelete_async', id='XXX' )}".replace( 'XXX', data_id ), - error: function() { alert( "Undelete failed" ) }, - success: function() { - var to_update = {}; - to_update[data_id] = "none"; - updater( to_update ); - } - }); - return false; - }); - }); + var data_id = this.id.split( "-" )[1]; + q(this).click( function() { + q( '#progress-' + data_id ).show(); + q.ajax({ + url: "${h.url_for( controller='dataset', action='undelete_async', id='XXX' )}".replace( 'XXX', data_id ), + error: function() { alert( "Undelete failed" ) }, + success: function() { + var to_update = {}; + to_update[data_id] = "none"; + updater( to_update ); + } + }); + return false; + }); + }); }); }; // Looks for changes in dataset state using an async request. Keeps @@ -237,9 +238,9 @@ @@ -250,7 +251,7 @@ %if history.deleted:
- You are currently viewing a deleted history! + ${_('You are currently viewing a deleted history!')}

%endif @@ -289,7 +290,7 @@ diff --git a/templates/root/history_as_xml.mako b/templates/root/history_as_xml.mako index 1b2d88ea59a..7db0412a3d1 100644 --- a/templates/root/history_as_xml.mako +++ b/templates/root/history_as_xml.mako @@ -2,7 +2,7 @@ %for data in history.active_datasets: - ${data.blurb} + ${_(data.blurb)} %endfor diff --git a/templates/root/history_common.mako b/templates/root/history_common.mako index dbd17d07d9b..87b20ff2ff1 100644 --- a/templates/root/history_common.mako +++ b/templates/root/history_common.mako @@ -25,6 +25,8 @@
%if data_state == 'running':
+ %elif data_state == 'upload': +
%elif data_state != 'ok':
%endif @@ -42,6 +44,8 @@
%if not trans.app.security_agent.allow_action( trans.user, data.permitted_actions.DATASET_ACCESS, dataset = data.dataset ):
You do not have permission to view this dataset.
+ %elif data_state == "upload": +
Dataset is uploading
%elif data_state == "queued":
Job is waiting to run
%elif data_state == "running": @@ -115,3 +119,4 @@
+ diff --git a/templates/root/index.mako b/templates/root/index.mako index 69c3ab49ff8..bdab770ab20 100644 --- a/templates/root/index.mako +++ b/templates/root/index.mako @@ -57,3 +57,4 @@
+ diff --git a/templates/root/masthead.mako b/templates/root/masthead.mako index ec0c1421d2d..f1c56baaa37 100644 --- a/templates/root/masthead.mako +++ b/templates/root/masthead.mako @@ -79,3 +79,4 @@ + diff --git a/templates/root/tool_menu.mako b/templates/root/tool_menu.mako index 00106b3aa42..1ed0bbe184b 100644 --- a/templates/root/tool_menu.mako +++ b/templates/root/tool_menu.mako @@ -119,3 +119,4 @@ + diff --git a/templates/user/index.mako b/templates/user/index.mako index 74964a1907f..efefb327d68 100644 --- a/templates/user/index.mako +++ b/templates/user/index.mako @@ -18,3 +18,4 @@
  • Register
  • %endif + diff --git a/templates/workflow/build_from_current_history.mako b/templates/workflow/build_from_current_history.mako index bbbe9b91dc8..2cfadc4161d 100644 --- a/templates/workflow/build_from_current_history.mako +++ b/templates/workflow/build_from_current_history.mako @@ -1,3 +1,4 @@ +<% _ = t.gettext %> @@ -49,7 +50,7 @@ th { %if disabled:
    -
    Treat as input dataset
    +
    ${_('Treat as input dataset')}
    %endif
    @@ -67,17 +68,17 @@ into a workflow will be shown in gray.

    - +
    -

    +

    - + - + %for job, datasets in jobs.iteritems(): diff --git a/test/functional/__init__.py b/test/functional/__init__.py index 95722061d54..33920759a60 100644 --- a/test/functional/__init__.py +++ b/test/functional/__init__.py @@ -25,6 +25,7 @@ log = logging.getLogger( __name__ ) default_galaxy_test_host = "localhost" default_galaxy_test_port = "9999" +default_galaxy_locales = 'en' galaxy_test_file_dir = "test-data" server = None app = None @@ -35,6 +36,8 @@ def setup(): galaxy_test_host = os.environ.get( 'GALAXY_TEST_HOST', default_galaxy_test_host ) galaxy_test_port = os.environ.get( 'GALAXY_TEST_PORT', default_galaxy_test_port ) + if 'HTTP_ACCEPT_LANGUAGE' not in os.environ: + os.environ['HTTP_ACCEPT_LANGUAGE'] = default_galaxy_locales start_server = 'GALAXY_TEST_EXTERNAL' not in os.environ if start_server:
    Tool${_('Tool')} History items created${_('History items created')}