From a93724fcd5057eab47526d218571f826d3f6b5b7 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Mon, 28 Jan 2019 11:53:13 +0100 Subject: [PATCH] translate accounts comments --- lib/AccountManager/Account.pm | 22 ++++++------- lib/AccountManager/L10N/fr.pm | 33 +++++++++++++++++++ .../web/edugain/create_accounts.tt2.html | 2 +- .../web/renater/create_accounts.tt2.html | 2 +- 4 files changed, 46 insertions(+), 13 deletions(-) diff --git a/lib/AccountManager/Account.pm b/lib/AccountManager/Account.pm index e1d33e6..949b148 100644 --- a/lib/AccountManager/Account.pm +++ b/lib/AccountManager/Account.pm @@ -96,17 +96,17 @@ my %scopedAffiliation = ( ); my %comment = ( - alumni1 => 'An ex-student with "alum" value for eduPersonAffiliation.', - employee1 => 'A person with "member", "staff" and "employee" values for eduPersonAffiliation.', - fullset1 => 'A person with all eduGAIN user attributes plus givenName and surname.', - limitedset1 => 'A person with only an eduPersonTargetedID attribute.', - generic1 => 'A person with a limited set of attributes (eduPersonPrincipalName, mail and displayName).', - librarywalkin1 => 'A library user on the campus network.', - student1 => 'A student with "member" and "student" values for eduPersonAffiliation.', - student2 => 'A PhD student with "member", "student" and "faculty" values for eduPersonAffiliation.', - teacher1 => 'A teacher with a limited set of attributes (eduPersonScopedAffiliation and eduPersonTargetedID).', - teacher2 => 'A teacher with "member" and "faculty" values for eduPersonAffiliation.', - researcher1 => 'A researcher, undifferenciable from a teacher as there is no standard value for eduPersonAffiliation.', + alumni1 => "An ex-student with 'alum' value for eduPersonAffiliation.", + employee1 => "A person with 'member', 'staff' and 'employee' values for eduPersonAffiliation.", + fullset1 => "A person with all eduGAIN user attributes plus givenName and surname.", + limitedset1 => "A person with only an eduPersonTargetedID attribute.", + generic1 => "A person with a limited set of attributes (eduPersonPrincipalName, mail and displayName).", + librarywalkin1 => "A library user on the campus network.", + student1 => "A student with 'member' and 'student' values for eduPersonAffiliation.", + student2 => "A PhD student with 'member', 'student' and 'faculty' values for eduPersonAffiliation.", + teacher1 => "A teacher with a limited set of attributes (eduPersonScopedAffiliation and eduPersonTargetedID).", + teacher2 => "A teacher with 'member' and 'faculty' values for eduPersonAffiliation.", + researcher1 => "A researcher, undifferenciable from a teacher as there is no standard value for eduPersonAffiliation.", ); sub print { diff --git a/lib/AccountManager/L10N/fr.pm b/lib/AccountManager/L10N/fr.pm index c369f1f..e2dd100 100644 --- a/lib/AccountManager/L10N/fr.pm +++ b/lib/AccountManager/L10N/fr.pm @@ -17,6 +17,39 @@ __DATA__ msgid "_AUTO" msgstr "1" +msgid "An ex-student with 'alum' value for eduPersonAffiliation." +msgstr "Un ancient étudiant avec la valeur 'alum' pour eduPersonAffiliation." + +msgid "A person with 'member', 'staff' and 'employee' values for eduPersonAffiliation." +msgstr "Une personne avec les valeurs 'member', 'staff' et 'employee' pour eduPersonAffiliation." + +msgid "A person with all eduGAIN user attributes plus givenName and surname." +msgstr "Une personne avec tous les attributs eduGAIN plus givenName et surname." + +msgid "A person with only an eduPersonTargetedID attribute." +msgstr "Une personne avec uniquement un attribut eduPersonTargetedID." + +msgid "A person with a limited set of attributes (eduPersonPrincipalName, mail and displayName)." +msgstr "Une personne avec un ensembe d'attributs limités (eduPersonPrincipalName, mail et displayName)." + +msgid "A library user on the campus network." +msgstr "Un utilisateur de la bibliothèque sur le réseau du campus." + +msgid "A student with 'member' and 'student' values for eduPersonAffiliation." +msgstr "Un étudiant avec les valeurs 'member' et 'student' pour eduPersonAffiliation." + +msgid "A PhD student with 'member', 'student' and 'faculty' values for eduPersonAffiliation." +msgstr "Un étudiant en thèse avec les valeurs 'member', 'student' et 'faculty' pour eduPersonAffiliation." + +msgid "A teacher with a limited set of attributes (eduPersonScopedAffiliation and eduPersonTargetedID)." +msgstr "Un enseignant avec un ensemble d'attributs limités (eduPersonScopedAffiliation and eduPersonTargetedID)." + +msgid "A teacher with 'member' and 'faculty' values for eduPersonAffiliation." +msgstr "Un enseignant avec les valeurs 'member' et 'faculty' pour eduPersonAffiliation." + +msgid "A researcher, undifferenciable from a teacher as there is no standard value for eduPersonAffiliation." +msgstr "Un chercheur, indifférenciable d'un enseignant car il n'y a pas de valeur standard pour eduPersonAffiliation." + #: templates/web/edugain/create_accounts.tt2.html:74 templates/web/renater/create_accounts.tt2.html:78 msgid "(1) eduPersonAffiliation and eduPersonScoppedAffilisation attributes are assigned quite differently from federation to federation." msgstr "(1) les attributs eduPersonAffiliation et eduPersonScoppedAffilisation sont valorisés différement d'une fédération à une autre." diff --git a/templates/web/edugain/create_accounts.tt2.html b/templates/web/edugain/create_accounts.tt2.html index e3753d3..36ba8eb 100644 --- a/templates/web/edugain/create_accounts.tt2.html +++ b/templates/web/edugain/create_accounts.tt2.html @@ -31,7 +31,7 @@ <tr> <td colspan="2"> <strong>[% lh.maketext("comment:") %]</strong> - <div class="comment">[% account.comment() %]</div> + <div class="comment">[% lh.maketext(account.comment()) %]</div> </td> </tr> <tr> diff --git a/templates/web/renater/create_accounts.tt2.html b/templates/web/renater/create_accounts.tt2.html index 8548188..6c2f2b8 100644 --- a/templates/web/renater/create_accounts.tt2.html +++ b/templates/web/renater/create_accounts.tt2.html @@ -33,7 +33,7 @@ <tr> <td colspan="2"> <strong>[% lh.maketext("comment:") %]</strong> - <div class="comment">[% account.comment() %]</div> + <div class="comment">[% lh.maketext(account.comment()) %]</div> </td> </tr> <tr> -- GitLab