From 19b91bd2825f169107c46f2f370edc7868342d1a Mon Sep 17 00:00:00 2001 From: Blakko Date: Fri, 5 Jul 2013 09:30:37 +0200 Subject: [PATCH] Internationalization of the facets part --- .../modules/core/scripts/facets/list-facet.js | 50 +++++++++---------- .../core/scripts/facets/range-facet.js | 20 ++++---- .../core/scripts/facets/scatterplot-facet.js | 26 +++++----- .../core/scripts/facets/text-search-facet.js | 6 +-- .../core/scripts/facets/timerange-facet.js | 26 +++++----- main/webapp/modules/langs/translation-en.json | 46 ++++++++++++++++- 6 files changed, 109 insertions(+), 65 deletions(-) diff --git a/main/webapp/modules/core/scripts/facets/list-facet.js b/main/webapp/modules/core/scripts/facets/list-facet.js index 4df634846..c8f1a7c51 100644 --- a/main/webapp/modules/core/scripts/facets/list-facet.js +++ b/main/webapp/modules/core/scripts/facets/list-facet.js @@ -148,23 +148,23 @@ ListFacet.prototype._initializeUI = function() { this._div.empty().show().html( '
' + '' + '
' + - '
' + + '
' + '' + '
' + '
' + @@ -173,7 +173,7 @@ ListFacet.prototype._initializeUI = function() { this._elmts = DOM.bind(this._div); this._elmts.titleSpan.text(this._config.name); - this._elmts.changeButton.attr("title","Current Expression: " + this._config.expression).click(function() { + this._elmts.changeButton.attr("title",$.i18n._('core-facets')["current-exp"]+": " + this._config.expression).click(function() { self._elmts.expressionDiv.slideToggle(100, function() { if (self._elmts.expressionDiv.css("display") != "none") { self._editExpression(); @@ -223,14 +223,14 @@ ListFacet.prototype._copyChoices = function() { var frame = DialogSystem.createDialog(); frame.width("600px"); - var header = $('
').addClass("dialog-header").text("Facet Choices as Tab Separated Values").appendTo(frame); + var header = $('
').addClass("dialog-header").text($.i18n._('core-facets')["facet-choices"]).appendTo(frame); var body = $('
').addClass("dialog-body").appendTo(frame); var footer = $('
').addClass("dialog-footer").appendTo(frame); body.html('