cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [2/2] git commit: updated refs/heads/4.4 to 0d897f6
Date Fri, 28 Mar 2014 17:13:13 GMT
UI: Applied localization function to labels on Zone Chart page

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/0d897f65
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0d897f65
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0d897f65

Branch: refs/heads/4.4
Commit: 0d897f65a2084988bd026dad5a43ab7017162154
Parents: c09bb90
Author: Mihaela Stoica <mihaela.stoica@citrix.com>
Authored: Thu Mar 20 14:02:10 2014 +0000
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Fri Mar 28 10:11:16 2014 -0700

----------------------------------------------------------------------
 ui/scripts/ui-custom/zoneChart.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0d897f65/ui/scripts/ui-custom/zoneChart.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/zoneChart.js b/ui/scripts/ui-custom/zoneChart.js
index bc30d51..877567e 100644
--- a/ui/scripts/ui-custom/zoneChart.js
+++ b/ui/scripts/ui-custom/zoneChart.js
@@ -24,7 +24,7 @@
          */
         var viewAllButton = function(args) {
             var $viewAll = $('<div>').addClass('button view-all');
-            var $label = $('<span>').addClass('view-all-label').html(args.label ? args.label
: 'label.view.all');
+            var $label = $('<span>').addClass('view-all-label').html(args.label ? args.label
: _l('label.view.all'));
             var $browser = args.$browser;
             var action = args.action;
             // Launch a list view
@@ -166,13 +166,13 @@
                     var $label = $('<span>').addClass('label');
 
                     $li.addClass(id);
-                    $label.html(resource.label);
+                    $label.html(_l(resource.label));
                     $label.appendTo($li);
 
                     // View all
                     if (resource.viewAll) {
                         viewAllButton($.extend(resource.viewAll, {
-                            title: resource.label,
+                            title: _l(resource.label),
                             $browser: $browser,
                             context: context
                         })).appendTo($li);


Mime
View raw message