Repository: cloudstack Updated Branches: refs/heads/master 9a615ee7b -> 7008f2713
UI: Applied localization function to labels on Zone Chart page Signed-off-by: Mihaela Stoica <[email protected]> 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 <[email protected]> Authored: Thu Mar 20 14:02:10 2014 +0000 Committer: Brian Federle <[email protected]> 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);
