Skip to content

Commit

Permalink
Make sure translations are loaded using the `load_plugin_textdomain()…
Browse files Browse the repository at this point in the history
…` function
  • Loading branch information
imath committed Feb 3, 2021
1 parent 7643fb0 commit 39023ee
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 37 deletions.
10 changes: 9 additions & 1 deletion inc/class-wp-saml-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new WP_SAML_Auth;
add_action( 'init', array( self::$instance, 'action_init' ) );
add_action( 'plugins_loaded', array( self::$instance, 'load_textdomain' ) );
}
return self::$instance;
}
Expand Down Expand Up @@ -108,7 +109,6 @@ public function action_init() {
add_filter( 'login_body_class', array( $this, 'filter_login_body_class' ) );
add_filter( 'authenticate', array( $this, 'filter_authenticate' ), 21, 3 ); // after wp_authenticate_username_password runs.
add_action( 'admin_notices', array( $this, 'action_admin_notices' ) );

}

/**
Expand Down Expand Up @@ -399,4 +399,12 @@ public function action_admin_notices() {
}
}

/**
* Loads Plugin translation files.
*
* @since 1.?.?
*/
public function load_textdomain() {
load_plugin_textdomain( 'wp-saml-auth', false, dirname( plugin_basename( __FILE__ ), 2 ) . '/languages' );
}
}
Binary file modified languages/wp-saml-auth-fr_FR.mo
Binary file not shown.
278 changes: 242 additions & 36 deletions languages/wp-saml-auth-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,248 @@ msgid ""
msgstr ""
"Project-Id-Version: WP SAML Auth 0.3.9\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-saml-auth\n"
"POT-Creation-Date: 2018-04-04 07:55:43+00:00\n"
"POT-Creation-Date: 2020-12-01T13:07:52+00:00\n"
"PO-Revision-Date: 2021-02-03 08:16+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-04-04 10:22+0200\n"
"Language-Team: \n"
"X-Generator: Poedit 2.0.6\n"
"Last-Translator: \n"
"X-Generator: Poedit 1.7.4\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language: fr_FR\n"
"X-Poedit-SourceCharset: UTF-8\n"

#. Translators: Links to the WP SAML Auth plugin.
#: inc/class-wp-saml-auth.php:82
#. Plugin Name of the plugin
#: inc/class-wp-saml-auth-settings.php:95
msgid "WP SAML Auth"
msgstr "WP SAML Auth"

#. Plugin URI of the plugin
msgid "https://wordpress.org/plugins/wp-saml-auth/"
msgstr "https://fr.wordpress.org/plugins/wp-saml-auth/"

#. Description of the plugin
msgid "SAML authentication for WordPress, using SimpleSAMLphp."
msgstr "Authentification SAML pour WordPress utilisant SimpleSAMLphp."

#. Author of the plugin
msgid "Pantheon"
msgstr "Pantheon"

#. Author URI of the plugin
msgid "https://pantheon.io"
msgstr "https://pantheon.io"

#: inc/class-wp-saml-auth-settings.php:94
#: inc/class-wp-saml-auth-settings.php:145
msgid "WP SAML Auth Settings"
msgstr "Réglages de WP SAML Auth"

#. translators: Link to the plugin settings page.
#: inc/class-wp-saml-auth-settings.php:150
msgid ""
"WP SAML Auth wasn't able to find the <code>OneLogin_Saml2_Auth</code> class. "
"Please verify your Composer autoloader, or <a href='%s'>visit the plugin "
"page</a> for more information."
"Settings are defined with a filter and unavailable for editing through the "
"backend. <a href=\"%s\">Visit the plugin page</a> for more information."
msgstr ""
"Le plugin <code>WP SAML Auth</code> n’a pas trouvé la class "
"<code>OneLogin_Saml2_Auth</code>. Merci de vérifier l’<code>autoloader</"
"code> dans votre configuration du <code>Composer</code>, ou <a "
"href=‘%s’>allez sur la page du plugin</a> pour plus d’informations."
"Les réglages sont définis à l’aide d’un filtre et ne peuvent pas être "
"modifiés depuis l’administration. <a href=\"%s\">Consulter la page de "
"l’extension</a> pour plus d’information."

#. Translators: Links to the WP SAML Auth plugin.
#: inc/class-wp-saml-auth.php:103
#. translators: Link to the plugin settings page.
#: inc/class-wp-saml-auth-settings.php:157
msgid ""
"WP SAML Auth wasn't able to find the <code>%1$s</code> class. Please check "
"the <code>simplesamlphp_autoload</code> configuration option, or <a "
"href='%2$s'>visit the plugin page</a> for more information."
"Use the following settings to configure WP SAML Auth with the 'internal' "
"connection type. <a href=\"%s\">Visit the plugin page</a> for more "
"information."
msgstr ""
"Le plugin <code>WP SAML Auth</code> n’a pas trouvé la classe <code>%1$s</"
"code>. Merci de vérifier l’option de configuration "
"<code>simplesamlphp_autoload</code>, ou <a href=‘%2$s’>allez sur la page du "
"plugin</a> pour plus d’informations."
"Utiliser les réglages suivants pour configurer WP SAML Auth selon le type de "
"connexion « interne ». <a href=\"%s\">Consulter la page de l’extension</a> "
"pour plus d’information."

#: inc/class-wp-saml-auth-settings.php:161
msgid "Settings are actively applied to WP SAML Auth configuration."
msgstr ""
"Les réglages sont effectivement appliqués à la configuration de WP SAML Auth."

#: inc/class-wp-saml-auth-settings.php:163
msgid "Some required settings don't have values, so WP SAML Auth isn't active."
msgstr ""
"Certains réglages obligatoires sont non renseignés, alors WP SAML Auth n’est "
"pas actif."

#: inc/class-wp-saml-auth.php:152
#: inc/class-wp-saml-auth-settings.php:184
msgid "Settings"
msgstr "Réglages"

#. translators: Field label.
#: inc/class-wp-saml-auth-settings.php:215
msgid "%s is a required field"
msgstr "%s est un champ obligatoire"

#. translators: Field label.
#: inc/class-wp-saml-auth-settings.php:239
msgid "%s is not a valid URL."
msgstr "%s n’est pas une URL valide."

#. translators: Field label.
#: inc/class-wp-saml-auth-settings.php:253
msgid "%s is not a valid certificate path."
msgstr "%s n’est pas un chemin valide pour le certificat."

#: inc/class-wp-saml-auth-settings.php:293
msgid "Service Provider Settings"
msgstr "Réglages du fournisseur de service"

#: inc/class-wp-saml-auth-settings.php:294
msgid "Identity Provider Settings"
msgstr "Réglages de fournisseur d’identité"

#: inc/class-wp-saml-auth-settings.php:295
msgid "Attribute Mappings"
msgstr "Correspondance des attributs"

#: inc/class-wp-saml-auth-settings.php:311
msgid "Auto Provision"
msgstr "Provision automatique"

#: inc/class-wp-saml-auth-settings.php:313
msgid ""
"If checked, create a new WordPress user upon login. <br>If unchecked, "
"WordPress user will already need to exist in order to log in."
msgstr ""
"Si coché, tout nouvel utilisateur WordPress se connectant sera créé suite à "
"son authentification. <br>Si non coché, l’utilisateur WordPress devra "
"exister pour pouvoir s'authentifier."

#: inc/class-wp-saml-auth-settings.php:319
msgid "Permit WordPress login"
msgstr "Autoriser la connexion via WordPress"

#: inc/class-wp-saml-auth-settings.php:321
msgid ""
"If checked, WordPress user can also log in with the standard username and "
"password flow."
msgstr ""
"Si coché, l’utilisateur WordPress pourra également s’authentifier à l’aide "
"du processus standard basé sur un nom d’utilisateur et un mot de passe."

#: inc/class-wp-saml-auth-settings.php:327
msgid "Get User By"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:333
msgid "Attribute by which SAML requests are matched to WordPress users."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:339
msgid "Base URL"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:341
msgid "The base url to be used when constructing URLs."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:348
#: inc/class-wp-saml-auth-settings.php:368
msgid "Entity Id (Required)"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:351
msgid "SP (WordPress) entity identifier."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:358
msgid "Assertion Consumer Service URL (Required)"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:360
msgid ""
"URL where the response from the IdP should be returned (usually the login "
"URL)."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:370
msgid "IdP entity identifier."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:376
msgid "Single SignOn Service URL (Required)"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:378
msgid ""
"URL of the IdP where the SP (WordPress) will send the authentication request."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:384
msgid "Single Logout Service URL"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:386
msgid "URL of the IdP where the SP (WordPress) will send the signout request."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:391
msgid "x509 Cerificate Path"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:393
msgid ""
"Path to the x509 certificate file, used for verifying the request.<br/"
">Include <code>ABSPATH</code> to set path base to WordPress' ABSPATH "
"constant."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:398
msgid "Certificate Fingerprint"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:400
msgid ""
"If not using x509 certificate, paste the certificate fingerprint and specify "
"the fingerprint algorithm below."
msgstr ""

#: inc/class-wp-saml-auth-settings.php:405
msgid "Certificate Fingerprint Algorithm"
msgstr ""

#: inc/class-wp-saml-auth-settings.php:408
msgid "N/A"
msgstr ""

#: inc/class-wp-saml-auth.php:147
msgid "Use one-click authentication:"
msgstr "Utilisez l’authentification unique:"

#: inc/class-wp-saml-auth.php:153
#: inc/class-wp-saml-auth.php:148
msgid "Sign In"
msgstr "Connectez-vous"

#: inc/class-wp-saml-auth.php:154
#: inc/class-wp-saml-auth.php:149
msgid "Or, sign in with WordPress:"
msgstr "Ou connectez-vous à votre compte WordPress:"

#. Translators: Includes error reason from OneLogin.
#: inc/class-wp-saml-auth.php:238
#: inc/class-wp-saml-auth.php:234
msgid "User is not authenticated with SAML IdP. Reason: %s"
msgstr ""
"L’utilisateur n’est pas authentifié par le fournisseur d’identité (IdP) SAML "
"en raison de : %s"

#: inc/class-wp-saml-auth.php:277
#: inc/class-wp-saml-auth.php:287
msgid "Invalid provider specified for SAML authentication"
msgstr "Le fournisseur renseigné pour l’authentification SAML est invalide"

#. Translators: Communicates how the user is fetched based on the SAML
#. response.
#: inc/class-wp-saml-auth.php:297
#: inc/class-wp-saml-auth.php:312
msgid ""
"No attributes were present in SAML response. Attributes are used to create "
"and fetch users. Please contact your administrator"
msgstr ""

#. Translators: Communicates how the user is fetched based on the SAML response.
#: inc/class-wp-saml-auth.php:319
msgid ""
"\"%1$s\" attribute is expected, but missing, in SAML response. Attribute is "
"used to fetch existing user by \"%2$s\". Please contact your administrator."
Expand All @@ -73,13 +254,38 @@ msgstr ""
"L’attribut est utilisé pour trouver l’utilisateur existant par « %2$s ». "
"Merci de contacter l’administrateur du site."

#: inc/class-wp-saml-auth.php:312
#: inc/class-wp-saml-auth.php:334
msgid ""
"No WordPress user exists for your account. Please contact your administrator."
msgstr ""
"Utilisateur WordPress introuvable pour votre compte. Merci de contacter "
"l’administrateur du site."

#. Description of the plugin/theme
msgid "SAML authentication for WordPress, using SimpleSAMLphp."
msgstr "Authentification SAML pour WordPress qui utilise SimpleSAMLphp."
#. Translators: Links to the WP SAML Auth plugin.
#: inc/class-wp-saml-auth.php:386
msgid ""
"WP SAML Auth wasn't able to find the <code>OneLogin\\Saml2\\Auth</code> "
"class. Please verify your Composer autoloader, or <a href='%s'>visit the "
"plugin page</a> for more information."
msgstr ""

#: inc/class-wp-saml-auth.php:397
msgid ""
"WP SAML Auth wasn't able to find the <code>%1$s</code> class. Please check "
"the <code>simplesamlphp_autoload</code> configuration option, or <a "
"href='%2$s'>visit the plugin page</a> for more information."
msgstr ""
"Le plugin <code>WP SAML Auth</code> n’a pas trouvé la classe <code>%1$s</"
"code>. Merci de vérifier l’option de configuration "
"<code>simplesamlphp_autoload</code>, ou <a href=‘%2$s’>allez sur la page du "
"plugin</a> pour plus d’informations."

#~ msgid ""
#~ "WP SAML Auth wasn't able to find the <code>OneLogin_Saml2_Auth</code> "
#~ "class. Please verify your Composer autoloader, or <a href='%s'>visit the "
#~ "plugin page</a> for more information."
#~ msgstr ""
#~ "Le plugin <code>WP SAML Auth</code> n’a pas trouvé la class "
#~ "<code>OneLogin_Saml2_Auth</code>. Merci de vérifier l’<code>autoloader</"
#~ "code> dans votre configuration du <code>Composer</code>, ou <a "
#~ "href=‘%s’>allez sur la page du plugin</a> pour plus d’informations."

0 comments on commit 39023ee

Please sign in to comment.