Projet

Général

Profil

0001-7879-fixing-status-message-encoding-and-adding-trans.patch

Josué Kouka, 09 octobre 2015 09:59

Télécharger (6,48 ko)

Voir les différences:

Subject: [PATCH] #7879: fixing status message encoding and adding translation

 .../idp/saml/locale/fr/LC_MESSAGES/django.po       | 54 +++++++++++++---------
 src/authentic2/idp/saml/saml2_endpoints.py         |  5 +-
 2 files changed, 34 insertions(+), 25 deletions(-)
src/authentic2/idp/saml/locale/fr/LC_MESSAGES/django.po
7 7
msgstr ""
8 8
"Project-Id-Version: Authentic\n"
9 9
"Report-Msgid-Bugs-To: \n"
10
"POT-Creation-Date: 2015-09-22 09:46+0200\n"
10
"POT-Creation-Date: 2015-10-08 18:22+0200\n"
11 11
"PO-Revision-Date: 2014-11-21 11:43+0100\n"
12 12
"Last-Translator: Mikaël Ates <mates@entrouvert.com>\n"
13 13
"Language-Team: None\n"
......
17 17
"Content-Transfer-Encoding: 8bit\n"
18 18
"Plural-Forms: nplurals=2; plural=n>1;\n"
19 19

  
20
#: authentic2/idp/saml/__init__.py:28
20
#: src/authentic2/idp/saml/__init__.py:28
21 21
msgid "SAML2"
22 22
msgstr ""
23 23

  
24
#: authentic2/idp/saml/backend.py:133
24
#: src/authentic2/idp/saml/backend.py:133
25 25
msgid "Delete"
26 26
msgstr "Supprimer"
27 27

  
28
#: authentic2/idp/saml/backend.py:148
28
#: src/authentic2/idp/saml/backend.py:148
29 29
msgid "Create"
30 30
msgstr "Créer"
31 31

  
32
#: authentic2/idp/saml/saml2_endpoints.py:437
32
#: src/authentic2/idp/saml/saml2_endpoints.py:437
33 33
#, python-format
34 34
msgid ""
35 35
"SAMLv2 Single Sign On: invalid message for WebSSO profile with HTTP-Redirect "
......
38 38
"SAMLv2 Single Sign On: message invalide pour le profil utilisant le binding "
39 39
"HTTP-Redirect: %r"
40 40

  
41
#: authentic2/idp/saml/saml2_endpoints.py:442
41
#: src/authentic2/idp/saml/saml2_endpoints.py:442
42 42
msgid ""
43 43
"SAMLv2 Single Sign On: the request cannot be answered because no valid "
44 44
"protocol binding could be found"
......
46 46
"SAMLv2 Single Sign On: la requête ne peut être traitée car elle est "
47 47
"invalide: un binding de protocole n'a pu être trouvé"
48 48

  
49
#: authentic2/idp/saml/saml2_endpoints.py:477
49
#: src/authentic2/idp/saml/saml2_endpoints.py:477
50 50
msgid "sso: No SP policy defined"
51 51
msgstr "sso: Pas de politique pour les fournisseurs de service définie"
52 52

  
53
#: authentic2/idp/saml/saml2_endpoints.py:588
53
#: src/authentic2/idp/saml/saml2_endpoints.py:588
54 54
msgid "continue_sso: error loading login"
55 55
msgstr "continnue_sso: erreur au rechargement de l'objet login"
56 56

  
57
#: authentic2/idp/saml/saml2_endpoints.py:592
57
#: src/authentic2/idp/saml/saml2_endpoints.py:592
58 58
#, python-format
59 59
msgid "continue_sso: unknown provider %s"
60 60
msgstr "continue_sso: fournisseur %s inconnu"
61 61

  
62
#: authentic2/idp/saml/saml2_endpoints.py:711
62
#: src/authentic2/idp/saml/saml2_endpoints.py:598
63
msgid "User canceled login process"
64
msgstr "L'utilisateur a annulé le processus d'authentification"
65

  
66
#: src/authentic2/idp/saml/saml2_endpoints.py:604
67
msgid "User refused to consent"
68
msgstr "L'utilisateur a refusé la féderation de son compte"
69

  
70
#: src/authentic2/idp/saml/saml2_endpoints.py:712
63 71
#, python-format
64 72
msgid "Provider %s is unknown"
65 73
msgstr "Le fournisseur %s est inconnu"
66 74

  
67
#: authentic2/idp/saml/saml2_endpoints.py:715
75
#: src/authentic2/idp/saml/saml2_endpoints.py:716
68 76
msgid "No service provider policy defined"
69 77
msgstr "Pas de politique de fournisseur de service définie"
70 78

  
71
#: authentic2/idp/saml/saml2_endpoints.py:861
72
#: authentic2/idp/saml/saml2_endpoints.py:1033
73
#: authentic2/idp/saml/saml2_endpoints.py:1045
74
#: authentic2/idp/saml/saml2_endpoints.py:1269
75
#: authentic2/idp/saml/saml2_endpoints.py:1303
76
#: authentic2/idp/saml/saml2_endpoints.py:1351
77
#: authentic2/idp/saml/saml2_endpoints.py:1362
79
#: src/authentic2/idp/saml/saml2_endpoints.py:862
80
#: src/authentic2/idp/saml/saml2_endpoints.py:1034
81
#: src/authentic2/idp/saml/saml2_endpoints.py:1046
82
#: src/authentic2/idp/saml/saml2_endpoints.py:1270
83
#: src/authentic2/idp/saml/saml2_endpoints.py:1304
84
#: src/authentic2/idp/saml/saml2_endpoints.py:1352
85
#: src/authentic2/idp/saml/saml2_endpoints.py:1363
78 86
#, python-format
79 87
msgid "You are being redirected to \"%s\""
80 88
msgstr "Vous allez être redirigé sur \"%s\""
81 89

  
82
#: authentic2/idp/saml/saml2_endpoints.py:1354
90
#: src/authentic2/idp/saml/saml2_endpoints.py:1355
83 91
msgid "Invalid logout request"
84 92
msgstr "Requête de déconnexion invalide"
85 93

  
86
#: authentic2/idp/saml/templates/idp/saml/logout_fragment.html:2
94
#: src/authentic2/idp/saml/templates/idp/saml/logout_fragment.html:2
87 95
#, python-format
88 96
msgid "Sending logout to %(name)s...."
89 97
msgstr "Déconnexion avec %(name)s...."
90 98

  
91
#: authentic2/idp/saml/templates/idp/saml/unknown_provider.html:5
99
#: src/authentic2/idp/saml/templates/idp/saml/unknown_provider.html:5
92 100
#, python-format
93 101
msgid ""
94 102
"We were unable to load provider\n"
......
102 110
"\"\">réessayer</a>.\n"
103 111
"   "
104 112

  
105
#: authentic2/idp/saml/tests.py:234
113
#: src/authentic2/idp/saml/tests.py:234
106 114
msgid "Cancel"
107 115
msgstr "Annuler"
108 116

  
109
#: authentic2/idp/saml/views.py:26
117
#: src/authentic2/idp/saml/views.py:26
110 118
#, python-brace-format
111 119
msgid "Federation to {0} deleted"
112 120
msgstr "La liaison avec {0} a été supprimée."
src/authentic2/idp/saml/saml2_endpoints.py
593 593
            % login.remoteProviderId, logger=logger)
594 594
    if 'cancel' in request.GET:
595 595
        logger.info('login canceled')
596

  
596 597
        set_saml2_response_responder_status_code(login.response,
597
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, _('User canceled login process'.decode('utf-8')))
598
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, _('User canceled login process').encode('utf-8'))
598 599
        return finish_sso(request, login)
599 600
    if consent_answer == 'refused':
600 601
        logger.info("consent answer treatment, the user "
601 602
            "refused, return request denied to the requester")
602 603
        set_saml2_response_responder_status_code(login.response,
603
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, _('User refused to consent'.decode('utf-8')))
604
                lasso.SAML2_STATUS_CODE_REQUEST_DENIED, _('User refused to consent').encode('utf-8'))
604 605
        return finish_sso(request, login)
605 606
    if consent_answer == 'accepted':
606 607
        logger.info("consent answer treatment, the user "
607
-