Skip to content

Commit 7c3fe5f

Browse files
authored
Merge pull request #83 from collective/french-locales
Add french translations
2 parents 5583847 + 64e1a87 commit 7c3fe5f

7 files changed

Lines changed: 220 additions & 6 deletions

File tree

news/83.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add french translation. @remdub

src/pas/plugins/oidc/locales/de/LC_MESSAGES/pas.plugins.oidc.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ msgstr ""
129129
msgid "Scope"
130130
msgstr ""
131131

132-
#: pas/plugins/oidc/browser/view.py:64
132+
#: pas/plugins/oidc/browser/view.py:65
133133
#: pas/plugins/oidc/services/oidc/oidc.py:107
134134
msgid "There was an error during the login process. Please try again."
135135
msgstr "Beim Anmeldevorgang ist ein Fehler aufgetreten. Bitte versuche es erneut."
@@ -186,6 +186,10 @@ msgstr ""
186186
msgid "Userinfo Endpoint Method"
187187
msgstr ""
188188

189+
#: pas/plugins/oidc/plugins.py:424
190+
msgid "You are not allowed to log in due to group restrictions."
191+
msgstr ""
192+
189193
#: pas/plugins/oidc/configure.zcml:33
190194
msgid "pas.plugins.oidc"
191195
msgstr "pas.plugins.oidc"

src/pas/plugins/oidc/locales/en/LC_MESSAGES/pas.plugins.oidc.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ msgstr ""
126126
msgid "Scope"
127127
msgstr ""
128128

129-
#: pas/plugins/oidc/browser/view.py:64
129+
#: pas/plugins/oidc/browser/view.py:65
130130
#: pas/plugins/oidc/services/oidc/oidc.py:107
131131
msgid "There was an error during the login process. Please try again."
132132
msgstr ""
@@ -183,6 +183,10 @@ msgstr ""
183183
msgid "Userinfo Endpoint Method"
184184
msgstr ""
185185

186+
#: pas/plugins/oidc/plugins.py:424
187+
msgid "You are not allowed to log in due to group restrictions."
188+
msgstr ""
189+
186190
#: pas/plugins/oidc/configure.zcml:33
187191
msgid "pas.plugins.oidc"
188192
msgstr ""

src/pas/plugins/oidc/locales/es/LC_MESSAGES/pas.plugins.oidc.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ msgstr "Solo es necesario para el Oracle Authentication Manager"
131131
msgid "Scope"
132132
msgstr "Ámbito"
133133

134-
#: pas/plugins/oidc/browser/view.py:64
134+
#: pas/plugins/oidc/browser/view.py:65
135135
#: pas/plugins/oidc/services/oidc/oidc.py:107
136136
msgid "There was an error during the login process. Please try again."
137137
msgstr "Hubo un error durante el proceso de inicio de sesión. Inténtalo de nuevo."
@@ -188,6 +188,10 @@ msgstr "Propiedad de información de usuario utilizada como userid, 'sub' por de
188188
msgid "Userinfo Endpoint Method"
189189
msgstr ""
190190

191+
#: pas/plugins/oidc/plugins.py:424
192+
msgid "You are not allowed to log in due to group restrictions."
193+
msgstr ""
194+
191195
#: pas/plugins/oidc/configure.zcml:33
192196
msgid "pas.plugins.oidc"
193197
msgstr "pas.plugins.oidc"
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
msgid ""
2+
msgstr ""
3+
"Project-Id-Version: PACKAGE VERSION\n"
4+
"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n"
5+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
6+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
7+
"Language-Team: LANGUAGE <LL@li.org>\n"
8+
"MIME-Version: 1.0\n"
9+
"Content-Type: text/plain; charset=utf-8\n"
10+
"Content-Transfer-Encoding: 8bit\n"
11+
"Plural-Forms: nplurals=1; plural=0\n"
12+
"Language-Code: fr\n"
13+
"Language-Name: French\n"
14+
"Preferred-Encodings: utf-8 latin1\n"
15+
"Domain: DOMAIN\n"
16+
17+
#: pas/plugins/oidc/www/oidcPluginForm.zpt:54
18+
msgid "Add"
19+
msgstr "Ajouter"
20+
21+
#: pas/plugins/oidc/interfaces.py:70
22+
msgid "Allowed Groups"
23+
msgstr "Groupes autorisés"
24+
25+
#: pas/plugins/oidc/interfaces.py:24
26+
msgid "Client ID"
27+
msgstr "Client ID"
28+
29+
#: pas/plugins/oidc/interfaces.py:30
30+
msgid "Client secret"
31+
msgstr "Client secret"
32+
33+
#: pas/plugins/oidc/interfaces.py:81
34+
msgid "Create authentication __ac ticket"
35+
msgstr "Créer un ticket d'authentification __ac"
36+
37+
#: pas/plugins/oidc/interfaces.py:87
38+
msgid "Create authentication auth_token (volto/restapi) ticket"
39+
msgstr "Créer un ticket d'authentification auth_token (volto/restapi)"
40+
41+
#: pas/plugins/oidc/interfaces.py:80
42+
msgid "Create authentication ticket"
43+
msgstr "Créer un ticket d'authentification"
44+
45+
#: pas/plugins/oidc/interfaces.py:58
46+
msgid "Create groups / update group memberships"
47+
msgstr "Créer les groupes / mettre à jour les adhésions aux groupes"
48+
49+
#: pas/plugins/oidc/interfaces.py:86
50+
msgid "Create restapi ticket"
51+
msgstr "Créer un ticket restapi"
52+
53+
#: pas/plugins/oidc/interfaces.py:52
54+
msgid "Create user / update user properties"
55+
msgstr "Créer l'utilisateur / mettre à jour les propriétés de l'utilisateur"
56+
57+
#: pas/plugins/oidc/interfaces.py:73
58+
msgid "Group"
59+
msgstr "Groupe"
60+
61+
#: pas/plugins/oidc/interfaces.py:141
62+
msgid "HTTP Method to use for the userinfo endpoint"
63+
msgstr "Méthode HTTP à utiliser pour le endpoint userinfo"
64+
65+
#: pas/plugins/oidc/www/oidcPluginForm.zpt:26
66+
msgid "Id"
67+
msgstr "Id"
68+
69+
#: pas/plugins/oidc/interfaces.py:133
70+
msgid "Identity Domain Name"
71+
msgstr ""
72+
73+
#: pas/plugins/oidc/configure.zcml:33
74+
msgid "Installs the pas.plugins.oidc add-on."
75+
msgstr "Installe le module complémentaire pas.plugins.oidc."
76+
77+
#: pas/plugins/oidc/interfaces.py:71
78+
msgid "List of groups that are allowed to log in."
79+
msgstr "Liste des groupes autorisés à se connecter."
80+
81+
#: pas/plugins/oidc/controlpanel/classic.py:168
82+
msgid "OIDC Plugin Settings"
83+
msgstr "Paramètres du plugin OIDC"
84+
85+
#: pas/plugins/oidc/www/oidcPluginForm.zpt:13
86+
msgid "OIDC Plugin manage the details of the OpenID Connect Authentication plugin Pluggable Auth Service functionality."
87+
msgstr "Le plugin OIDC gère les détails de la fonctionnalité du plugin d'authentification OpenID Connect Pluggable Auth Service."
88+
89+
#: pas/plugins/oidc/profiles/default/controlpanel.xml
90+
msgid "OIDC Settings"
91+
msgstr "Paramètres OIDC"
92+
93+
#: pas/plugins/oidc/controlpanel/oidc.py:19
94+
msgid "OIDC settings"
95+
msgstr "Paramètres OIDC"
96+
97+
#: pas/plugins/oidc/interfaces.py:18
98+
msgid "OIDC/OAuth2 Issuer"
99+
msgstr "Issuer OIDC/OAuth2"
100+
101+
#: pas/plugins/oidc/interfaces.py:92
102+
msgid "Open ID scopes"
103+
msgstr "Scopes Open ID"
104+
105+
#: pas/plugins/oidc/interfaces.py:93
106+
msgid "Open ID scopes to request to the server"
107+
msgstr "Scopes Open ID à demander au serveur"
108+
109+
#: pas/plugins/oidc/interfaces.py:126
110+
msgid "Property used as userid"
111+
msgstr "Propriété utilisée comme userid"
112+
113+
#: pas/plugins/oidc/services/oidc/oidc.py:95
114+
msgid "Provider is not properly configured."
115+
msgstr "Le fournisseur n'est pas correctement configuré."
116+
117+
#: pas/plugins/oidc/interfaces.py:36
118+
msgid "Redirect uris"
119+
msgstr "URIs de redirection"
120+
121+
#: pas/plugins/oidc/interfaces.py:134
122+
msgid "Required for Oracle Authentication Manager only"
123+
msgstr "Requis uniquement pour Oracle Authentication Manager"
124+
125+
#: pas/plugins/oidc/interfaces.py:95
126+
msgid "Scope"
127+
msgstr "Scope"
128+
129+
#: pas/plugins/oidc/browser/view.py:65
130+
#: pas/plugins/oidc/services/oidc/oidc.py:107
131+
msgid "There was an error during the login process. Please try again."
132+
msgstr "Une erreur s'est produite lors du processus de connexion. Veuillez réessayer."
133+
134+
#: pas/plugins/oidc/browser/view.py:57
135+
msgid "There was an error getting the oauth2 client."
136+
msgstr "Une erreur s'est produite lors de la récupération du client oauth2."
137+
138+
#: pas/plugins/oidc/www/oidcPluginForm.zpt:40
139+
msgid "Title"
140+
msgstr "Titre"
141+
142+
#: pas/plugins/oidc/interfaces.py:39
143+
msgid "URI"
144+
msgstr "URI"
145+
146+
#: pas/plugins/oidc/configure.zcml:42
147+
msgid "Uninstalls the pas.plugins.oidc add-on."
148+
msgstr "Désinstalle le module complémentaire pas.plugins.oidc."
149+
150+
#: pas/plugins/oidc/interfaces.py:102
151+
msgid "Use PKCE"
152+
msgstr "Utiliser PKCE"
153+
154+
#: pas/plugins/oidc/interfaces.py:46
155+
msgid "Use Zope session data manager"
156+
msgstr "Utiliser le gestionnaire de données de session Zope"
157+
158+
#: pas/plugins/oidc/interfaces.py:117
159+
msgid "Use a modified OpenID Schema for email_verified and phone_number_verified boolean values coming as string"
160+
msgstr "Utiliser un schéma OpenID modifié pour les valeurs booléennes email_verified et phone_number_verified provenant sous forme de chaîne"
161+
162+
#: pas/plugins/oidc/interfaces.py:108
163+
msgid "Use deprecated redirect_uri"
164+
msgstr "Utiliser redirect_uri obsolète"
165+
166+
#: pas/plugins/oidc/interfaces.py:109
167+
msgid "Use deprecated redirect_uri for logout url(/Plone/acl_users/oidc/logout)"
168+
msgstr "Utiliser redirect_uri obsolète pour l'URL de déconnexion (/Plone/acl_users/oidc/logout)"
169+
170+
#: pas/plugins/oidc/interfaces.py:116
171+
msgid "Use modified OpenID Schema"
172+
msgstr "Utiliser un schéma OpenID modifié"
173+
174+
#: pas/plugins/oidc/interfaces.py:64
175+
msgid "User info property used as groupid, default 'groups'"
176+
msgstr "Propriété des informations utilisateur utilisée comme groupid, par défaut 'groups'"
177+
178+
#: pas/plugins/oidc/interfaces.py:127
179+
msgid "User info property used as userid, default 'sub'."
180+
msgstr "Propriété des informations utilisateur utilisée comme userid, par défaut 'sub'."
181+
182+
#: pas/plugins/oidc/interfaces.py:140
183+
msgid "Userinfo Endpoint Method"
184+
msgstr "Méthode du endpoint Userinfo"
185+
186+
#: pas/plugins/oidc/plugins.py:424
187+
msgid "You are not allowed to log in due to group restrictions."
188+
msgstr "Vous n'êtes pas autorisé à vous connecter en raison de restrictions de groupe."
189+
190+
#: pas/plugins/oidc/configure.zcml:33
191+
msgid "pas.plugins.oidc"
192+
msgstr "pas.plugins.oidc"
193+
194+
#: pas/plugins/oidc/configure.zcml:42
195+
msgid "pas.plugins.oidc (uninstall)"
196+
msgstr "pas.plugins.oidc (désinstallation)"

src/pas/plugins/oidc/locales/pas.plugins.oidc.pot

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
msgid ""
55
msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
7-
"POT-Creation-Date: 2025-06-28 18:33+0000\n"
7+
"POT-Creation-Date: 2026-01-30 12:38+0000\n"
88
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
99
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1010
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -133,7 +133,7 @@ msgstr ""
133133
msgid "Scope"
134134
msgstr ""
135135

136-
#: pas/plugins/oidc/browser/view.py:64
136+
#: pas/plugins/oidc/browser/view.py:65
137137
#: pas/plugins/oidc/services/oidc/oidc.py:107
138138
msgid "There was an error during the login process. Please try again."
139139
msgstr ""
@@ -190,6 +190,10 @@ msgstr ""
190190
msgid "Userinfo Endpoint Method"
191191
msgstr ""
192192

193+
#: pas/plugins/oidc/plugins.py:424
194+
msgid "You are not allowed to log in due to group restrictions."
195+
msgstr ""
196+
193197
#: pas/plugins/oidc/configure.zcml:33
194198
msgid "pas.plugins.oidc"
195199
msgstr ""

src/pas/plugins/oidc/plugins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from oic.oic.message import OpenIDSchema
77
from oic.oic.message import RegistrationResponse
88
from oic.utils.authn.client import CLIENT_AUTHN_METHOD
9+
from pas.plugins.oidc import _
910
from pas.plugins.oidc import logger
1011
from plone.base.utils import safe_text
1112
from plone.protect.utils import safeWrite
@@ -420,7 +421,7 @@ def rememberIdentity(self, userinfo):
420421
user = pas.getUserById(user_id)
421422

422423
if not self.user_can_login(userinfo):
423-
message = "You are not allowed to log in due to group restrictions."
424+
message = _("You are not allowed to log in due to group restrictions.")
424425
api.portal.show_message(message=message, request=self.REQUEST, type="error")
425426
if user:
426427
raise AssertionError(

0 commit comments

Comments
 (0)