mirror of https://github.com/apache/cloudstack.git
UI: Applied localization function to labels on Zone Chart page
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
c09bb900c7
commit
0d897f65a2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue