From 56d6c5649b4d95cd54d0d95f6d7e5ff62d7cfcde Mon Sep 17 00:00:00 2001 From: nicobo Date: Mon, 21 Sep 2015 23:41:38 +0200 Subject: [PATCH] + more translations & doc fixes --- .../plugins/script_realm/ScriptSecurityRealm.java | 2 +- .../plugins/script_realm/Messages.properties | 6 ++++-- .../plugins/script_realm/Messages_fr.properties | 9 +++++---- .../script_realm/ScriptSecurityRealm/config.jelly | 2 +- .../ScriptSecurityRealm/config_fr.properties | 2 +- .../script_realm/ScriptSecurityRealm/help.html | 11 ----------- .../script_realm/ScriptSecurityRealm/help_fr.html | 14 +------------- src/main/webapp/help-commandLine.html | 9 +++++++++ src/main/webapp/help-commandLine_fr.html | 10 ++++++++++ src/main/webapp/help-emailResolver.html | 9 ++++++--- src/main/webapp/help-emailResolver_fr.html | 7 +++++-- src/main/webapp/help-groupsCommandLine.html | 7 ++----- src/main/webapp/help-groupsCommandLine_fr.html | 6 ++---- src/main/webapp/help-groupsDelimiter.html | 2 +- src/main/webapp/help-groupsDelimiter_fr.html | 2 +- src/main/webapp/help-nameResolver.html | 10 +++++++--- src/main/webapp/help-nameResolver_fr.html | 7 +++++-- 17 files changed, 61 insertions(+), 54 deletions(-) create mode 100755 src/main/webapp/help-commandLine.html create mode 100755 src/main/webapp/help-commandLine_fr.html diff --git a/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm.java b/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm.java index 304f35e..71b0871 100644 --- a/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm.java +++ b/src/main/java/hudson/plugins/script_realm/ScriptSecurityRealm.java @@ -146,7 +146,7 @@ public class ScriptSecurityRealm extends AbstractPasswordBasedSecurityRealm { public static final class DescriptorImpl extends Descriptor { public String getDisplayName() { - return "Authenticate via custom script"; + return Messages.ScriptSecurityRealm_displayName(); } public String getDefaultEmailResolver() { diff --git a/src/main/resources/hudson/plugins/script_realm/Messages.properties b/src/main/resources/hudson/plugins/script_realm/Messages.properties index fbb40dd..4e90939 100644 --- a/src/main/resources/hudson/plugins/script_realm/Messages.properties +++ b/src/main/resources/hudson/plugins/script_realm/Messages.properties @@ -1,5 +1,7 @@ +# Plugin's title in /configureSecurity/ section +ScriptSecurityRealm.displayName=Authenticate via custom script # Labels for the strategies in the drop-down list -ScriptSecurityRealm.EmailResolver.nonestrategy.label=Default (do not resolve) +ScriptSecurityRealm.EmailResolver.nonestrategy.label=None (do not resolve) ScriptSecurityRealm.EmailResolver.anystrategy.label=Any (try all existing resolvers) -ScriptSecurityRealm.NameResolver.nonestrategy.label=Default (do not resolve) +ScriptSecurityRealm.NameResolver.nonestrategy.label=None (do not resolve) ScriptSecurityRealm.NameResolver.anystrategy.label=Any (try all existing resolvers) \ No newline at end of file diff --git a/src/main/resources/hudson/plugins/script_realm/Messages_fr.properties b/src/main/resources/hudson/plugins/script_realm/Messages_fr.properties index 1fe8cef..1f98ce4 100755 --- a/src/main/resources/hudson/plugins/script_realm/Messages_fr.properties +++ b/src/main/resources/hudson/plugins/script_realm/Messages_fr.properties @@ -1,4 +1,5 @@ -ScriptSecurityRealm.EmailResolver.nonestrategy.label=Défaut (ne pas résoudre) -ScriptSecurityRealm.EmailResolver.anystrategy.label=Tout essayer (le premier qui fonctionne) -ScriptSecurityRealm.NameResolver.nonestrategy.label=Défaut (ne pas résoudre) -ScriptSecurityRealm.NameResolver.anystrategy.label=Tout essayer (le premier qui fonctionne) \ No newline at end of file +ScriptSecurityRealm.displayName=Authentification par script +ScriptSecurityRealm.EmailResolver.nonestrategy.label=Aucun (ne pas résoudre) +ScriptSecurityRealm.EmailResolver.anystrategy.label=Tous (tout essayer) +ScriptSecurityRealm.NameResolver.nonestrategy.label=Aucun (ne pas résoudre) +ScriptSecurityRealm.NameResolver.anystrategy.label=Tous (tout essayer) \ No newline at end of file diff --git a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config.jelly b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config.jelly index 4baf225..496a8bc 100644 --- a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config.jelly +++ b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config.jelly @@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + diff --git a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config_fr.properties b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config_fr.properties index 925bda0..e3a4fb2 100755 --- a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config_fr.properties +++ b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/config_fr.properties @@ -1,5 +1,5 @@ Login\ Command=Commande pour authentifier Groups\ Command=Commande pour résoudre les groupes Groups\ Delimiter=Délimiteur de groupes -Email\ resolver=Résolveur d'e-mail +Email\ resolver=Résolveur d\u2019e-mail Name\ resolver=Résolveur de nom diff --git a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help.html b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help.html index b884b94..41fe699 100644 --- a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help.html +++ b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help.html @@ -1,15 +1,4 @@
Delegates the authentication to a custom script. This is useful if you need to plug into a custom authentication scheme, but don't want to write your own plugin. - -

- Each time the authentication is attempted (which is once per session), - the specified script will be invoked with the username in the 'U' environment variable - and the password in the 'P' environment variable. If the script returns exit code 0, - the authentication is considered successful, and otherwise failure. -

- -

- In case of failure, the output from the process will be reported in the exception message. -

\ No newline at end of file diff --git a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help_fr.html b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help_fr.html index e38961a..5b8a6d6 100755 --- a/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help_fr.html +++ b/src/main/resources/hudson/plugins/script_realm/ScriptSecurityRealm/help_fr.html @@ -1,16 +1,4 @@
Délègue l'authentification à un script. Cela permet par ex. de se connecter à un mécanisme d'authentification non standard. -
- -

- A chaque tentative d'authentification (c.a.d. une fois par session), - le script spécifié sera invoqué et recevra l'identifiant dans la variable d'environnement 'U' - et le mot de passe dans la variable d'environnement 'P'. - L'authentification est considérée réussie si le processus sort avec le statut 0, - sinon elle est considérée en échec. -

- -

- En cas d'échec, le texte affiché par le script sera rapporté dans le message d'erreur. -

+ \ No newline at end of file diff --git a/src/main/webapp/help-commandLine.html b/src/main/webapp/help-commandLine.html new file mode 100755 index 0000000..82e6924 --- /dev/null +++ b/src/main/webapp/help-commandLine.html @@ -0,0 +1,9 @@ +
+ Each time the authentication is attempted (which is once per session), + this script will be invoked with the username in the 'U' environment variable + and the password in the 'P' environment variable. If the script returns exit code 0, + the authentication is considered successful, and otherwise failed. +
+
+ In case of failure, the output from the process will be reported in the exception message. +
\ No newline at end of file diff --git a/src/main/webapp/help-commandLine_fr.html b/src/main/webapp/help-commandLine_fr.html new file mode 100755 index 0000000..e04c2f0 --- /dev/null +++ b/src/main/webapp/help-commandLine_fr.html @@ -0,0 +1,10 @@ +
+ A chaque tentative d'authentification (c.a.d. une fois par session), + ce script sera invoqué et recevra l'identifiant dans la variable d'environnement 'U' + et le mot de passe dans la variable d'environnement 'P'. + L'authentification est considérée réussie si le processus sort avec le statut 0, + sinon elle est considérée en échec. +
+
+ En cas d'échec, le texte affiché par le script sera rapporté dans le message d'erreur. +
\ No newline at end of file diff --git a/src/main/webapp/help-emailResolver.html b/src/main/webapp/help-emailResolver.html index 023a6a5..5dd8ecf 100644 --- a/src/main/webapp/help-emailResolver.html +++ b/src/main/webapp/help-emailResolver.html @@ -1,5 +1,8 @@
- Choose how to resolve the e-mail of the authenticated user (you may want to install specific plugins to get more options).
- If none, e-mail will not be resolved by this plugin.
- Be aware that not all options may work, as they may come from external plugins with their own configuration strategy.
+ Choose how to resolve the e-mail of the authenticated user (you may want to install other plugins to get more options).
+
+ If "none", e-mail will not be resolved by this plugin (default).
+ If "any", Jenkins will choose the 1st working resolver.
+
+ Be aware that some options may not work if they come from plugins with their own configuration strategy.
\ No newline at end of file diff --git a/src/main/webapp/help-emailResolver_fr.html b/src/main/webapp/help-emailResolver_fr.html index 38d01b0..99b5a76 100755 --- a/src/main/webapp/help-emailResolver_fr.html +++ b/src/main/webapp/help-emailResolver_fr.html @@ -1,5 +1,8 @@
Choisissez la manière de résoudre l'e-mail de la personne authentifiée (vous pouvez installer d'autres plugins pour agrandir la liste).
- Si vide, les e-mails ne seront pas résolus par ce plugin.
- Certaines combinaisons peuvent ne pas fonctionner, car les résolveurs peuvent provenir de plugins disposant de leur propre stratégie de configuration.
+
+ Si "aucun", les e-mails ne seront pas résolus par ce plugin (choix par défaut).
+ Si "tous", Jenkins choisira le 1er résolveur fonctionnel.
+
+ Notez que certains choix peuvent ne pas fonctionner s'ils proviennent de plugins disposant de leur propre stratégie de configuration.
\ No newline at end of file diff --git a/src/main/webapp/help-groupsCommandLine.html b/src/main/webapp/help-groupsCommandLine.html index fdc7a9b..fccff33 100644 --- a/src/main/webapp/help-groupsCommandLine.html +++ b/src/main/webapp/help-groupsCommandLine.html @@ -1,13 +1,10 @@
- Delegates the groups resolution to a custom script. + If not empty, delegates the groups resolution to a custom script.

Each time the authentication is attempted, this script will be invoked with the username in the 'U' environment variable. - If the script returns exit code 0, the output will be tokenized by the delimiter (default: ',') - to create a group with each token. + If the script returns exit code 0, the output will be tokenized by the delimiter to create a group with each token.

-

In case of failure, the output from the process will be reported in the exception message. -

\ No newline at end of file diff --git a/src/main/webapp/help-groupsCommandLine_fr.html b/src/main/webapp/help-groupsCommandLine_fr.html index abb2dd6..860057e 100755 --- a/src/main/webapp/help-groupsCommandLine_fr.html +++ b/src/main/webapp/help-groupsCommandLine_fr.html @@ -1,13 +1,11 @@
- Délègue la résolution des groupes à un script. + Si non vide, délègue la résolution des groupes à un script.

A chaque tentative d'authentification, ce script sera invoqué et recevra l'identifiant dans la variable d'environnement 'U'. Si le processus sort avec le statut 0, sa sortie standard sera interprétée comme l'ensemble des groupes - de l'utilisateur, séparés par le délimiteur (défaut: ','). + de l'utilisateur, séparés par le délimiteur.

-

En cas d'échec, le texte affiché par le script sera rapporté dans le message d'erreur. -

\ No newline at end of file diff --git a/src/main/webapp/help-groupsDelimiter.html b/src/main/webapp/help-groupsDelimiter.html index d3d073e..5387ab3 100644 --- a/src/main/webapp/help-groupsDelimiter.html +++ b/src/main/webapp/help-groupsDelimiter.html @@ -1,3 +1,3 @@
- Delimiter to split the groups within the returned output of the groups script. + Delimiter to split the groups within the returned output of the groups script (default: ',').
\ No newline at end of file diff --git a/src/main/webapp/help-groupsDelimiter_fr.html b/src/main/webapp/help-groupsDelimiter_fr.html index 28a60f5..93e95d2 100755 --- a/src/main/webapp/help-groupsDelimiter_fr.html +++ b/src/main/webapp/help-groupsDelimiter_fr.html @@ -1,3 +1,3 @@
- Délimiteur utilisé pour séparer les groupes dans la sortie du script de résolution des groupes. + Délimiteur utilisé pour séparer les groupes dans la sortie du script de résolution des groupes (défaut: ',').
\ No newline at end of file diff --git a/src/main/webapp/help-nameResolver.html b/src/main/webapp/help-nameResolver.html index 3b52dbd..be04e89 100644 --- a/src/main/webapp/help-nameResolver.html +++ b/src/main/webapp/help-nameResolver.html @@ -1,5 +1,9 @@
- Choose how to resolve the full name of the authenticated user (you may want to install specific plugins to get more options).
- If none, the full name will not be resolved by this plugin.
- Be aware that not all options may work, as they may come from external plugins with their own configuration strategy.
+ Choose how to resolve the full name of the authenticated user (you may want to install specific plugins to get more options). +
+
+ If "none", the name will not be resolved by this plugin (default).
+ If "any", Jenkins will choose the 1st working resolver.
+
+ Be aware that some options may not work if they come from plugins with their own configuration strategy.
\ No newline at end of file diff --git a/src/main/webapp/help-nameResolver_fr.html b/src/main/webapp/help-nameResolver_fr.html index 77a56c2..2b9bce0 100755 --- a/src/main/webapp/help-nameResolver_fr.html +++ b/src/main/webapp/help-nameResolver_fr.html @@ -1,5 +1,8 @@
Choisissez la manière de résoudre le nom complet de la personne authentifiée (vous pouvez installer d'autres plugins pour agrandir la liste).
- Si vide, le nom complet ne sera pas résolu par ce plugin.
- Certaines combinaisons peuvent ne pas fonctionner, car les résolveurs peuvent provenir de plugins disposant de leur propre stratégie de configuration.
+
+ Si "aucun", le nom ne sera pas résolu par ce plugin (choix par défaut).
+ Si "tous", Jenkins choisira le 1er résolveur fonctionnel.
+
+ Notez que certains choix peuvent ne pas fonctionner s'ils proviennent de plugins disposant de leur propre stratégie de configuration.
\ No newline at end of file