Skip to content

Commit

Permalink
Add new title entries basic locale.js and fr
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinChCloud committed Nov 29, 2017
1 parent 7434411 commit 886aded
Show file tree
Hide file tree
Showing 55 changed files with 592 additions and 183 deletions.
3 changes: 2 additions & 1 deletion client/galaxy/scripts/apps/admin.js
@@ -1,3 +1,4 @@
import _l from "utils/localization";
import jQuery from "jquery";
var $ = jQuery;
import GalaxyApp from "galaxy";
Expand Down Expand Up @@ -114,7 +115,7 @@ window.app = function app(options, bootstrapped) {
var id = `?id=${QueryStringParsing.get("id")}`;
var form_defs = {
reset_user_password: {
title: "Reset passwords",
title: _l("Reset passwords"),
url: `admin/reset_user_password${id}`,
icon: "fa-user",
submit_title: "Save new password",
Expand Down
48 changes: 24 additions & 24 deletions client/galaxy/scripts/apps/panels/admin-panel.js
Expand Up @@ -14,76 +14,76 @@ var AdminPanel = Backbone.View.extend({
});
this.categories = new Backbone.Collection([
{
title: "Server",
title: _l("Server"),
items: [
{
title: "Data types",
title: _l("Data types"),
url: "admin/view_datatypes_registry"
},
{
title: "Data tables",
title: _l("Data tables"),
url: "admin/view_tool_data_tables"
},
{
title: "Display applications",
title: _l("Display applications"),
url: "admin/display_applications"
},
{
title: "Manage jobs",
title: _l("Manage jobs"),
url: "admin/jobs"
},
{
title: "Local data",
title: _l("Local data"),
url: "data_manager"
}
]
},
{
title: "User Management",
title: _l("User Management"),
items: [
{
title: "Users",
title: _l("Users"),
url: "admin/users",
target: "__use_router__"
},
{
title: "Quotas",
title: _l("Quotas"),
url: "admin/quotas",
target: "__use_router__",
enabled: self.config.enable_quotas
},
{
title: "Groups",
title: _l("Groups"),
url: "admin/groups",
target: "__use_router__"
},
{
title: "Roles",
title: _l("Roles"),
url: "admin/roles",
target: "__use_router__"
},
{
title: "Forms",
title: _l("Forms"),
url: "admin/forms",
target: "__use_router__"
},
{
title: "API keys",
title: _l("API keys"),
url: "admin/api_keys",
target: "__use_router__"
},
{
title: "Impersonate a user",
title: _l("Impersonate a user"),
url: "admin/impersonate",
enabled: self.config.allow_user_impersonation
}
]
},
{
title: "Tool Management",
title: _l("Tool Management"),
items: [
{
title: "Install new tools",
title: _l("Install new tools"),
url: "admin_toolshed/browse_tool_sheds",
enabled: self.settings.is_tool_shed_installed
},
Expand All @@ -93,40 +93,40 @@ var AdminPanel = Backbone.View.extend({
enabled: self.settings.is_tool_shed_installed && self.config.enable_beta_ts_api_install
},
{
title: "Monitor installation",
title: _l("Monitor installation"),
url: "admin_toolshed/monitor_repository_installation",
enabled: self.settings.installing_repository_ids
},
{
title: "Manage tools",
title: _l("Manage tools"),
url: "admin/repositories",
enabled: self.settings.is_repo_installed,
target: "__use_router__"
},
{
title: "Manage metadata",
title: _l("Manage metadata"),
url: "admin_toolshed/reset_metadata_on_selected_installed_repositories",
enabled: self.settings.is_repo_installed
},
{
title: "Manage whitelist",
title: _l("Manage whitelist"),
url: "admin/sanitize_whitelist"
},
{
title: "Manage dependencies",
title: _l("Manage dependencies"),
url: "admin/manage_tool_dependencies"
},
{
title: "View lineage",
title: _l("View lineage"),
url: "admin/tool_versions",
target: "__use_router__"
},
{
title: "View migration stages",
title: _l("View migration stages"),
url: "admin/review_tool_migration_stages"
},
{
title: "View error logs",
title: _l("View error logs"),
url: "admin/tool_errors"
}
]
Expand Down
6 changes: 3 additions & 3 deletions client/galaxy/scripts/apps/panels/history-panel.js
Expand Up @@ -25,7 +25,7 @@ var HistoryPanel = Backbone.View.extend({
// build buttons
this.buttonRefresh = new Ui.ButtonLink({
id: "history-refresh-button",
title: "Refresh history",
title: _l("Refresh history"),
cls: "panel-header-button",
icon: "fa fa-refresh",
onclick: function() {
Expand All @@ -34,15 +34,15 @@ var HistoryPanel = Backbone.View.extend({
});
this.buttonOptions = new Ui.ButtonLink({
id: "history-options-button",
title: "History options",
title: _l("History options"),
cls: "panel-header-button",
target: "galaxy_main",
icon: "fa fa-cog",
href: `${this.root}root/history_options`
});
this.buttonViewMulti = new Ui.ButtonLink({
id: "history-view-multi-button",
title: "View all histories",
title: _l("View all histories"),
cls: "panel-header-button",
icon: "fa fa-columns",
href: `${this.root}history/view_multiple`
Expand Down
5 changes: 3 additions & 2 deletions client/galaxy/scripts/galaxy.pages.js
@@ -1,3 +1,4 @@
import _l from "utils/localization";
import "libs/jquery/jquery.form";
import "libs/jquery/jstorage";
import "libs/jquery/jquery.wymeditor";
Expand Down Expand Up @@ -517,12 +518,12 @@ export default function editor_onload() {
{ name: "Italic", title: "Emphasis", css: "wym_tools_emphasis" },
{
name: "Superscript",
title: "Superscript",
title: _l("Superscript"),
css: "wym_tools_superscript"
},
{
name: "Subscript",
title: "Subscript",
title: _l("Subscript"),
css: "wym_tools_subscript"
},
{
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/layout/menu.js
Expand Up @@ -374,7 +374,7 @@ var Tab = Backbone.View.extend({
_buildMenuItem: function(options) {
var self = this;
options = _.defaults(options || {}, {
title: "",
title: _l(""),
url: "",
target: "_parent",
noscratchbook: false
Expand Down
Expand Up @@ -1806,7 +1806,7 @@ var pairedCollectionCreatorModal = function _pairedCollectionCreatorModal(datase

creator = new PairedCollectionCreator(options);
Galaxy.modal.show({
title: "Create a collection of paired datasets",
title: _l("Create a collection of paired datasets"),
body: creator.$el,
width: "80%",
height: "800px",
Expand Down
5 changes: 3 additions & 2 deletions client/galaxy/scripts/mvc/dataset/data.js
@@ -1,3 +1,4 @@
import _l from "utils/localization";
// Additional dependencies: jQuery, underscore.
import Modal from "mvc/ui/ui-modal";
import Frames from "mvc/ui/ui-frames";
Expand Down Expand Up @@ -466,7 +467,7 @@ var TabularButtonTracksterView = Backbone.View.extend({
// create the icon
var btn_viz = new mod_icon_btn.IconButtonView({
model: new mod_icon_btn.IconButton({
title: "Visualize",
title: _l("Visualize"),
icon_class: "chart_curve",
id: "btn_viz"
})
Expand Down Expand Up @@ -543,7 +544,7 @@ var TabularButtonTracksterView = Backbone.View.extend({
$("#btn_viz").off("click");
$("#btn_viz").click(() => {
self.frame.add({
title: "Trackster",
title: _l("Trackster"),
url: `${self.url_viz}/trackster?${$.param(btn_viz_pars)}`
});
});
Expand Down
25 changes: 13 additions & 12 deletions client/galaxy/scripts/mvc/dataset/dataset-edit-attributes.js
@@ -1,3 +1,4 @@
import _l from "utils/localization";
/** Dataset edit attributes view */
import Utils from "utils/utils";
import Tabs from "mvc/ui/ui-tabs";
Expand Down Expand Up @@ -81,28 +82,28 @@ var View = Backbone.View.extend({
var tabs = new Tabs.View();
tabs.add({
id: "attribute",
title: "Attributes",
title: _l("Attributes"),
icon: "fa fa-bars",
tooltip: "Edit dataset attributes",
$el: this.forms.attribute.$el
});
tabs.add({
id: "convert",
title: "Convert",
title: _l("Convert"),
icon: "fa-gear",
tooltip: "Convert to new format",
$el: this.forms.conversion.$el
});
tabs.add({
id: "datatype",
title: "Datatypes",
title: _l("Datatypes"),
icon: "fa-database",
tooltip: "Change data type",
$el: this.forms.datatype.$el
});
tabs.add({
id: "permissions",
title: "Permissions",
title: _l("Permissions"),
icon: "fa-user",
tooltip: "Permissions",
$el: this.forms.permission.$el
Expand All @@ -114,12 +115,12 @@ var View = Backbone.View.extend({
_getAttribute: function() {
var self = this;
var form = new Form({
title: "Edit attributes",
title: _l("Edit attributes"),
operations: {
submit_attributes: new Ui.ButtonIcon({
tooltip: "Save attributes of the dataset.",
icon: "fa-floppy-o",
title: "Save",
title: _l("Save"),
onclick: function() {
self._submit("attributes", form);
}
Expand All @@ -142,11 +143,11 @@ var View = Backbone.View.extend({
_getConversion: function() {
var self = this;
var form = new Form({
title: "Convert to new format",
title: _l("Convert to new format"),
operations: {
submit_conversion: new Ui.ButtonIcon({
tooltip: "Convert the datatype to a new format.",
title: "Convert datatype",
title: _l("Convert datatype"),
icon: "fa-exchange",
onclick: function() {
self._submit("conversion", form);
Expand All @@ -161,11 +162,11 @@ var View = Backbone.View.extend({
_getDatatype: function() {
var self = this;
var form = new Form({
title: "Change datatype",
title: _l("Change datatype"),
operations: {
submit_datatype: new Ui.ButtonIcon({
tooltip: "Change the datatype to a new type.",
title: "Change datatype",
title: _l("Change datatype"),
icon: "fa-exchange",
onclick: function() {
self._submit("datatype", form);
Expand All @@ -180,11 +181,11 @@ var View = Backbone.View.extend({
_getPermission: function() {
var self = this;
var form = new Form({
title: "Manage dataset permissions",
title: _l("Manage dataset permissions"),
operations: {
submit_permission: new Ui.ButtonIcon({
tooltip: "Save permissions.",
title: "Save permissions",
title: _l("Save permissions"),
icon: "fa-floppy-o ",
onclick: function() {
self._submit("permission", form);
Expand Down
5 changes: 3 additions & 2 deletions client/galaxy/scripts/mvc/dataset/dataset-error.js
@@ -1,3 +1,4 @@
import _l from "utils/localization";
import Utils from "utils/utils";
import Ui from "mvc/ui/ui-misc";
import Form from "mvc/form/form-view";
Expand Down Expand Up @@ -124,12 +125,12 @@ var View = Backbone.View.extend({
*/

var form = new Form({
title: "Error Report",
title: _l("Error Report"),
inputs: inputs,
buttons: {
save: new Ui.Button({
icon: "fa-bug",
title: "Report",
title: _l("Report"),
cls: "ui-button btn btn-primary",
floating: "clear",
onclick: function() {
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/dataset/dataset-li-edit.js
Expand Up @@ -275,7 +275,7 @@ var DatasetListItemEdit = _super.extend(
$links.click(function(ev) {
if (Galaxy.frame && Galaxy.frame.active) {
Galaxy.frame.add({
title: "Visualization",
title: _l("Visualization"),
url: $(this).attr("href")
});
ev.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/dataset/dataset-li.js
Expand Up @@ -261,7 +261,7 @@ var DatasetListItemView = _super.extend(
onclick: function(ev) {
if (Galaxy.frame && Galaxy.frame.active) {
Galaxy.frame.add({
title: "Dataset details",
title: _l("Dataset details"),
url: this.href
});
ev.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/dataset/dataset-model.js
Expand Up @@ -225,7 +225,7 @@ var DatasetAssociation = Backbone.Model.extend(BASE_MVC.LoggableMixin).extend(
* following attr keys.
*/
searchAliases: {
title: "name",
title: _l("name"),
format: "file_ext",
database: "genome_build",
blurb: "misc_blurb",
Expand Down

0 comments on commit 886aded

Please sign in to comment.