Translate popup dialogs.
parent
97cf6854ed
commit
d42ad7a9ab
|
@ -261,7 +261,7 @@ var ClientView = Backbone.View.extend({
|
||||||
showRegistrationToken:function(e) {
|
showRegistrationToken:function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
$('#modalAlertLabel').html('Registration Access Token');
|
$('#modalAlertLabel').html($.t('client.client-form.registration-access-token'));
|
||||||
|
|
||||||
var token = new RegistrationTokenModel({clientId: this.model.get('clientId')});
|
var token = new RegistrationTokenModel({clientId: this.model.get('clientId')});
|
||||||
|
|
||||||
|
@ -275,14 +275,14 @@ var ClientView = Backbone.View.extend({
|
||||||
$('#modalAlert .modal-body').html(_self.registrationTokenTemplate(savedModel));
|
$('#modalAlert .modal-body').html(_self.registrationTokenTemplate(savedModel));
|
||||||
|
|
||||||
$('#modalAlert .modal-body #rotate-token').click(function(e) {
|
$('#modalAlert .modal-body #rotate-token').click(function(e) {
|
||||||
if (confirm("Are you sure you want to rotate this client's registration token?")) {
|
if (confirm($.t('client.client-form.rotate-registration-token-confirm'))) {
|
||||||
token.save(null, {success: function() {
|
token.save(null, {success: function() {
|
||||||
console.log('token:' + token.get('value'));
|
console.log('token:' + token.get('value'));
|
||||||
$('#modalAlert .modal-body #registrationToken').val(token.get('value'));
|
$('#modalAlert .modal-body #registrationToken').val(token.get('value'));
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
$('#modalAlert .modal-body').html('There was a problem rotating the registration access token for this client.');
|
$('#modalAlert').i18n();
|
||||||
|
$('#modalAlert .modal-body').html($t('client.client-form.rotate-registration-token-error'));
|
||||||
$('#modalAlert').modal({
|
$('#modalAlert').modal({
|
||||||
'backdrop': 'static',
|
'backdrop': 'static',
|
||||||
'keyboard': true,
|
'keyboard': true,
|
||||||
|
@ -293,6 +293,7 @@ var ClientView = Backbone.View.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#modalAlert').i18n();
|
||||||
$('#modalAlert').modal({
|
$('#modalAlert').modal({
|
||||||
'backdrop': 'static',
|
'backdrop': 'static',
|
||||||
'keyboard': true,
|
'keyboard': true,
|
||||||
|
@ -301,8 +302,8 @@ var ClientView = Backbone.View.extend({
|
||||||
|
|
||||||
},
|
},
|
||||||
error:function() {
|
error:function() {
|
||||||
$('#modalAlert .modal-body').html('There was a problem loading the registration access token for this client.');
|
$('#modalAlert').i18n();
|
||||||
|
$('#modalAlert .modal-body').html($t('client.client-form.registration-token-error'));
|
||||||
$('#modalAlert').modal({
|
$('#modalAlert').modal({
|
||||||
'backdrop': 'static',
|
'backdrop': 'static',
|
||||||
'keyboard': true,
|
'keyboard': true,
|
||||||
|
@ -944,7 +945,7 @@ var ClientFormView = Backbone.View.extend({
|
||||||
this.model.save(attrs, {
|
this.model.save(attrs, {
|
||||||
success:function () {
|
success:function () {
|
||||||
|
|
||||||
$('#modalAlertLabel').html('Client Saved');
|
$('#modalAlertLabel').html($.t('client.client-form.saved.saved'));
|
||||||
|
|
||||||
var savedModel = {
|
var savedModel = {
|
||||||
clientId: _self.model.get('clientId'),
|
clientId: _self.model.get('clientId'),
|
||||||
|
@ -962,6 +963,7 @@ var ClientFormView = Backbone.View.extend({
|
||||||
$('#savedClientSecret').show();
|
$('#savedClientSecret').show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#modalAlert').i18n();
|
||||||
$('#modalAlert').modal({
|
$('#modalAlert').modal({
|
||||||
'backdrop': 'static',
|
'backdrop': 'static',
|
||||||
'keyboard': true,
|
'keyboard': true,
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
"home": "Home Page",
|
"home": "Home Page",
|
||||||
"home-help": "URL for the client's home page, will be displayed to the user",
|
"home-help": "URL for the client's home page, will be displayed to the user",
|
||||||
"hours": "hours",
|
"hours": "hours",
|
||||||
|
"id": "ID:",
|
||||||
"id-token-crypto-algorithm": "ID Token Encryption Algorithm",
|
"id-token-crypto-algorithm": "ID Token Encryption Algorithm",
|
||||||
"id-token-crypto-method": "ID Token Encryption Method",
|
"id-token-crypto-method": "ID Token Encryption Method",
|
||||||
"id-token-signing-algorithm": "ID Token Signing Algorithm",
|
"id-token-signing-algorithm": "ID Token Signing Algorithm",
|
||||||
|
@ -98,11 +99,24 @@
|
||||||
"refresh-tokens-reused": "Refresh tokens for this client are re-used",
|
"refresh-tokens-reused": "Refresh tokens for this client are re-used",
|
||||||
"refresh-tokens-no-expire": "Refresh tokens do not time out",
|
"refresh-tokens-no-expire": "Refresh tokens do not time out",
|
||||||
"registered": "Registered at",
|
"registered": "Registered at",
|
||||||
|
"registration-token": "Registration Token:",
|
||||||
|
"registration-access-token": "Registration Access Token",
|
||||||
|
"registration-token-error": "There was a problem loading the registration access token for this client.",
|
||||||
"request-object-signing-algorithm": "Request Object Signing Algorithm",
|
"request-object-signing-algorithm": "Request Object Signing Algorithm",
|
||||||
"request-uri": "Request URIs",
|
"request-uri": "Request URIs",
|
||||||
"require-auth-time": "Require Authentication Time",
|
"require-auth-time": "Require Authentication Time",
|
||||||
"require-auth-time-label": "Always require that the auth_time claim be sent in the id token",
|
"require-auth-time-label": "Always require that the auth_time claim be sent in the id token",
|
||||||
"response-types": "Response Types",
|
"response-types": "Response Types",
|
||||||
|
"rotate-registration-token": "Rotate registration token",
|
||||||
|
"rotate-registration-token-confirm": "Are you sure you want to rotate this client's registration token?",
|
||||||
|
"rotate-registration-token-error": "There was a problem rotating the registration access token for this client.",
|
||||||
|
"saved": {
|
||||||
|
"no-secret": "No client secret",
|
||||||
|
"saved": "Client Saved",
|
||||||
|
"secret": "Secret:",
|
||||||
|
"show-secret": "Show Secret",
|
||||||
|
"unchanged": "unchanged"
|
||||||
|
},
|
||||||
"seconds": "seconds",
|
"seconds": "seconds",
|
||||||
"secret-asymmetric-jwt": "Asymmetrically-signed JWT assertion",
|
"secret-asymmetric-jwt": "Asymmetrically-signed JWT assertion",
|
||||||
"secret-http": "Client Secret over HTTP Basic",
|
"secret-http": "Client Secret over HTTP Basic",
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
"home": "Hemsida",
|
"home": "Hemsida",
|
||||||
"home-help": "Länk till tjänstens hemsida. Den kommer att visas på bekräftelsesidan.",
|
"home-help": "Länk till tjänstens hemsida. Den kommer att visas på bekräftelsesidan.",
|
||||||
"hours": "timmar",
|
"hours": "timmar",
|
||||||
|
"id": "ID:",
|
||||||
"id-token-crypto-algorithm": "Krypteringsalgoritm för ID-token",
|
"id-token-crypto-algorithm": "Krypteringsalgoritm för ID-token",
|
||||||
"id-token-crypto-method": "Krypteringsmetod för ID-token",
|
"id-token-crypto-method": "Krypteringsmetod för ID-token",
|
||||||
"id-token-signing-algorithm": "Signeringsalgoritm för ID-token",
|
"id-token-signing-algorithm": "Signeringsalgoritm för ID-token",
|
||||||
|
@ -98,11 +99,24 @@
|
||||||
"refresh-tokens-reused": "Refresh-tokens återanvänds för denna klient",
|
"refresh-tokens-reused": "Refresh-tokens återanvänds för denna klient",
|
||||||
"refresh-tokens-no-expire": "Refresh-tokens har oändlig livslängd",
|
"refresh-tokens-no-expire": "Refresh-tokens har oändlig livslängd",
|
||||||
"registered": "Registrerad",
|
"registered": "Registrerad",
|
||||||
|
"registration-token": "Registerings-token:",
|
||||||
|
"registration-access-token": "Registrerings-access-token",
|
||||||
|
"registration-token-error": "Något problem uppstod när denna klients registrerings-token skulle hämtas.",
|
||||||
"request-object-signing-algorithm": "Signeringsalgoritm för request-object ",
|
"request-object-signing-algorithm": "Signeringsalgoritm för request-object ",
|
||||||
"request-uri": "Request-länkar",
|
"request-uri": "Request-länkar",
|
||||||
"require-auth-time": "Kräv authentication-time",
|
"require-auth-time": "Kräv authentication-time",
|
||||||
"require-auth-time-label": "Kräv att auth_time-claim alltid skickas med id_token",
|
"require-auth-time-label": "Kräv att auth_time-claim alltid skickas med id_token",
|
||||||
"response-types": "Svarstyper",
|
"response-types": "Svarstyper",
|
||||||
|
"rotate-registration-token": "Rotera registerings-token",
|
||||||
|
"rotate-registration-token-confirm": "Är du säker på att du vill rotera denna klients registerings-token?",
|
||||||
|
"rotate-registration-token-error": "Något problem uppstod när denna klients registrerings-token skulle roteras.",
|
||||||
|
"saved": {
|
||||||
|
"no-secret": "Ingen klienthemlighet",
|
||||||
|
"saved": "Klienten är sparad",
|
||||||
|
"secret": "Hemlighet:",
|
||||||
|
"show-secret": "Visa hemlighet",
|
||||||
|
"unchanged": "oförändrad"
|
||||||
|
},
|
||||||
"seconds": "sekunder",
|
"seconds": "sekunder",
|
||||||
"secret-asymmetric-jwt": "Asymmetriskt signerad JWT assertion",
|
"secret-asymmetric-jwt": "Asymmetriskt signerad JWT assertion",
|
||||||
"secret-http": "Klienthemlighet över HTTP Basic",
|
"secret-http": "Klienthemlighet över HTTP Basic",
|
||||||
|
|
|
@ -547,11 +547,11 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" id="reuseRefreshToken" <%-(reuseRefreshToken == true ? 'checked' : '')%>>
|
<input type="checkbox" id="reuseRefreshToken" <%-(reuseRefreshToken == true ? 'checked' : '')%>>
|
||||||
<label for="reuseRefreshToken" class="checkbox">Refresh tokens for this client are re-used</label>
|
<label for="reuseRefreshToken" class="checkbox" data-i18n="client.client-form.refresh-tokens-reused">Refresh tokens for this client are re-used</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" id="disableRefreshTokenTimeout" <%-(refreshTokenValiditySeconds == null ? 'checked' : '')%>/>
|
<input type="checkbox" id="disableRefreshTokenTimeout" <%-(refreshTokenValiditySeconds == null ? 'checked' : '')%>/>
|
||||||
<label for="disableRefreshTokenTimeout" class="checkbox">Refresh tokens do not time out</label>
|
<label for="disableRefreshTokenTimeout" class="checkbox" data-i18n="client.client-form.refresh-tokens-no-expire">Refresh tokens do not time out</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" class="" value="<%-(refreshTokenValiditySeconds == null ? '' : refreshTokenValiditySeconds)%>" id="refresh-token-timeout-time" size="16" style="width:8em;">
|
<input type="text" class="" value="<%-(refreshTokenValiditySeconds == null ? '' : refreshTokenValiditySeconds)%>" id="refresh-token-timeout-time" size="16" style="width:8em;">
|
||||||
|
@ -756,21 +756,20 @@
|
||||||
<script type="text/html" id="tmpl-client-saved">
|
<script type="text/html" id="tmpl-client-saved">
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<strong>ID:</strong> <input type="text" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- clientId %>" />
|
<strong><span data-i18n="client.client-form.id">ID:</span></strong> <input type="text" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- clientId %>" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% if (secretChanged) { %>
|
<% if (secretChanged) { %>
|
||||||
<div>
|
<div>
|
||||||
<strong>Secret:</strong> <button class="btn btn-mini" id="clientSaveShow">Show Secret</button>
|
<strong><span data-i18n="client.client-form.saved.secret">Secret:</span></strong> <button class="btn btn-mini" id="clientSaveShow" data-i18n="client.client-form.saved.show-secret">Show Secret</button>
|
||||||
<input type="text" id="savedClientSecret" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- clientSecret %>" />
|
<input type="text" id="savedClientSecret" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- clientSecret %>" />
|
||||||
</div>
|
</div>
|
||||||
<% } else if (clientSecret == null || clientSecret == '') { %>
|
<% } else if (clientSecret == null || clientSecret == '') { %>
|
||||||
<div>
|
<div>
|
||||||
<i>No client secret</i>
|
<i><span data-i18n="client.client-form.saved.no-secret">No client secret</span></i>
|
||||||
</div>
|
</div>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<div>
|
<div>
|
||||||
<strong>Secret:</strong> <i>unchanged</i>
|
<strong><span data-i18n="client.client-form.saved.secret">Secret:</span></strong> <i><span data-i18n="client.client-form.saved.unchanged">unchanged</span></i>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
@ -779,16 +778,16 @@
|
||||||
<script type="text/html" id="tmpl-client-registration-token">
|
<script type="text/html" id="tmpl-client-registration-token">
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<strong>ID:</strong> <input type="text" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- clientId %>" />
|
<strong><span data-i18n="client.client-form.id">ID:</span></strong> <input type="text" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- clientId %>" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong>Registration Token:</strong>
|
<strong><span data-i18n="client.client-form.registration-token">Registration Token:</span></strong>
|
||||||
<input type="text" id="registrationToken" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- registrationToken %>" />
|
<input type="text" id="registrationToken" readonly style="cursor: text" class="token-full input-xxlarge" value="<%- registrationToken %>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-warning" id="rotate-token"><i class="icon-retweet icon-white"></i> Rotate registration token</button>
|
<button class="btn btn-warning" id="rotate-token"><i class="icon-retweet icon-white"></i> <span data-i18n="client.client-form.rotate-registration-token">Rotate registration token</span></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue