Most of token page translated.
parent
b2d2a95a47
commit
d0b3e19279
|
@ -138,9 +138,10 @@ var ApprovedSiteListView = Backbone.View.extend({
|
|||
e.preventDefault();
|
||||
var _self = this;
|
||||
$('#loadingbox').sheet('show');
|
||||
$('#loading').html('<span class="label" id="loading-grants">' + $.t('grant.grant-table.approved-sites') + '</span> ' +
|
||||
'<span class="label" id="loading-clients">' + $.t('common.clients') + '</span> ' +
|
||||
'<span class="label" id="loading-scopes">' + $.t('common.scopes') + '</span> '
|
||||
$('#loading').html(
|
||||
'<span class="label" id="loading-grants">' + $.t('grant.grant-table.approved-sites') + '</span> ' +
|
||||
'<span class="label" id="loading-clients">' + $.t('common.clients') + '</span> ' +
|
||||
'<span class="label" id="loading-scopes">' + $.t('common.scopes') + '</span> '
|
||||
);
|
||||
|
||||
$.when(this.model.fetch({success:function(e) {$('#loading-grants').addClass('label-success');}}),
|
||||
|
|
|
@ -10,13 +10,14 @@
|
|||
"newClient": "New Client"
|
||||
},
|
||||
"common": {
|
||||
"client": "Client",
|
||||
"clients": "Clients",
|
||||
"revoke": "Revoke",
|
||||
"scopes": "Scopes"
|
||||
},
|
||||
"grant": {
|
||||
"more-info": "more information",
|
||||
"refresh": "Refresh",
|
||||
"revoke": "Revoke",
|
||||
"grant-table": {
|
||||
"active-tokens": "Number of currently active access tokens",
|
||||
"application": "Application",
|
||||
|
@ -33,5 +34,23 @@
|
|||
"whitelisted-site": "This site was whitelisted by an adminstrator",
|
||||
"whitelisted-sites": "Whitelisted Sites"
|
||||
}
|
||||
},
|
||||
"token": {
|
||||
"token-table": {
|
||||
"access-tokens": "Access Tokens",
|
||||
"associated-id": "This access token was issued with an associated ID token.",
|
||||
"associated-refresh": "This access token was issued with an associated refresh token.",
|
||||
"click-to-display": "Click to display full token value",
|
||||
"confirm": "Are you sure sure you would like to revoke this token?",
|
||||
"confirm-refresh": "Are you sure sure you would like to revoke this refresh token and its associated access tokens?",
|
||||
"expires": "Expires",
|
||||
"no-access": "There are no active access tokens.",
|
||||
"no-refresh": "There are no active refresh tokens.",
|
||||
"number-of-tokens": "Number of associated access tokens",
|
||||
"refresh-tokens": "Refresh Tokens",
|
||||
"text": "Access tokens are usually short-lived and provide clients with access to specific resources. ID Tokens are specialized access tokens to facilitate log on using OpenID Connect.",
|
||||
"text-refresh": "Refresh tokens are usually long-lived and provide clients with the ability to get new access tokens without end-user involvement.",
|
||||
"token-info": "Token Information"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -10,12 +10,14 @@
|
|||
"newClient": "Ny klient"
|
||||
},
|
||||
"common": {
|
||||
"client": "Klient",
|
||||
"clients": "Klienter",
|
||||
"refresh": "Uppdatera",
|
||||
"revoke": "Återkalla",
|
||||
"scopes": "Scope"
|
||||
},
|
||||
"grant": {
|
||||
"refresh": "Uppdatera",
|
||||
"revoke": "Återkalla",
|
||||
"grant-table": {
|
||||
"active-tokens": "Antal nu aktiva åtkomst-tokens",
|
||||
"application": "Webbplats",
|
||||
|
@ -32,5 +34,23 @@
|
|||
"whitelisted-site": "Denna webbplats är vitlistad av en administratör",
|
||||
"whitelisted-sites": "Vitlistade webbplatser"
|
||||
}
|
||||
},
|
||||
"token": {
|
||||
"token-table": {
|
||||
"access-tokens": "Access-tokens",
|
||||
"associated-id": "Denna access-token utfärdades med en tillhörande ID-token.",
|
||||
"associated-refresh": "Denna access-token utfärdades med en tillhörande refresh-token.",
|
||||
"click-to-display": "Klicka för att visa hela biljettvärdet",
|
||||
"confirm": "Är du säker på att du vill återkalla denna biljett?",
|
||||
"confirm-refresh": "Är du säker på att du vill återkalla denna refresh-token och de access-token som tillhör?",
|
||||
"expires": "Går ut",
|
||||
"no-access": "Det finns inga aktuella access-tokens.",
|
||||
"no-refresh": "Det finns inga aktiva refresh-tokens.",
|
||||
"number-of-tokens": "Antal utfärdade access-tokens",
|
||||
"refresh-tokens": "Refresh-tokens",
|
||||
"text": "Biljetter för åtkomst (access-tokens) är vanligtvis kortlivade och ger klienter tillgång till specifika resurser. ID-tokens är speciella åtkomstbiljetter för att underlätta autentisering med OpenID Connect.",
|
||||
"text-refresh": "Biljetter för förnyelse (refresh-tokens) är vanligtvis långlivade och ger klienter möjligheten att skaffa nya åtkomstbiljetter utan att involvera slutanvändaren.",
|
||||
"token-info": "Biljettinformation"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -94,13 +94,14 @@ var AccessTokenView = Backbone.View.extend({
|
|||
|
||||
$('.client-more-info-block', this.el).html(this.moreInfoTemplate({client: this.options.client.toJSON()}));
|
||||
|
||||
$(this.el).i18n();
|
||||
return this;
|
||||
},
|
||||
|
||||
deleteToken:function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (confirm("Are you sure sure you would like to revoke this token?")) {
|
||||
if (confirm($.t("token.token-table.confirm"))) {
|
||||
|
||||
var _self = this;
|
||||
|
||||
|
@ -243,6 +244,7 @@ var RefreshTokenView = Backbone.View.extend({
|
|||
|
||||
$('.client-more-info-block', this.el).html(this.moreInfoTemplate({client: this.options.client.toJSON()}));
|
||||
|
||||
$(this.el).i18n();
|
||||
return this;
|
||||
|
||||
},
|
||||
|
@ -250,7 +252,7 @@ var RefreshTokenView = Backbone.View.extend({
|
|||
deleteToken:function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (confirm("Are you sure sure you would like to revoke this refresh token and its associated access tokens?")) {
|
||||
if (confirm($.t('token.token-table.confirm-refresh'))) {
|
||||
|
||||
var _self = this;
|
||||
|
||||
|
@ -339,10 +341,11 @@ var TokenListView = Backbone.View.extend({
|
|||
}
|
||||
|
||||
$('#loadingbox').sheet('show');
|
||||
$('#loading').html('<span class="label" id="loading-access">Access Tokens</span> ' +
|
||||
'<span class="label" id="loading-refresh">Refresh Tokens</span> ' +
|
||||
'<span class="label" id="loading-clients">Clients</span> ' +
|
||||
'<span class="label" id="loading-scopes">Scopes</span> '
|
||||
$('#loading').html(
|
||||
'<span class="label" id="loading-access">' + $.t('token.token-table.access-tokens') + '</span> ' +
|
||||
'<span class="label" id="loading-refresh">' + $.t('token.token-table.refresh-tokens') + '</span> ' +
|
||||
'<span class="label" id="loading-clients">' + $.t('common.clients') + '</span> ' +
|
||||
'<span class="label" id="loading-scopes">' + $.t('common.scopes') + '</span> '
|
||||
);
|
||||
|
||||
$.when(this.model.access.fetchIfNeeded({success:function(e) {$('#loading-access').addClass('label-success');}}),
|
||||
|
@ -380,10 +383,11 @@ var TokenListView = Backbone.View.extend({
|
|||
|
||||
refreshTable:function(e) {
|
||||
$('#loadingbox').sheet('show');
|
||||
$('#loading').html('<span class="label" id="loading-access">Access Tokens</span> ' +
|
||||
'<span class="label" id="loading-refresh">Refresh Tokens</span> ' +
|
||||
'<span class="label" id="loading-clients">Clients</span> ' +
|
||||
'<span class="label" id="loading-scopes">Scopes</span> '
|
||||
$('#loading').html(
|
||||
'<span class="label" id="loading-access">' + $.t('token.token-table.access-tokens') + '</span> ' +
|
||||
'<span class="label" id="loading-refresh">' + $.t('token.token-table.refresh-tokens') + '</span> ' +
|
||||
'<span class="label" id="loading-clients">' + $.t('common.clients') + '</span> ' +
|
||||
'<span class="label" id="loading-scopes">' + $.t('common.scopes') + '</span> '
|
||||
);
|
||||
var _self = this;
|
||||
$.when(this.model.access.fetch({success:function(e) {$('#loading-access').addClass('label-success');}}),
|
||||
|
@ -496,8 +500,7 @@ var TokenListView = Backbone.View.extend({
|
|||
*/
|
||||
|
||||
this.togglePlaceholder();
|
||||
|
||||
$(this.el).i18n();
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<script type="text/html" id="tmpl-grant-table">
|
||||
|
||||
<div class="well well-small">
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> <span data-i18n="grant.refresh">Refresh</span></button>
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> <span data-i18n="common.refresh">Refresh</span></button>
|
||||
</div>
|
||||
|
||||
<div class="tabbable">
|
||||
|
@ -84,7 +84,7 @@
|
|||
</div>
|
||||
|
||||
<div class="well well-small">
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> <span data-i18n="grant.refresh">Refresh</span></button>
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> <span data-i18n="common.refresh">Refresh</span></button>
|
||||
</div>
|
||||
|
||||
</script>
|
||||
|
@ -115,12 +115,12 @@
|
|||
</div>
|
||||
|
||||
<div>
|
||||
<i data-i18n="grant.grant-table.expires">Expires:</i> <span title="<%- formattedDate.hoverTimeoutDate %>"><%- formattedDate.displayTimeoutDate %></span>
|
||||
<i data-i18n="common.expires">Expires:</i> <span title="<%- formattedDate.hoverTimeoutDate %>"><%- formattedDate.displayTimeoutDate %></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> <span data-i18n="grant.revoke">Revoke</span></button>
|
||||
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> <span data-i18n="common.revoke">Revoke</span></button>
|
||||
</td>
|
||||
|
||||
</script>
|
||||
|
|
|
@ -17,24 +17,24 @@
|
|||
|
||||
<script type="text/html" id="tmpl-token-table">
|
||||
<div class="well well-small">
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> <span data-i18n="common.refresh">Refresh</span></button>
|
||||
</div>
|
||||
|
||||
<div class="tabbable">
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a data-target="#token-access-tab" data-toggle="tab" href="#">Access Tokens <span class="label label-info" id="access-token-count">?</span></a></li>
|
||||
<li><a data-target="#token-refresh-tab" data-toggle="tab" href="#">Refresh Tokens <span class="label label-info" id="refresh-token-count">?</span></a></li>
|
||||
<li class="active"><a data-target="#token-access-tab" data-toggle="tab" href="#"><span data-i18n="token.token-table.access-tokens">Access Tokens</span> <span class="label label-info" id="access-token-count">?</span></a></li>
|
||||
<li><a data-target="#token-refresh-tab" data-toggle="tab" href="#"><span data-i18n="token.token-table.refresh-tokens">Refresh Tokens</span> <span class="label label-info" id="refresh-token-count">?</span></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
|
||||
<div class="tab-pane active" id="token-access-tab">
|
||||
|
||||
<div><p>Access tokens are usually short-lived and provide clients with access to specific resources.
|
||||
<div><p data-i18n="token.token-table.text">Access tokens are usually short-lived and provide clients with access to specific resources.
|
||||
ID Tokens are specialized access tokens to facilitate log on using OpenID Connect.</p></div>
|
||||
|
||||
<div id="access-token-table-empty" class="alert alert-info">
|
||||
<div id="access-token-table-empty" class="alert alert-info" data-i18n="token.token-table.no-access">
|
||||
There are no active access tokens.
|
||||
</div>
|
||||
|
||||
|
@ -43,9 +43,9 @@
|
|||
<table id="access-token-table" class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th>Token Information</th>
|
||||
<th>Expires</th>
|
||||
<th data-i18n="common.client">Client</th>
|
||||
<th data-i18n="token.token-table.token-info">Token Information</th>
|
||||
<th data-i18n="token.token-table.expires">Expires</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -59,9 +59,9 @@
|
|||
|
||||
<div class="tab-pane" id="token-refresh-tab">
|
||||
|
||||
<div><p>Refresh tokens are usually long-lived and provide clients with the ability to get new access tokens without end-user involvement.</p></div>
|
||||
<div><p data-i18n="token.token-table.text-refresh">Refresh tokens are usually long-lived and provide clients with the ability to get new access tokens without end-user involvement.</p></div>
|
||||
|
||||
<div id="refresh-token-table-empty" class="alert alert-info">
|
||||
<div id="refresh-token-table-empty" class="alert alert-info" data-i18n="token.token-table.no-refresh">
|
||||
There are no active refresh tokens.
|
||||
</div>
|
||||
|
||||
|
@ -70,9 +70,9 @@
|
|||
<table id="refresh-token-table" class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th>Token Information</th>
|
||||
<th>Expires</th>
|
||||
<th data-i18n="common.client">Client</th>
|
||||
<th data-i18n="token.token-table.token-info">Token Information</th>
|
||||
<th data-i18n="token.token-table.expires">Expires</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -86,7 +86,7 @@
|
|||
</div>
|
||||
|
||||
<div class="well well-small">
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> <span data-i18n="common.refresh">Refresh</span></button>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
@ -96,18 +96,18 @@
|
|||
<div class="client-more-info-block"></div>
|
||||
<% if (token.refreshTokenId != null) { %>
|
||||
<br />
|
||||
<span class="label label-important" title="This access token was issued with an associated refresh token.">+ <i class="icon-time icon-white"></i> Refresh</span>
|
||||
<span class="label label-important" title="This access token was issued with an associated refresh token." data-i18n="[title]token.token-table.associated-refresh">+ <i class="icon-time icon-white"></i> Refresh</span>
|
||||
<% } %>
|
||||
<% if (token.idTokenId != null) { %>
|
||||
<br />
|
||||
<span class="label label-success" title="This access token was issued with an associated ID token.">+ <i class="icon-user icon-white"></i> ID</span>
|
||||
<span class="label label-success" title="This access token was issued with an associated ID token." data-i18n="[title]token.token-table.associated-refresh">+ <i class="icon-user icon-white"></i> ID</span>
|
||||
<% } %>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="token-value">
|
||||
<code class="token-substring" style="cursor: pointer" title="Click to display full token value"><%- token.value.substr(0,27) %> ...</code>
|
||||
<code class="token-substring" style="cursor: pointer" data-i18n="[title]token.token-table.click-to-display" title="Click to display full token value"><%- token.value.substr(0,27) %> ...</code>
|
||||
<input type="text" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- token.value %>" />
|
||||
</div>
|
||||
<div class="scope-list"></div>
|
||||
|
@ -118,7 +118,7 @@
|
|||
</td>
|
||||
|
||||
<td>
|
||||
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> Revoke</button>
|
||||
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> <span data-i18n="common.revoke">Revoke</span></button>
|
||||
</td>
|
||||
|
||||
</script>
|
||||
|
@ -127,12 +127,12 @@
|
|||
<td>
|
||||
<span title="<%- client.clientId %>"><%- client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
|
||||
<div class="client-more-info-block"></div>
|
||||
<span class="label label-info" title="Number of associated access tokens"><%- accessTokenCount %></span>
|
||||
<span class="label label-info" title="Number of associated access tokens" data-i18n="[title]token.token-table.number-of-tokens"><%- accessTokenCount %></span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="token-value">
|
||||
<code class="token-substring" style="cursor: pointer" title="Click to display full token value"><%- token.value.substr(0,27) %> ...</code>
|
||||
<code class="token-substring" style="cursor: pointer" data-i18n="[title]token.token-table.click-to-display" title="Click to display full token value"><%- token.value.substr(0,27) %> ...</code>
|
||||
<input type="text" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- token.value %>" />
|
||||
</div>
|
||||
<div class="scope-list"></div>
|
||||
|
@ -143,7 +143,7 @@
|
|||
</td>
|
||||
|
||||
<td>
|
||||
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> Revoke</button>
|
||||
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> <span data-i18n="common.revoke">Revoke</span></button>
|
||||
</td>
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue