[java-idp-plugin-duo] 02/02: JDUO-97 - Add translations to a future release
Codeberg
noreply at shibboleth.net
Tue Jun 9 17:04:26 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-idp-plugin-duo.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-duo/commit/f6a9ae653091688a20f000508629ef4ea8d6d748
commit f6a9ae653091688a20f000508629ef4ea8d6d748
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Jun 9 13:02:50 2026 -0400
JDUO-97 - Add translations to a future release
https://shibboleth.atlassian.net/browse/JDUO-97
Add message beans to admin flow.
Update messages still in use, add translations.
---
.../idp/flows/admin/DuoOIDC/duo-oidc-admin-beans.xml | 15 +++++++++++++++
.../shibboleth/idp/plugin/authn/duo/messages.properties | 6 +++---
.../idp/plugin/authn/duo/messages_de.properties | 14 ++++++++++++++
.../idp/plugin/authn/duo/messages_de_CH.properties | 14 ++++++++++++++
.../idp/plugin/authn/duo/messages_sk.properties | 14 ++++++++++++++
5 files changed, 60 insertions(+), 3 deletions(-)
diff --git a/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/DuoOIDC/duo-oidc-admin-beans.xml b/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/DuoOIDC/duo-oidc-admin-beans.xml
index 6c11302d..66d5619f 100644
--- a/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/DuoOIDC/duo-oidc-admin-beans.xml
+++ b/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/DuoOIDC/duo-oidc-admin-beans.xml
@@ -24,6 +24,21 @@
<bean id="shibboleth.AdminResourceLookupStrategy" parent="shibboleth.Functions.Constant" c:target="cookie" />
+ <!-- This extends the original user-space resource list with the plugin-embedded messages. -->
+ <bean id ="ExtendedMessageSourceResources" parent="shibboleth.ListCombiner"
+ p:firstList-ref="#{'%{idp.message.resources:shibboleth.MessageSourceResources}'.trim()}" >
+ <property name="secondList">
+ <util:list >
+ <value>classpath:/net/shibboleth/idp/plugin/authn/duo/messages</value>
+ </util:list>
+ </property>
+ </bean>
+
+ <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"
+ p:cacheSeconds="%{idp.message.cacheSeconds:300}"
+ p:basenames-ref="ExtendedMessageSourceResources"
+ p:defaultEncoding="UTF-8" />
+
<!-- Work beans. -->
<bean id="AdminLandingRedirect" class="java.lang.String" c:_0="%{idp.duo.oidc.admin.landingPage:https://example.org}" />
diff --git a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties
index 8390a9fc..1b3e6983 100644
--- a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties
+++ b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties
@@ -11,9 +11,6 @@ idp.duo.passwordless.proceed = Login with Passkey or Device
idp.duo.passwordless.cancel = Login with Password
idp.duo.passwordless.notyou = Not You?
-idp.duo.enrollment = Enroll New Devices
-idp.duo.enrollment.url = #
-
idp.duo.passwordless.optin = Default to using your Passkey or device to login in the future?
idp.duo.passwordless.optin.yes = Yes
idp.duo.passwordless.optin.no = No
@@ -27,3 +24,6 @@ idp.duo.passwordless.admin.optin = Opt-In
idp.duo.passwordless.admin.optout = Opt-Out
idp.duo.passwordless.admin.clear = Clear
idp.duo.passwordless.admin.finish = Finish
+
+idp.duo.enrollment = Enroll New Devices
+idp.duo.enrollment.url = #
diff --git a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_de.properties b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_de.properties
new file mode 100644
index 00000000..dae2758b
--- /dev/null
+++ b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_de.properties
@@ -0,0 +1,14 @@
+# In addition to the Apache 2.0 license, this content is also licensed
+# under the Creative Commons Attribution-ShareAlike 3.0 Unported license
+# (see http://creativecommons.org/licenses/by-sa/3.0/).
+
+# This is the as-delivered set of messages used in various views
+# so that internationalized translations can be made available and
+# so administrators can locally override or supplement the values
+# in their own message files.
+
+idp.duo.passwordless.proceed = Anmelden mit Passkey oder Gerät
+idp.duo.passwordless.cancel = Anmelden mit Passwort
+
+idp.duo.enrollment = Neue Geräte registrieren
+idp.duo.enrollment.url = #
diff --git a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_de_CH.properties b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_de_CH.properties
new file mode 100644
index 00000000..dae2758b
--- /dev/null
+++ b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_de_CH.properties
@@ -0,0 +1,14 @@
+# In addition to the Apache 2.0 license, this content is also licensed
+# under the Creative Commons Attribution-ShareAlike 3.0 Unported license
+# (see http://creativecommons.org/licenses/by-sa/3.0/).
+
+# This is the as-delivered set of messages used in various views
+# so that internationalized translations can be made available and
+# so administrators can locally override or supplement the values
+# in their own message files.
+
+idp.duo.passwordless.proceed = Anmelden mit Passkey oder Gerät
+idp.duo.passwordless.cancel = Anmelden mit Passwort
+
+idp.duo.enrollment = Neue Geräte registrieren
+idp.duo.enrollment.url = #
diff --git a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_sk.properties b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_sk.properties
new file mode 100644
index 00000000..0fe80e2b
--- /dev/null
+++ b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages_sk.properties
@@ -0,0 +1,14 @@
+# In addition to the Apache 2.0 license, this content is also licensed
+# under the Creative Commons Attribution-ShareAlike 3.0 Unported license
+# (see http://creativecommons.org/licenses/by-sa/3.0/).
+
+# This is the as-delivered set of messages used in various views
+# so that internationalized translations can be made available and
+# so administrators can locally override or supplement the values
+# in their own message files.
+
+idp.duo.passwordless.proceed = Prihlásenie pomocou prístupového kľúča alebo zariadenia
+idp.duo.passwordless.cancel = Prihlásenie pomocou hesla
+
+idp.duo.enrollment = Registrácia nových zariadení
+idp.duo.enrollment.url = #
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list