Skip to content

Commit 6a37d05

Browse files
authored
fix grammatical and wording errors
1 parent bc750ef commit 6a37d05

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

onelogin-saml-sso/php/configuration.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ function plugin_setting_boolean_onelogin_saml_slo() {
233233
$value = get_option('onelogin_saml_slo');
234234
echo '<input type="checkbox" name="onelogin_saml_slo" id="onelogin_saml_slo"
235235
'.($value ? 'checked="checked"': '').'>'.
236-
'<p class="description">'.__('Enable/disable Single Log Out. SLO is a complex functionality, the most common SLO implementation is based on front-channel (redirections), sometimes if the SLO workflow fails a user can be blocked in an unhandled view. If the admin does not controls the set of apps involved in the SLO process maybe is better to disable this functionality due could carry more problems than benefits.', 'onelogin-saml-sso').'</p>';
236+
'<p class="description">'.__('Enable/disable Single Log Out. SLO is a complex functionality, the most common SLO implementation is based on front-channel (redirections), sometimes if the SLO workflow fails a user can be blocked in an unhandled view. If the admin does not control the set of apps involved in the SLO process, you may want to disable this functionality to avoid more problems than benefits.', 'onelogin-saml-sso').'</p>';
237237
}
238238

239239
function plugin_setting_boolean_onelogin_saml_keep_local_login() {
240240
$value = get_option('onelogin_saml_keep_local_login');
241241
echo '<input type="checkbox" name="onelogin_saml_keep_local_login" id="onelogin_saml_keep_local_login"
242242
'.($value ? 'checked="checked"': '').'>'.
243-
'<p class="description">'.__('Enable/disable the normal login form. If disabled, instead of prompt the login form, WP will excecute directly the SP-initiated SSO flow. If enabled the normal login form is showed and a link to initiate that flow is prompted.', 'onelogin-saml-sso').'</p>';
243+
'<p class="description">'.__('Enable/disable the normal login form. If disabled, instead of the WordPress login form, WordPress will excecute the SP-initiated SSO flow. If enabled the normal login form is displayed and a link to initiate that flow is displayed.', 'onelogin-saml-sso').'</p>';
244244
}
245245

246246
function plugin_setting_select_onelogin_saml_account_matcher() {
@@ -250,14 +250,14 @@ function plugin_setting_select_onelogin_saml_account_matcher() {
250250
<option value="username" '.($value == 'username'?'selected="selected"':'').'>'.__("Username", 'onelogin-saml-sso').'</option>
251251
<option value="email" '.($value == 'email'? 'selected="selected"':'').'>'.__("E-mail", 'onelogin-saml-sso').'</option>
252252
</select>'.
253-
'<p class="description">'.__("Select what field will be used in order to find the user account. If you select the 'email' fieldname the plugin will prevent that the user can change his mail in his profile.", 'onelogin-saml-sso').'</p>';
253+
'<p class="description">'.__('Select what field will be used in order to find the user account. If "email", the plugin will prevent the user from changing their email address in their user profile.', 'onelogin-saml-sso').'</p>';
254254
}
255255

256256
function plugin_setting_boolean_onelogin_saml_alternative_acs() {
257257
$value = get_option('onelogin_saml_alternative_acs');
258258
echo '<input type="checkbox" name="onelogin_saml_alternative_acs" id="onelogin_saml_alternative_acs"
259259
'.($value ? 'checked="checked"': '').'>'.
260-
'<p class="description">'.__('Enable it if you want to use a different Assertion Consumer endpoint than the /wp-login.php?saml_acs (Required if using WPEngine or any similar hosting service that prevent POST on wp-login.php). If you enable/disable it, after saving the metadata of the SP changes so update the IdP with the new value', 'onelogin-saml-sso').'</p>';
260+
'<p class="description">'.__('Enable if you want to use a different Assertion Consumer Endpoint than <code>/wp-login.php?saml_acs</code> (Required if using WPEngine or any similar hosting service that prevents POST on <code>wp-login.php</code>). You must update the IdP with the new value after enabling/disabling this setting.', 'onelogin-saml-sso').'</p>';
261261
}
262262

263263
function plugin_setting_string_onelogin_saml_attr_mapping_username() {
@@ -300,48 +300,48 @@ function plugin_setting_boolean_onelogin_saml_role_mapping_multivalued_in_one_at
300300
$value = get_option('onelogin_saml_role_mapping_multivalued_in_one_attribute_value');
301301
echo '<input type="checkbox" name="onelogin_saml_role_mapping_multivalued_in_one_attribute_value" id="onelogin_saml_role_mapping_multivalued_in_one_attribute_value"
302302
'.($value ? 'checked="checked"': '').'>
303-
<p class="description">'.__("Sometimes role values are provided in an unique attribute statement (instead multiple attribute statements). Active it and the plugin will try to split those values by ;<br>Use the regular pattern in order to extract complex data", 'onelogin-saml-sso').'</p>';
303+
<p class="description">'.__("Sometimes role values are provided in an unique attribute statement (instead multiple attribute statements). If that is the case, activate this and the plugin will try to split those values by ;<br>Use a regular expression pattern in order to extract complex data.", 'onelogin-saml-sso').'</p>';
304304
}
305305

306306
function plugin_setting_string_onelogin_saml_role_mapping_multivalued_pattern() {
307307
echo '<input type="text" name="onelogin_saml_role_mapping_multivalued_pattern" id="onelogin_saml_role_mapping_multivalued_pattern"
308308
value= "'.get_option('onelogin_saml_role_mapping_multivalued_pattern').'" size="70">
309-
<p class="description">'.__("Regular expression that extract roles from complex multivalued data (require to active the previous boolean).<br> Ex. If the SAMLResponse has a role attribute like: CN=admin;CN=superuser;CN=europe-admin; , use the regular expression /CN=([A-Z0-9\s _-]*);/i to retrieve the values. Or use /CN=([^,;]*)/", 'onelogin-saml-sso').'</p>';
309+
<p class="description">'.__("Regular expression that extract roles from complex multivalued data (required to active the previous option).<br> E.g. If the SAMLResponse has a role attribute like: CN=admin;CN=superuser;CN=europe-admin; , use the regular expression <code>/CN=([A-Z0-9\s _-]*);/i</code> to retrieve the values. Or use <code>/CN=([^,;]*)/</code>", 'onelogin-saml-sso').'</p>';
310310
}
311311

312312
function plugin_setting_boolean_onelogin_saml_customize_action_prevent_local_login() {
313313
$value = get_option('onelogin_saml_customize_action_prevent_local_login');
314314
echo '<input type="checkbox" name="onelogin_saml_customize_action_prevent_local_login" id="onelogin_saml_customize_action_prevent_local_login"
315315
'.($value ? 'checked="checked"': '').'>
316-
<p class="description">'.__("Check it in order to disable the ?normal option in order to offer the local login when it is not enabled.", 'onelogin-saml-sso').'</p>';
316+
<p class="description">'.__("Check to disable the <code>?normal</code> option and offer the local login when it is not enabled.", 'onelogin-saml-sso').'</p>';
317317
}
318318

319319
function plugin_setting_boolean_onelogin_saml_customize_action_prevent_reset_password() {
320320
$value = get_option('onelogin_saml_customize_action_prevent_reset_password');
321321
echo '<input type="checkbox" name="onelogin_saml_customize_action_prevent_reset_password" id="onelogin_saml_customize_action_prevent_reset_password"
322322
'.($value ? 'checked="checked"': '').'>
323-
<p class="description">'.__("Check it in order to disable the ability of reset the password on WordPress.", 'onelogin-saml-sso').'</p>';
323+
<p class="description">'.__("Check to disable resetting passwords in WordPress.", 'onelogin-saml-sso').'</p>';
324324
}
325325

326326
function plugin_setting_boolean_onelogin_saml_customize_action_prevent_change_password() {
327327
$value = get_option('onelogin_saml_customize_action_prevent_change_password');
328328
echo '<input type="checkbox" name="onelogin_saml_customize_action_prevent_change_password" id="onelogin_saml_customize_action_prevent_change_password"
329329
'.($value ? 'checked="checked"': '').'>
330-
<p class="description">'.__("Check it in order to disable the ability of change the password on WordPress.", 'onelogin-saml-sso').'</p>';
330+
<p class="description">'.__("Check to disable changing passwords in WordPress.", 'onelogin-saml-sso').'</p>';
331331
}
332332

333333
function plugin_setting_boolean_onelogin_saml_customize_action_prevent_change_mail() {
334334
$value = get_option('onelogin_saml_customize_action_prevent_change_mail');
335335
echo '<input type="checkbox" name="onelogin_saml_customize_action_prevent_change_mail" id="onelogin_saml_customize_action_prevent_change_mail"
336336
'.($value ? 'checked="checked"': '').'>
337-
<p class="description">'.__("Check it in order to disable the ability of change the mail on WordPress (we recommend that if you are using mail as the account matcher field.", 'onelogin-saml-sso').'</p>';
337+
<p class="description">'.__("Check to disable changing the email addresses in WordPress (recommended if you are using email to match accounts).", 'onelogin-saml-sso').'</p>';
338338
}
339339

340340
function plugin_setting_boolean_onelogin_saml_customize_stay_in_wordpress_after_slo() {
341341
$value = get_option('onelogin_saml_customize_stay_in_wordpress_after_slo');
342342
echo '<input type="checkbox" name="onelogin_saml_customize_stay_in_wordpress_after_slo" id="onelogin_saml_customize_stay_in_wordpress_after_slo"
343343
'.($value ? 'checked="checked"': '').'>
344-
<p class="description">'.__("If SLO and Force SAML login are enabled, after the SLO process you will be redirected to the WP main page and a SAML SSO process will start, to prevent that check this and you will stay at the WordPress Login Form. ", 'onelogin-saml-sso').'</p>';
344+
<p class="description">'.__("If SLO and Force SAML login are enabled, after the SLO process you will be redirected to the WordPress main page and a SAML SSO process will start. Check this to prevent that and stay at the WordPress login form. ", 'onelogin-saml-sso').'</p>';
345345
}
346346

347347
function plugin_setting_string_onelogin_saml_customize_links_user_registration() {
@@ -353,28 +353,28 @@ function plugin_setting_string_onelogin_saml_customize_links_user_registration()
353353
function plugin_setting_string_onelogin_saml_customize_links_lost_password() {
354354
echo '<input type="text" name="onelogin_saml_customize_links_lost_password" id="onelogin_saml_customize_links_lost_password"
355355
value= "'.get_option('onelogin_saml_customize_links_lost_password').'" size="80">
356-
<p class="description">'.__("Override the lost password link. (prevent reset password must be deactivated or always the SAMl SSO will be forced)", 'onelogin-saml-sso').'</p>';
356+
<p class="description">'.__("Override the lost password link. (Prevent reset password must be deactivated or the SAML SSO will be used.)", 'onelogin-saml-sso').'</p>';
357357
}
358358

359359
function plugin_setting_string_onelogin_saml_customize_links_saml_login() {
360360
echo '<input type="text" name="onelogin_saml_customize_links_saml_login" id="onelogin_saml_customize_links_saml_login"
361361
value= "'.get_option('onelogin_saml_customize_links_saml_login').'" size="80">
362-
<p class="description">'.__("If 'Keep Local login' enabled, this will be showed as message at the SAML Link.", 'onelogin-saml-sso').'</p>';
362+
<p class="description">'.__("If 'Keep Local login' enabled, this will be showed as message at the SAML link.", 'onelogin-saml-sso').'</p>';
363363
}
364364

365365
function plugin_setting_boolean_onelogin_saml_advanced_settings_debug() {
366366
$value = get_option('onelogin_saml_advanced_settings_debug');
367367
echo '<input type="checkbox" name="onelogin_saml_advanced_settings_debug" id="onelogin_saml_advanced_settings_debug"
368368
'.($value ? 'checked="checked"': '').'>'.
369-
'<p class="description">'.__('Enable it when your are debugging the SAML workflow. Errors and Warnigs will be showed.', 'onelogin-saml-sso').'</p>';
369+
'<p class="description">'.__('Enable for debugging the SAML workflow. Errors and Warnigs will be shown.', 'onelogin-saml-sso').'</p>';
370370
}
371371

372372
function plugin_setting_boolean_onelogin_saml_advanced_settings_strict_mode() {
373373
$value = get_option('onelogin_saml_advanced_settings_strict_mode');
374374
echo '<input type="checkbox" name="onelogin_saml_advanced_settings_strict_mode" id="onelogin_saml_advanced_settings_strict_mode"
375375
'.($value ? 'checked="checked"': '').'>'.
376-
'<p class="description">'.__("If Strict mode is Enabled, then WordPress will reject unsigned or unencrypted messages if it expects them signed or encrypted.
377-
Also will reject the messages if not strictly follow the SAML standard: Destination, NameId, Conditions ... are validated too.", 'onelogin-saml-sso').'</p>';
376+
'<p class="description">'.__("If Strict Mode is enabled, WordPress will reject unsigned or unencrypted messages if it expects them signed or encrypted.
377+
It will also reject messages if not strictly following the SAML standard: Destination, NameId, Conditions ... are also validated.", 'onelogin-saml-sso').'</p>';
378378
}
379379

380380
function plugin_setting_string_onelogin_saml_advanced_settings_sp_entity_id() {
@@ -437,21 +437,21 @@ function plugin_setting_string_onelogin_saml_advanced_settings_sp_x509cert() {
437437
echo '<textarea name="onelogin_saml_advanced_settings_sp_x509cert" id="onelogin_saml_advanced_settings_sp_x509cert" style="width:600px; height:220px; font-size:12px; font-family:courier,arial,sans-serif;">';
438438
echo get_option('onelogin_saml_advanced_settings_sp_x509cert');
439439
echo '</textarea>';
440-
echo '<p class="description">'.__('Public x509 certificate of the SP. Leave this field empty if you gonna provide the cert by the sp.crt', 'onelogin-saml-sso');
440+
echo '<p class="description">'.__('Public x509 certificate of the SP. Leave this field empty if you are providing the cert by the sp.crt.', 'onelogin-saml-sso');
441441
}
442442

443443
function plugin_setting_string_onelogin_saml_advanced_settings_sp_privatekey() {
444444
echo '<textarea name="onelogin_saml_advanced_settings_sp_privatekey" id="onelogin_saml_advanced_settings_sp_privatekey" style="width:600px; height:220px; font-size:12px; font-family:courier,arial,sans-serif;">';
445445
echo get_option('onelogin_saml_advanced_settings_sp_privatekey');
446446
echo '</textarea>';
447-
echo '<p class="description">'.__('Private Key of the SP. Leave this field empty if you gonna provide the private key by the sp.key', 'onelogin-saml-sso');
447+
echo '<p class="description">'.__('Private Key of the SP. Leave this field empty if you are providing the private key by the sp.key.', 'onelogin-saml-sso');
448448
}
449449

450450
function plugin_setting_boolean_onelogin_saml_advanced_settings_retrieve_parameters_from_server() {
451451
$value = get_option('onelogin_saml_advanced_settings_retrieve_parameters_from_server', false);
452452
echo '<input type="checkbox" name="onelogin_saml_advanced_settings_retrieve_parameters_from_server" id="onelogin_saml_advanced_settings_retrieve_parameters_from_server"
453453
'.($value ? 'checked="checked"': '').'>'.
454-
'<p class="description">'.__('Sometimes when the app is behind a firewall or proxy, the query parameters can be modified an this affects the signature validation process on HTTP-Redirectbinding. Active this when you noticed signature validation failures, the plugin will try to extract the original query parameters.', 'onelogin-saml-sso').'</p>';
454+
'<p class="description">'.__('Sometimes when the app is behind a firewall or proxy, the query parameters can be modified an this affects the signature validation process on HTTP-Redirectbinding. Active this if you are seeing signature validation failures. The plugin will try to extract the original query parameters.', 'onelogin-saml-sso').'</p>';
455455
}
456456

457457
function plugin_setting_select_onelogin_saml_advanced_nameidformat() {
@@ -506,33 +506,33 @@ function plugin_setting_select_onelogin_saml_advanced_requestedauthncontext() {
506506
}
507507

508508
function plugin_section_idp_text() {
509-
echo "<p>".__("Set here some info related to the IdP that will be connected with our WordPress. You can find this values at the Onelogin's platform in the WordPress App at the Single Sign-On tab", 'onelogin-saml-sso')."</p>";
509+
echo "<p>".__("Set information relating to the IdP that will be connected with our WordPress. You can find these values at the Onelogin's platform inside WordPress on the Single Sign-On tab.", 'onelogin-saml-sso')."</p>";
510510
}
511511

512512
function plugin_section_options_text() {
513-
echo "<p>".__("In this section the behavior of the plugin is set.", 'onelogin-saml-sso')."</p>";
513+
echo "<p>".__("This section customizes the behavior of the plugin.", 'onelogin-saml-sso')."</p>";
514514
}
515515

516516
function plugin_section_attr_mapping_text() {
517-
echo "<p>".__("Sometimes the names of the attributes sent by the IdP not match the names used by WordPress for the user accounts. In this section we can set the mapping between IdP fields and WordPress fields. Notice that this mapping could be also set at Onelogin's IdP", 'onelogin-saml-sso')."</p>";
517+
echo "<p>".__("Sometimes the names of the attributes sent by the IdP do not match the names used by WordPress for the user accounts. In this section you can set the mapping between IdP fields and WordPress fields. Note: This mapping could be also set at Onelogin's IdP.", 'onelogin-saml-sso')."</p>";
518518
}
519519

520520
function plugin_section_role_mapping_text() {
521-
echo "<p>".__("The IdP can use it's own roles. Set in this section the mapping between IdP and WordPress roles. Accepts multiple valued comma separated. Example: admin,owner,superuser", 'onelogin-saml-sso')."</p>";
521+
echo "<p>".__("The IdP can use its own roles. In this section, you can set the mapping between IdP and WordPress roles. Accepts comma separated values. Example: <code>admin,owner,superuser</code>", 'onelogin-saml-sso')."</p>";
522522
}
523523

524524
function plugin_section_role_order_text() {
525-
echo "<p>".__("In some cases, the IdP returns more than one role. Set in this secion the precedence of the different roles, the smallest integer will be the role chosen.", 'onelogin-saml-sso')."</p>";
525+
echo "<p>".__("In some cases, the IdP returns more than one role. In this secion, you can set the precedence of the different roles. The smallest integer will be the role chosen.", 'onelogin-saml-sso')."</p>";
526526
}
527527

528528
function plugin_section_customize_links_text() {
529-
echo "<p>".__("When we enable the SAML SSO to be integrated with a IdP some WordPress actions and links could be changed. In this section you will be able to enable or disable the ability of change the mail, change the password and reset the password. Also can override the user registration and the lost password links", 'onelogin-saml-sso')."</p>";
529+
echo "<p>".__("When SAML SSO is enabled to be integrated with an IdP, some WordPress actions and links could be changed. In this section, you will be able to enable or disable the ability for users to change their email address, password and reset their password. You can also override the user registration and the lost password links.", 'onelogin-saml-sso')."</p>";
530530
}
531531

532532
function plugin_section_advanced_settings_text() {
533-
echo "<p>".__("Handle some other parameters related to customizations and security issues.<br>If sign/encryption is enabled, then x509 cert and private key for the SP must be provided. There are 2 ways:<br>
534-
1. Store them as files named sp.key and sp.crt on the 'certs' folder of the plugin. (be sure that the folder is protected and not exposed to internet)<br>
535-
2. Store them at the database, filling the corresponding textareas. (take care of security issues)", 'onelogin-saml-sso')."</p>";
533+
echo "<p>".__("Handle some other parameters related to customizations and security issues.<br>If signing/encryption is enabled, then x509 cert and private key for the SP must be provided. There are 2 ways:<br>
534+
1. Store them as files named sp.key and sp.crt on the 'certs' folder of the plugin. (Make sure that the <code>/cert</code> folder is read-protected and not exposed to internet.)<br>
535+
2. Store them at the database, filling the corresponding textareas.", 'onelogin-saml-sso')."</p>";
536536
}
537537

538538
function plugin_section_text() {}

0 commit comments

Comments
 (0)