You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2014/03/20 18:58:13 UTC

git commit: updated refs/heads/master to 7008f27

Repository: cloudstack
Updated Branches:
  refs/heads/master 9a615ee7b -> 7008f2713


UI: Applied localization function to labels on Zone Chart page

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


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

Branch: refs/heads/master
Commit: 7008f2713ba74d586bf7d501802d32695a23ba32
Parents: 9a615ee
Author: Mihaela Stoica <mi...@citrix.com>
Authored: Thu Mar 20 14:02:10 2014 +0000
Committer: Brian Federle <br...@citrix.com>
Committed: Thu Mar 20 10:57:06 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/7008f271/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);