From 502150c19607948d1c563bc68b9e5135ac07cc04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20J=C3=B6nsson?= Date: Thu, 5 Feb 2015 00:05:00 +0100 Subject: [PATCH] Translate approval page. --- .../src/main/resources/messages_en.properties | 28 +++++++- .../src/main/resources/messages_sv.properties | 28 +++++++- .../src/main/webapp/WEB-INF/views/approve.jsp | 65 ++++++++++--------- 3 files changed, 87 insertions(+), 34 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 f365a65fd..02bc03ef8 100644 --- a/openid-connect-server-webapp/src/main/resources/messages_en.properties +++ b/openid-connect-server-webapp/src/main/resources/messages_en.properties @@ -61,4 +61,30 @@ sidebar.developer.resource_registration=Self-service protected resource registra manage.ok=OK manage.loading=Loading -manage.title=Management Console \ No newline at end of file +manage.title=Management Console + +approve.title=Approve Access +approve.error.not_granted=Access could not be granted. +approve.required_for=Approval Required for +approve.dynamically_registered=This client was dynamically registered . +approve.caution=Caution +approve.caution.message=This software was dynamically registered \ +and it has been approved {0} {0,choice,0#times|1#time|1{0} +approve.pairwise=This client uses a pairwise identifier, which makes it more difficult to correlate your identity between sites. +approve.no_scopes=This client does not have any scopes registered and is therefore allowed to request any scopes available on the system. Proceed with caution. +approve.access_to=Access to +approve.remember=Remember this decision +approve.remember.until_revoke=remember this decision until I revoke it +approve.remember.one_hour=remember this decision for one hour +approve.remember.next_time=prompt me again next time +approve.do_authorize=Do you authorize +approve.label.authorize=Authorize +approve.label.deny=Deny \ 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 2e512f548..88faa8e36 100644 --- a/openid-connect-server-webapp/src/main/resources/messages_sv.properties +++ b/openid-connect-server-webapp/src/main/resources/messages_sv.properties @@ -66,4 +66,30 @@ sidebar.developer.resource_registration=Self-service registrering av skyddad res manage.ok=OK manage.loading=Laddar -manage.title=Administrationsgränssnitt \ No newline at end of file +manage.title=Administrationsgränssnitt + +approve.title=Medge åtkomst +approve.error.not_granted=Åtkomst kunde inte medges. +approve.required_for=Åtkomst måste medges för +approve.dynamically_registered=Denna klient blev registrerad dynamiskt . +approve.caution=Försiktigt +approve.caution.message=Denna klient blev registrerad dynamiskt \ +och har blivit medgiven åtkomst {0} {0,choice,0#gånger|1#gång|1{0} +approve.pairwise=Denna klient använder en pairwise-identifierare, vilket gör det svårare att koppla samman dina identititer mellan olika webbplatser. +approve.no_scopes=Denna klient har inga "scopes" registrerade och kan därför begära alla scope som finns tillgängliga i systemet. Iakttag försiktighet. +approve.access_to=Åtkomst till +approve.remember=Kom ihåg detta val +approve.remember.until_revoke=tills jag återkallar det +approve.remember.one_hour=i en timme +approve.remember.next_time=fråga igen nästa gång +approve.do_authorize=Medger du åtkomst för +approve.label.authorize=Medge åtkomst +approve.label.deny=Avbryt \ No newline at end of file diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp b/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp index 5610c03a5..83954157e 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp @@ -5,14 +5,17 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="o" tagdir="/WEB-INF/tags"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> - +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + +
<% if (session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null && !(session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) instanceof UnapprovedClientAuthenticationException)) { %>
× -

Access could not be granted. +

(<%= ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>)

@@ -20,7 +23,7 @@
-

Approval Required for +

@@ -41,18 +44,15 @@ -

This client was dynamically registered .

+

">

- Caution: + :

- This software was dynamically registered - and it has been approved - - time previously. +
@@ -95,21 +95,21 @@
- more information +
    -
  • Home page: ">
  • +
  • : ">
  • -
  • Policy: ">
  • +
  • : ">
  • -
  • Terms of Service: ">
  • +
  • : ">
  • -
  • Administrative Contacts:
  • +
  • :
@@ -121,38 +121,37 @@

- Warning: + :

- This client does not have any redirect URIs registered and someone could be using a - malicious URI here. You will be redirected to the following page if you click Approve: - + +
- You will be redirected to the following page - if you click Approve: +

- This client uses a pairwise identifier, which makes it more difficult to correlate your identity between sites. +
- Access to: + :

- Warning: + :

- This client does not have any scopes registered and is therefore allowed to - request any scopes available on the system. Proceed with caution. +

+ +

@@ -206,18 +205,18 @@
- Remember this decision: + :
@@ -226,7 +225,7 @@

- Do you authorize + " @@ -236,12 +235,14 @@ "?

+ + -   -