Translate page titles.

pull/763/head
Fredrik Jönsson 2015-02-11 11:50:08 +01:00
parent bd38e43f5a
commit 1801225528
3 changed files with 83 additions and 65 deletions

View File

@ -500,8 +500,8 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Clients", href:"manage/#admin/clients"} {text:$.t('client.manage'), href:"manage/#admin/clients"}
]); ]);
this.updateSidebar('admin/clients'); this.updateSidebar('admin/clients');
@ -511,7 +511,7 @@ var AppRouter = Backbone.Router.extend({
view.load(function() { view.load(function() {
$('#content').html(view.render().el); $('#content').html(view.render().el);
view.delegateEvents(); view.delegateEvents();
setPageTitle("Manage Clients"); setPageTitle($.t('client.manage'));
}); });
}, },
@ -525,9 +525,9 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Clients", href:"manage/#admin/clients"}, {text:$.t('client.manage'), href:"manage/#admin/clients"},
{text:"New", href:""} {text:$.t('client.client-form.new'), href:""}
]); ]);
this.updateSidebar('admin/clients'); this.updateSidebar('admin/clients');
@ -573,9 +573,9 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Clients", href:"manage/#admin/clients"}, {text:$.t('client.manage'), href:"manage/#admin/clients"},
{text:"Edit", href:"manage/#admin/client/" + id} {text:$.t('client.client-form.edit'), href:"manage/#admin/client/" + id}
]); ]);
this.updateSidebar('admin/clients'); this.updateSidebar('admin/clients');
@ -647,8 +647,8 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Whitelisted Sites", href:"manage/#admin/whitelists"} {text:$.t('whitelist.manage'), href:"manage/#admin/whitelists"}
]); ]);
var view = new WhiteListListView({model:this.whiteListList, clientList: this.clientList, systemScopeList: this.systemScopeList}); var view = new WhiteListListView({model:this.whiteListList, clientList: this.clientList, systemScopeList: this.systemScopeList});
@ -657,7 +657,7 @@ var AppRouter = Backbone.Router.extend({
function() { function() {
$('#content').html(view.render().el); $('#content').html(view.render().el);
view.delegateEvents(); view.delegateEvents();
setPageTitle("Manage Whitelists"); setPageTitle($.t('whitelist.manage'));
} }
); );
@ -680,9 +680,9 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Whitelisted Sites", href:"manage/#admin/whitelists"}, {text:$.t('whitelist.manage'), href:"manage/#admin/whitelists"},
{text:"Manage Whitelisted Sites", href:"manage/#admin/whitelist/new/" + cid} {text:$.t('whitelist.new'), href:"manage/#admin/whitelist/new/" + cid}
]); ]);
var whiteList = new WhiteListModel(); var whiteList = new WhiteListModel();
@ -693,7 +693,7 @@ var AppRouter = Backbone.Router.extend({
this.whiteListFormView = new WhiteListFormView({model: whiteList, client: client, systemScopeList: this.systemScopeList}); this.whiteListFormView = new WhiteListFormView({model: whiteList, client: client, systemScopeList: this.systemScopeList});
$('#content').html(this.whiteListFormView.render().el); $('#content').html(this.whiteListFormView.render().el);
setPageTitle("Create New Whitelist"); setPageTitle($.t('whitelist.new'));
} else { } else {
console.log('ERROR: no client found for ' + cid); console.log('ERROR: no client found for ' + cid);
} }
@ -710,9 +710,9 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Whitelisted Sites", href:"manage/#admin/whitelists"}, {text:$.t('whitelist.manage'), href:"manage/#admin/whitelists"},
{text:"Manage Whitelisted Sites", href:"manage/#admin/whitelist/" + id} {text:$.t('whitelist.edit'), href:"manage/#admin/whitelist/" + id}
]); ]);
this.updateSidebar('admin/whitelists'); this.updateSidebar('admin/whitelists');
@ -738,8 +738,8 @@ var AppRouter = Backbone.Router.extend({
approvedSites:function() { approvedSites:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Approved Sites", href:"manage/#user/approve"} {text:$.t('grant.manage-approved-sites'), href:"manage/#user/approve"}
]); ]);
this.updateSidebar('user/approved'); this.updateSidebar('user/approved');
@ -758,8 +758,8 @@ var AppRouter = Backbone.Router.extend({
tokens:function() { tokens:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Active Tokens", href:"manage/#user/tokens"} {text:$.t('token.manage'), href:"manage/#user/tokens"}
]); ]);
this.updateSidebar('user/tokens'); this.updateSidebar('user/tokens');
@ -778,7 +778,7 @@ var AppRouter = Backbone.Router.extend({
notImplemented:function(){ notImplemented:function(){
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""} {text:$.t('admin.home'), href:""}
]); ]);
this.updateSidebar('none'); this.updateSidebar('none');
@ -795,8 +795,8 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage Blacklisted Sites", href:"manage/#admin/blacklist"} {text:$.t('admin.manage-blacklist'), href:"manage/#admin/blacklist"}
]); ]);
this.updateSidebar('admin/blacklist'); this.updateSidebar('admin/blacklist');
@ -820,8 +820,8 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage System Scopes", href:"manage/#admin/scope"} {text:$.t('scope.manage'), href:"manage/#admin/scope"}
]); ]);
this.updateSidebar('admin/scope'); this.updateSidebar('admin/scope');
@ -831,7 +831,7 @@ var AppRouter = Backbone.Router.extend({
view.load(function() { view.load(function() {
$('#content').html(view.render().el); $('#content').html(view.render().el);
view.delegateEvents(); view.delegateEvents();
setPageTitle("Manage System Scopes"); setPageTitle($.t('scope.manage'));
}); });
}, },
@ -845,9 +845,9 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage System Scopes", href:"manage/#admin/scope"}, {text:$.t('scope.manage'), href:"manage/#admin/scope"},
{text:"New", href:"manage/#admin/scope/new"} {text:$.t('scope.system-scope-form.new'), href:"manage/#admin/scope/new"}
]); ]);
this.updateSidebar('admin/scope'); this.updateSidebar('admin/scope');
@ -856,7 +856,7 @@ var AppRouter = Backbone.Router.extend({
this.systemScopeFormView = new SystemScopeFormView({model:scope}); this.systemScopeFormView = new SystemScopeFormView({model:scope});
$('#content').html(this.systemScopeFormView.render().el); $('#content').html(this.systemScopeFormView.render().el);
setPageTitle("New System Scope"); setPageTitle($.t('scope.system-scope-form.new'));
}, },
@ -869,9 +869,9 @@ var AppRouter = Backbone.Router.extend({
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Manage System Scopes", href:"manage/#admin/scope"}, {text:$.t('scope.manage'), href:"manage/#admin/scope"},
{text:"Edit", href:"manage/#admin/scope/" + sid} {text:$.t('scope.system-scope-form.edit'), href:"manage/#admin/scope/" + sid}
]); ]);
this.updateSidebar('admin/scope'); this.updateSidebar('admin/scope');
@ -880,15 +880,15 @@ var AppRouter = Backbone.Router.extend({
this.systemScopeFormView = new SystemScopeFormView({model:scope}); this.systemScopeFormView = new SystemScopeFormView({model:scope});
$('#content').html(this.systemScopeFormView.render().el); $('#content').html(this.systemScopeFormView.render().el);
setPageTitle("Edit System Scope"); setPageTitle($.t('scope.system-scope-form.edit'));
}, },
dynReg:function() { dynReg:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Client Registration", href:"manage/#dev/dynreg"} {text:$.t('admin.self-service-client'), href:"manage/#dev/dynreg"}
]); ]);
var view = new DynRegRootView({systemScopeList: this.systemScopeList}); var view = new DynRegRootView({systemScopeList: this.systemScopeList});
@ -898,7 +898,7 @@ var AppRouter = Backbone.Router.extend({
view.load(function() { view.load(function() {
$('#content').html(view.render().el); $('#content').html(view.render().el);
setPageTitle("Self-service Client Registration"); setPageTitle($.t('admin.self-service-client'));
}); });
}, },
@ -906,9 +906,9 @@ var AppRouter = Backbone.Router.extend({
newDynReg:function() { newDynReg:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Client Registration", href:"manage/#dev/dynreg"}, {text:$.t('admin.self-service-client'), href:"manage/#dev/dynreg"},
{text:"New", href:"manage/#dev/dynreg/new"} {text:$.t('dynreg.new-client'), href:"manage/#dev/dynreg/new"}
]); ]);
this.updateSidebar('dev/dynreg'); this.updateSidebar('dev/dynreg');
@ -946,9 +946,9 @@ var AppRouter = Backbone.Router.extend({
editDynReg:function() { editDynReg:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Client Registration", href:"manage/#dev/dynreg"}, {text:$.t('admin.self-service-client'), href:"manage/#dev/dynreg"},
{text:"Edit", href:"manage/#dev/dynreg/edit"} {text:$.t('dynreg.edit-existing'), href:"manage/#dev/dynreg/edit"}
]); ]);
this.updateSidebar('dev/dynreg'); this.updateSidebar('dev/dynreg');
@ -960,8 +960,8 @@ var AppRouter = Backbone.Router.extend({
resReg:function() { resReg:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Protected Resource Registration", href:"manage/#dev/resource"} {text:$.t('admin.self-service-resource'), href:"manage/#dev/resource"}
]); ]);
this.updateSidebar('dev/resource'); this.updateSidebar('dev/resource');
@ -970,7 +970,7 @@ var AppRouter = Backbone.Router.extend({
view.load(function() { view.load(function() {
$('#content').html(view.render().el); $('#content').html(view.render().el);
setPageTitle("Self-service Protected Resource Registration"); setPageTitle($.t('admin.self-service-resource'));
}); });
}, },
@ -978,9 +978,9 @@ var AppRouter = Backbone.Router.extend({
newResReg:function() { newResReg:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Protected Resource Registration", href:"manage/#dev/resource"}, {text:$.t('admin.self-service-resource'), href:"manage/#dev/resource"},
{text:"New", href:"manage/#dev/resource/new"} {text:$.t('rsreg.new'), href:"manage/#dev/resource/new"}
]); ]);
this.updateSidebar('dev/resource'); this.updateSidebar('dev/resource');
@ -1004,7 +1004,7 @@ var AppRouter = Backbone.Router.extend({
$('#content').html(view.render().el); $('#content').html(view.render().el);
view.delegateEvents(); view.delegateEvents();
setPageTitle($.t('rsreg.new-resource')); setPageTitle($.t('rsreg.new'));
}); });
@ -1013,22 +1013,22 @@ var AppRouter = Backbone.Router.extend({
editResReg:function() { editResReg:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Protected Resource Registration", href:"manage/#dev/resource"}, {text:$.t('admin.self-service-resource'), href:"manage/#dev/resource"},
{text:"Edit", href:"manage/#dev/resource/edit"} {text:$.t('rsreg.edit'), href:"manage/#dev/resource/edit"}
]); ]);
this.updateSidebar('dev/resource'); this.updateSidebar('dev/resource');
setPageTitle($.t('rsreg.edit-existing')); setPageTitle($.t('rsreg.edit'));
// note that this doesn't actually load the client, that's supposed to happen elsewhere... // note that this doesn't actually load the client, that's supposed to happen elsewhere...
}, },
profile:function() { profile:function() {
this.breadCrumbView.collection.reset(); this.breadCrumbView.collection.reset();
this.breadCrumbView.collection.add([ this.breadCrumbView.collection.add([
{text:"Home", href:""}, {text:$.t('admin.home'), href:""},
{text:"Profile", href:"manage/#user/profile"} {text:$.t('admin.user-profile.show'), href:"manage/#user/profile"}
]); ]);
this.updateSidebar('user/profile'); this.updateSidebar('user/profile');
@ -1036,7 +1036,7 @@ var AppRouter = Backbone.Router.extend({
this.userProfileView = new UserProfileView({model: getUserInfo()}); this.userProfileView = new UserProfileView({model: getUserInfo()});
$('#content').html(this.userProfileView.render().el); $('#content').html(this.userProfileView.render().el);
setPageTitle("View User Profile"); setPageTitle($.t('admin.user-profile.show'));
}, },

View File

@ -4,12 +4,16 @@
"blacklist-form": { "blacklist-form": {
"blacklisted-uris": "Blacklisted URIs" "blacklisted-uris": "Blacklisted URIs"
}, },
"home": "Home",
"list-widget": { "list-widget": {
"empty": "There are no items in this list." "empty": "There are no items in this list."
}, },
"manage-blacklist": "Manage Blacklist", "manage-blacklist": "Manage Blacklisted Clients",
"self-service-client": "Self-service Client Registration",
"self-service-resource": "Self-service Protected Resource Registration",
"user-profile": { "user-profile": {
"claim": "Claim name:", "claim": "Claim name:",
"show": "View User Profile",
"text": "Your user profile has the following information:", "text": "Your user profile has the following information:",
"value": "Claim value:" "value": "Claim value:"
} }
@ -176,6 +180,7 @@
"search": "Search...", "search": "Search...",
"whitelist": "Whitelist" "whitelist": "Whitelist"
}, },
"manage": "Manage Clients",
"more-info": { "more-info": {
"contacts": "Administrative Contacts:", "contacts": "Administrative Contacts:",
"home": "Home Page:", "home": "Home Page:",
@ -196,6 +201,7 @@
"edit": "Edit", "edit": "Edit",
"expires": "Expires:", "expires": "Expires:",
"information": "Information", "information": "Information",
"new": "New",
"revoke": "Revoke", "revoke": "Revoke",
"save": "Save", "save": "Save",
"scopes": "Scopes", "scopes": "Scopes",
@ -247,6 +253,7 @@
"will-be-generated": "Will be generated" "will-be-generated": "Will be generated"
}, },
"scope": { "scope": {
"manage": "Manage System Scopes",
"scope-list": { "scope-list": {
"no-scopes": "NO SCOPES" "no-scopes": "NO SCOPES"
}, },
@ -277,7 +284,7 @@
} }
}, },
"token": { "token": {
"manage": "Administrera aktiva tokens", "manage": "Manage Active Tokens",
"token-table": { "token-table": {
"access-tokens": "Access Tokens", "access-tokens": "Access Tokens",
"associated-id": "This access token was issued with an associated ID token.", "associated-id": "This access token was issued with an associated ID token.",
@ -298,6 +305,8 @@
"whitelist": { "whitelist": {
"confirm": "Are you sure you want to delete this whitelist entry?", "confirm": "Are you sure you want to delete this whitelist entry?",
"edit": "Edit Whitelist", "edit": "Edit Whitelist",
"manage": "Manage Whitelisted Sites",
"new": "New Whitelist",
"whitelist": "Whitelist", "whitelist": "Whitelist",
"whitelist-form": { "whitelist-form": {
"allowed-scopes": "Allowed Scopes", "allowed-scopes": "Allowed Scopes",

View File

@ -4,12 +4,16 @@
"blacklist-form": { "blacklist-form": {
"blacklisted-uris": "Svarlistade länkar" "blacklisted-uris": "Svarlistade länkar"
}, },
"manage-blacklist": "Administrera svartlista", "home": "Hem",
"manage-blacklist": "Administrera svartlistade klienter",
"list-widget": { "list-widget": {
"empty": "Det finns inget innehåll i denna lista." "empty": "Det finns inget innehåll i denna lista."
}, },
"self-service-client": "Self-service klientregistrering",
"self-service-resource": "Self-service registrering av skyddad resurs",
"user-profile": { "user-profile": {
"claim": "Claim-namn:", "claim": "Claim-namn:",
"show": "Visa profilinformation",
"text": "Din användarprofil innehåller följande information:", "text": "Din användarprofil innehåller följande information:",
"value": "Claim-värde:" "value": "Claim-värde:"
} }
@ -178,6 +182,7 @@
"search": "Sök...", "search": "Sök...",
"whitelist": "Vitlista" "whitelist": "Vitlista"
}, },
"manage": "Administrera klienter",
"more-info": { "more-info": {
"contacts": "Administrativ kontakt:", "contacts": "Administrativ kontakt:",
"home": "Webbplats:", "home": "Webbplats:",
@ -198,6 +203,7 @@
"edit": "Ändra", "edit": "Ändra",
"expires": "Går ut:", "expires": "Går ut:",
"information": "Information", "information": "Information",
"new": "Ny",
"refresh": "Uppdatera", "refresh": "Uppdatera",
"revoke": "Återkalla", "revoke": "Återkalla",
"save": "Spara", "save": "Spara",
@ -217,7 +223,7 @@
"will-be-generated": "Kommer att genereras" "will-be-generated": "Kommer att genereras"
}, },
"grant": { "grant": {
"manage-approved-sites": "Manage Approved Sites", "manage-approved-sites": "Administrera godkända webbplatser",
"refresh": "Uppdatera", "refresh": "Uppdatera",
"grant-table": { "grant-table": {
"active-tokens": "Antal nu aktiva åtkomst-tokens", "active-tokens": "Antal nu aktiva åtkomst-tokens",
@ -247,6 +253,7 @@
"regtoken-placeholder": "Mata in registration-access-token" "regtoken-placeholder": "Mata in registration-access-token"
}, },
"scope": { "scope": {
"manage": "Administrera system-scope",
"scope-list": { "scope-list": {
"no-scopes": "INGA SCOPE" "no-scopes": "INGA SCOPE"
}, },
@ -276,7 +283,7 @@
} }
}, },
"token": { "token": {
"manage-tokens": "Manage Active Tokens", "manage": "Administrera aktiva tokens",
"token-table": { "token-table": {
"access-tokens": "Access-token", "access-tokens": "Access-token",
"associated-id": "Denna access-token utfärdades med en tillhörande ID-token.", "associated-id": "Denna access-token utfärdades med en tillhörande ID-token.",
@ -296,6 +303,8 @@
"whitelist": { "whitelist": {
"confirm": "Är du säker på att du vill ta bort den här klienten ifrån vitlistan?", "confirm": "Är du säker på att du vill ta bort den här klienten ifrån vitlistan?",
"edit": "Redigera vitlista", "edit": "Redigera vitlista",
"manage": "Administrera vitlistade webbplatser",
"new": "Ny vitlista",
"whitelist": "Vitlista", "whitelist": "Vitlista",
"whitelist-form": { "whitelist-form": {
"allowed-scopes": "Tillåtna scope", "allowed-scopes": "Tillåtna scope",