Translate loading popyps in client page.
parent
7d24490f30
commit
91ac730129
|
@ -438,10 +438,11 @@ var ClientListView = Backbone.View.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#loadingbox').sheet('show');
|
$('#loadingbox').sheet('show');
|
||||||
$('#loading').html('<span class="label" id="loading-clients">Clients</span> ' +
|
$('#loading').html(
|
||||||
'<span class="label" id="loading-whitelist">Whitelist</span> ' +
|
'<span class="label" id="loading-clients">' + $.t("common.clients") + '</span>' +
|
||||||
'<span class="label" id="loading-scopes">Scopes</span> ' +
|
'<span class="label" id="loading-whitelist">' + $.t("whitelist.whitelist") + '</span> ' +
|
||||||
'<span class="label" id="loading-stats">Statistics</span> '
|
'<span class="label" id="loading-scopes">' + $.t("common.scopes") + '</span> ' +
|
||||||
|
'<span class="label" id="loading-stats">' + $.t("common.statistics") + '</span> '
|
||||||
);
|
);
|
||||||
|
|
||||||
$.when(this.model.fetchIfNeeded({success:function(e) {$('#loading-clients').addClass('label-success');}}),
|
$.when(this.model.fetchIfNeeded({success:function(e) {$('#loading-clients').addClass('label-success');}}),
|
||||||
|
@ -548,10 +549,11 @@ var ClientListView = Backbone.View.extend({
|
||||||
refreshTable:function(e) {
|
refreshTable:function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$('#loadingbox').sheet('show');
|
$('#loadingbox').sheet('show');
|
||||||
$('#loading').html('<span class="label" id="loading-clients">Clients</span> ' +
|
$('#loading').html(
|
||||||
'<span class="label" id="loading-whitelist">Whitelist</span> ' +
|
'<span class="label" id="loading-clients">' + $.t("common.clients") + '</span>' +
|
||||||
'<span class="label" id="loading-scopes">Scopes</span> ' +
|
'<span class="label" id="loading-whitelist">' + $.t("whitelist.whitelist") + '</span> ' +
|
||||||
'<span class="label" id="loading-stats">Statistics</span> '
|
'<span class="label" id="loading-scopes">' + $.t("common.scopes") + '</span> ' +
|
||||||
|
'<span class="label" id="loading-stats">' + $.t("common.statistics") + '</span> '
|
||||||
);
|
);
|
||||||
|
|
||||||
var _self = this;
|
var _self = this;
|
||||||
|
@ -649,7 +651,7 @@ var ClientFormView = Backbone.View.extend({
|
||||||
if (this.model.get('id') == null) {
|
if (this.model.get('id') == null) {
|
||||||
// only show the box if this is a new client, otherwise the box is already showing
|
// only show the box if this is a new client, otherwise the box is already showing
|
||||||
$('#loadingbox').sheet('show');
|
$('#loadingbox').sheet('show');
|
||||||
$('#loading').html('<span class="label" id="loading-scopes">Scopes</span> ');
|
$('#loading').html('<span class="label" id="loading-scopes">' + $.t("common.scopes") + '</span> ');
|
||||||
}
|
}
|
||||||
|
|
||||||
$.when(this.options.systemScopeList.fetchIfNeeded({success:function(e) {$('#loading-scopes').addClass('label-success');}}))
|
$.when(this.options.systemScopeList.fetchIfNeeded({success:function(e) {$('#loading-scopes').addClass('label-success');}}))
|
||||||
|
|
|
@ -92,7 +92,8 @@
|
||||||
"information": "Information",
|
"information": "Information",
|
||||||
"revoke": "Revoke",
|
"revoke": "Revoke",
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"scopes": "Scopes"
|
"scopes": "Scopes",
|
||||||
|
"statistics": "Statistics"
|
||||||
},
|
},
|
||||||
"grant": {
|
"grant": {
|
||||||
"more-info": "more information",
|
"more-info": "more information",
|
||||||
|
|
|
@ -93,7 +93,8 @@
|
||||||
"refresh": "Uppdatera",
|
"refresh": "Uppdatera",
|
||||||
"revoke": "Återkalla",
|
"revoke": "Återkalla",
|
||||||
"save": "Spara",
|
"save": "Spara",
|
||||||
"scopes": "Scope"
|
"scopes": "Scope",
|
||||||
|
"statistics": "Statistik"
|
||||||
},
|
},
|
||||||
"grant": {
|
"grant": {
|
||||||
"refresh": "Uppdatera",
|
"refresh": "Uppdatera",
|
||||||
|
|
Loading…
Reference in New Issue