Started working on dev pages.

pull/763/head
Fredrik Jönsson 2015-02-10 11:31:25 +01:00
parent c97cd1bd10
commit 0e9214ccea
4 changed files with 25 additions and 7 deletions

View File

@ -106,6 +106,7 @@ var DynRegRootView = Backbone.View.extend({
render:function() {
$(this.el).html($('#tmpl-dynreg').html());
$(this.el).i18n();
return this;
},
@ -527,6 +528,7 @@ var DynRegEditView = Backbone.View.extend({
});
$(this.el).i18n();
return this;
}

View File

@ -198,6 +198,14 @@
"scopes": "Scopes",
"statistics": "Statistics"
},
"dynreg": {
"client-id-placeholder": "Enter Client ID",
"edit-existing": "Edit an existing client",
"edit-existing-help": "Paste in your client ID and registration access token to access the client.",
"new-client": "Register a new client",
"or": " - OR - ",
"regtoken-placeholder": "Enter Registration Access Token"
},
"grant": {
"more-info": "more information",
"refresh": "Refresh",

View File

@ -101,7 +101,7 @@
"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.",
"registration-token-error": "Något problem uppstod när denna klients registrerings-access-token skulle hämtas.",
"request-object-signing-algorithm": "Signeringsalgoritm för request-object ",
"request-uri": "Request-länkar",
"require-auth-time": "Kräv authentication-time",
@ -201,6 +201,14 @@
"scopes": "Scope",
"statistics": "Statistik"
},
"dynreg": {
"client-id-placeholder": "Mata in klient-ID",
"edit-existing": "Ändra en befintlig klient",
"edit-existing-help": "Klistra in ditt klient-ID och registrerings-access-token för att komma åt klienten.",
"new-client": "Registrera en ny klient",
"or": " - ELLER - ",
"regtoken-placeholder": "Mata in registration-access-token"
},
"grant": {
"refresh": "Uppdatera",
"grant-table": {

View File

@ -21,16 +21,16 @@
<div class="row-fluid">
<div class="span5 well">
<button class="btn btn-large" id="newreg">Register a new client</button>
<button class="btn btn-large" id="newreg" data-i18n="dynreg.new-client">Register a new client</button>
</div>
<div class="span2 text-center">
<strong> - OR - </strong>
<strong><span data-i18n="dynreg.or"> - OR - </span></strong>
</div>
<div class="span5 well">
<input type="text" id="clientId" placeholder="Enter Client ID">
<input type="text" id="regtoken" placeholder="Enter Registration Access Token">
<button class="btn btn-large" id="editreg">Edit an existing client</button>
<span class="help-block>Paste in your client ID and registration access token to access the client.</span>
<input type="text" id="clientId" placeholder="Enter Client ID" data-i18n="[placeholder]dynreg.client-id-placeholder">
<input type="text" id="regtoken" placeholder="Enter Registration Access Token" data-i18n="[placeholder]dynreg.regtoken-placeholder">
<button class="btn btn-large" id="editreg" data-i18n="dynreg.edit-existing">Edit an existing client</button>
<span class="help-block" data-i18n="dynreg.edit-existing-help">Paste in your client ID and registration access token to access the client.</span>
</div>
</script>