From 644344a6e42039ab650a7582df7c51ce34e359e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20J=C3=B6nsson?= Date: Wed, 4 Feb 2015 16:10:11 +0100 Subject: [PATCH] Refactorize, remove text attribute from messages so untranslated labels are easily identified. --- .../src/main/resources/messages_en.properties | 1 + .../src/main/resources/messages_sv.properties | 1 + .../main/webapp/WEB-INF/tags/aboutContent.tag | 4 ++-- .../webapp/WEB-INF/tags/contactContent.tag | 4 ++-- .../main/webapp/WEB-INF/tags/copyright.tag | 2 +- .../webapp/WEB-INF/tags/landingPageAbout.tag | 6 +++--- .../WEB-INF/tags/landingPageContact.tag | 4 ++-- .../webapp/WEB-INF/tags/landingPageStats.tag | 4 ++-- .../WEB-INF/tags/landingPageWelcome.tag | 4 ++-- .../main/webapp/WEB-INF/tags/statsContent.tag | 2 +- .../src/main/webapp/WEB-INF/tags/topbar.tag | 20 +++++++++---------- 11 files changed, 27 insertions(+), 25 deletions(-) diff --git a/openid-connect-server-webapp/src/main/resources/messages_en.properties b/openid-connect-server-webapp/src/main/resources/messages_en.properties index fd166f87c..172d8c034 100644 --- a/openid-connect-server-webapp/src/main/resources/messages_en.properties +++ b/openid-connect-server-webapp/src/main/resources/messages_en.properties @@ -51,5 +51,6 @@ sidebar.administrative.system_scopes=System Scopes sidebar.personal.approved_sites=Manage Approved Sites sidebar.personal.active_tokens=Manage Active Tokens sidebar.personal.profile_information=View Profile Information +sidebar.developer=Developer sidebar.developer.client_registration=Self-service client registration sidebar.developer.resource_registration=Self-service protected resource registration \ No newline at end of file diff --git a/openid-connect-server-webapp/src/main/resources/messages_sv.properties b/openid-connect-server-webapp/src/main/resources/messages_sv.properties index bd6d23e38..1dd78a561 100644 --- a/openid-connect-server-webapp/src/main/resources/messages_sv.properties +++ b/openid-connect-server-webapp/src/main/resources/messages_sv.properties @@ -53,5 +53,6 @@ sidebar.administrative.system_scopes=System-scope sidebar.personal.approved_sites=Hantera godkända platser sidebar.personal.active_tokens=Hantera aktiva biljetter sidebar.personal.profile_information=Visa profilinformation +sidebar.developer=Utvecklare sidebar.developer.client_registration=Self-service klientregistering sidebar.developer.resource_registration=Self-service registrering av skyddad resurs \ No newline at end of file diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/aboutContent.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/aboutContent.tag index da7f1f66d..4d4ca8bb0 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/aboutContent.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/aboutContent.tag @@ -1,5 +1,5 @@ <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> -

+

- +

\ No newline at end of file diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/contactContent.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/contactContent.tag index 8518291d7..4f978c4d3 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/contactContent.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/contactContent.tag @@ -1,5 +1,5 @@ <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> -

+

- +

diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/copyright.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/copyright.tag index 898b992e0..f15cab94d 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/copyright.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/copyright.tag @@ -1,2 +1,2 @@ <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> - + diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageAbout.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageAbout.tag index eb5a5e634..dd241669a 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageAbout.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageAbout.tag @@ -1,6 +1,6 @@ <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> -

+

-

+

-

»

+

»

diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageContact.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageContact.tag index 77960df92..3692584f4 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageContact.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageContact.tag @@ -1,5 +1,5 @@ <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> -

+

- +

diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageStats.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageStats.tag index 085aafcf2..692cfcb02 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageStats.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageStats.tag @@ -1,7 +1,7 @@ <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> -

+

-

+

There have been ? user diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageWelcome.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageWelcome.tag index fc35394cb..5a4a187dd 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageWelcome.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/landingPageWelcome.tag @@ -3,7 +3,7 @@

-

-

+

+

\ No newline at end of file diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/statsContent.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/statsContent.tag index c6b42fceb..0d3ccc3a0 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/statsContent.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/statsContent.tag @@ -1,5 +1,5 @@ <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> -

+

There have been ${statsSummary["userCount"]} user${statsSummary["userCount"] == 1 ? "" : "s"} diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/topbar.tag b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/topbar.tag index 5891648ce..79432ec0b 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/topbar.tag +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/tags/topbar.tag @@ -40,34 +40,34 @@