Commit 1a74813f authored by soxofaan's avatar soxofaan

#200355: fixed typos with administration/administrator

parent c7bc4bde
...@@ -3,7 +3,7 @@ $Id$ ...@@ -3,7 +3,7 @@ $Id$
### CAPTCHA Readme ### CAPTCHA Readme
captcha.module is the basic CAPTCHA module that offers general CAPTCHA captcha.module is the basic CAPTCHA module that offers general CAPTCHA
adminstration and a simple math challenge. administration and a simple math challenge.
text_captcha offers another simple text based challenge. text_captcha offers another simple text based challenge.
......
...@@ -38,19 +38,19 @@ function captcha_admin($form_id = '', $op = '') { ...@@ -38,19 +38,19 @@ function captcha_admin($form_id = '', $op = '') {
// disable the CAPTCHA for the form: set the module and type to NULL // disable the CAPTCHA for the form: set the module and type to NULL
db_query("UPDATE {captcha_points} SET module = NULL, type = NULL WHERE form_id = '%s'", $form_id); db_query("UPDATE {captcha_points} SET module = NULL, type = NULL WHERE form_id = '%s'", $form_id);
drupal_set_message(t('Disabled CAPTCHA for form %form_id.', array('%form_id' => $form_id))); drupal_set_message(t('Disabled CAPTCHA for form %form_id.', array('%form_id' => $form_id)));
// goto the CAPTCHA adminstration or alternative destination if present in URI // goto the CAPTCHA administration or alternative destination if present in URI
drupal_goto('admin/user/captcha'); drupal_goto('admin/user/captcha');
break; break;
case 'delete': case 'delete':
db_query("DELETE FROM {captcha_points} WHERE form_id = '%s'", $form_id); db_query("DELETE FROM {captcha_points} WHERE form_id = '%s'", $form_id);
drupal_set_message(t('Deleted CAPTCHA for form %form_id.', array('%form_id' => $form_id))); drupal_set_message(t('Deleted CAPTCHA for form %form_id.', array('%form_id' => $form_id)));
// goto the CAPTCHA adminstration or alternative destination if present in URI // goto the CAPTCHA administration or alternative destination if present in URI
drupal_goto('admin/user/captcha'); drupal_goto('admin/user/captcha');
break; break;
case 'enable': case 'enable':
db_query("DELETE FROM {captcha_points} WHERE form_id = '%s'", $form_id); db_query("DELETE FROM {captcha_points} WHERE form_id = '%s'", $form_id);
db_query("INSERT INTO {captcha_points} (form_id, module, type) VALUES ('%s', NULL, NULL)", $form_id); db_query("INSERT INTO {captcha_points} (form_id, module, type) VALUES ('%s', NULL, NULL)", $form_id);
// No drupal_goto() call because we have to go to the CAPTCHA adminstration // No drupal_goto() call because we have to go to the CAPTCHA administration
// form and not a different destination if that would be present in the // form and not a different destination if that would be present in the
// URI. So we call this form explicitly. The destination will be preserved // URI. So we call this form explicitly. The destination will be preserved
// so after completing the form, the user will still be redirected. // so after completing the form, the user will still be redirected.
...@@ -68,10 +68,10 @@ function captcha_admin($form_id = '', $op = '') { ...@@ -68,10 +68,10 @@ function captcha_admin($form_id = '', $op = '') {
* Form builder function for the general CAPTCHA configuration * Form builder function for the general CAPTCHA configuration
*/ */
function captcha_admin_settings() { function captcha_admin_settings() {
// field for the CAPTCHA adminstration mode // field for the CAPTCHA administration mode
$form['captcha_administration_mode'] = array( $form['captcha_administration_mode'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Add CAPTCHA adminstration links to forms'), '#title' => t('Add CAPTCHA administration links to forms'),
'#default_value' => variable_get('captcha_administration_mode', FALSE), '#default_value' => variable_get('captcha_administration_mode', FALSE),
'#description' => t('This option is very helpful to enable/disable challenges on forms. When enabled, users with the "%admincaptcha" permission will see CAPTCHA administration links on all forms (except on administrative pages, which shouldn\'t be accessible to untrusted users in the first place). These links make it possible to enable a challenge of the desired type or disable it.', array('%admincaptcha' => 'administer CAPTCHA settings')), '#description' => t('This option is very helpful to enable/disable challenges on forms. When enabled, users with the "%admincaptcha" permission will see CAPTCHA administration links on all forms (except on administrative pages, which shouldn\'t be accessible to untrusted users in the first place). These links make it possible to enable a challenge of the desired type or disable it.', array('%admincaptcha' => 'administer CAPTCHA settings')),
); );
...@@ -79,7 +79,7 @@ function captcha_admin_settings() { ...@@ -79,7 +79,7 @@ function captcha_admin_settings() {
$form['captcha_types'] = array( $form['captcha_types'] = array(
'#type' => 'fieldset', '#type' => 'fieldset',
'#title' => t('Challenge type per form'), '#title' => t('Challenge type per form'),
'#description' => t('Select the challenge type you want for each of the listed forms (identified by their so called <em>form_id</em>\'s). You can easily add arbitrary forms with the help of the \'%CAPTCHA_admin_links\' option.', array('%CAPTCHA_admin_links' => t('Add CAPTCHA adminstration links to forms'))), '#description' => t('Select the challenge type you want for each of the listed forms (identified by their so called <em>form_id</em>\'s). You can easily add arbitrary forms with the help of the \'%CAPTCHA_admin_links\' option.', array('%CAPTCHA_admin_links' => t('Add CAPTCHA administration links to forms'))),
'#tree' => TRUE, '#tree' => TRUE,
'#collapsible' => TRUE, '#collapsible' => TRUE,
'#collapsed' => FALSE, '#collapsed' => FALSE,
...@@ -239,7 +239,7 @@ function captcha_captcha_point_settings_form($form_state, $form_id) { ...@@ -239,7 +239,7 @@ function captcha_captcha_point_settings_form($form_state, $form_id) {
else { else {
// illegal form_id // illegal form_id
drupal_set_message(t('Unavailable form_id %form_id ', array('%form_id' => $form_id)), 'error'); drupal_set_message(t('Unavailable form_id %form_id ', array('%form_id' => $form_id)), 'error');
// goto the CAPTCHA adminstration or alternative destination if present in URI // goto the CAPTCHA administration or alternative destination if present in URI
drupal_goto('admin/user/captcha'); drupal_goto('admin/user/captcha');
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/** /**
* @file * @file
* This module enables basic CAPTCHA functionality: * This module enables basic CAPTCHA functionality:
* adminstrators can add a CAPTCHA to desired forms that users without * administrators can add a CAPTCHA to desired forms that users without
* the 'skip CAPTCHA' permission (typically anonymous visitors) have * the 'skip CAPTCHA' permission (typically anonymous visitors) have
* to solve. * to solve.
* *
...@@ -38,7 +38,7 @@ function captcha_help($path, $arg) { ...@@ -38,7 +38,7 @@ function captcha_help($path, $arg) {
return t('<p>A CAPTCHA can be added to virtually each Drupal form. Some default forms are already provided in the form list, but arbitrary forms can be easily added and managed when the option "%adminlinks" is enabled.</p><p>Users with the "%skipcaptcha" <a href="@perm">permission</a> won\'t be offered a challenge. Be sure to grant this permission to the trusted users (e.g. site administrators). If you want to test a protected form, be sure to do it as a user without the "%skipcaptcha" permission (e.g. as anonymous user).</p>', return t('<p>A CAPTCHA can be added to virtually each Drupal form. Some default forms are already provided in the form list, but arbitrary forms can be easily added and managed when the option "%adminlinks" is enabled.</p><p>Users with the "%skipcaptcha" <a href="@perm">permission</a> won\'t be offered a challenge. Be sure to grant this permission to the trusted users (e.g. site administrators). If you want to test a protected form, be sure to do it as a user without the "%skipcaptcha" permission (e.g. as anonymous user).</p>',
array( array(
'@perm' => url('admin/user/access'), '@perm' => url('admin/user/access'),
'%adminlinks' => t('Add CAPTCHA adminstration links to forms'), '%adminlinks' => t('Add CAPTCHA administration links to forms'),
'%skipcaptcha' => 'skip CAPTCHA', '%skipcaptcha' => 'skip CAPTCHA',
)); ));
} }
...@@ -151,7 +151,7 @@ function _captcha_persistence_skip($form_id) { ...@@ -151,7 +151,7 @@ function _captcha_persistence_skip($form_id) {
* Implementation of hook_form_alter(). * Implementation of hook_form_alter().
* *
* This function adds a CAPTCHA to forms for untrusted users if needed and adds * This function adds a CAPTCHA to forms for untrusted users if needed and adds
* CAPTCHA adminstration links for site adminstrators if this option is enabled. * CAPTCHA administration links for site administrators if this option is enabled.
*/ */
function captcha_form_alter(&$form, $form_state, $form_id) { function captcha_form_alter(&$form, $form_state, $form_id) {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2007-12-12 11:25+0100\n" "POT-Creation-Date: 2007-12-12 22:59+0100\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n" "Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
...@@ -36,7 +36,7 @@ msgid "Deleted CAPTCHA for form %form_id." ...@@ -36,7 +36,7 @@ msgid "Deleted CAPTCHA for form %form_id."
msgstr "" msgstr ""
#: captcha.admin.inc:74;82 captcha.module:41 #: captcha.admin.inc:74;82 captcha.module:41
msgid "Add CAPTCHA adminstration links to forms" msgid "Add CAPTCHA administration links to forms"
msgstr "" msgstr ""
#: captcha.admin.inc:76 #: captcha.admin.inc:76
......
...@@ -32,7 +32,7 @@ msgid "<p>A captcha can be added to virtually each drupal form (which is identif ...@@ -32,7 +32,7 @@ msgid "<p>A captcha can be added to virtually each drupal form (which is identif
msgstr "<p>Ein CAPTCHA kann zu fast jedem Drupal-Formular (das durch ein <em>form_id</em> identifiziert ist) hinzugefügt werden. Das CAPTCHA-Modul bringt einige Standardformulare mit, denen ein CAPTCHA hinzugefügt werden kann, aber beliebige Formulare können einfach hinzugefügt und verwaltet werden, wenn die Option \"%adminlinks\" aktiviert ist.</p><p>Benutzer mit der \"%skipcaptcha\"-<a href=\"@perm\">Berechtigung</a> bekommen kein CAPTCHA angezeigt. Stellen Sie sicher, dass Sie den vertrauenswürdigen Nutzern (z.B. den Administratoren Ihrer Website) diese Berechtigung geben. Wenn Sie die CAPTCHA-Aufgaben testen wollen, stellen Sie sicher dies als Nutzer ohne die \"%skipcaptcha\"-Berechtigung (z.B. als nichtangemeldeter Nutzer) zu tun.</p>" msgstr "<p>Ein CAPTCHA kann zu fast jedem Drupal-Formular (das durch ein <em>form_id</em> identifiziert ist) hinzugefügt werden. Das CAPTCHA-Modul bringt einige Standardformulare mit, denen ein CAPTCHA hinzugefügt werden kann, aber beliebige Formulare können einfach hinzugefügt und verwaltet werden, wenn die Option \"%adminlinks\" aktiviert ist.</p><p>Benutzer mit der \"%skipcaptcha\"-<a href=\"@perm\">Berechtigung</a> bekommen kein CAPTCHA angezeigt. Stellen Sie sicher, dass Sie den vertrauenswürdigen Nutzern (z.B. den Administratoren Ihrer Website) diese Berechtigung geben. Wenn Sie die CAPTCHA-Aufgaben testen wollen, stellen Sie sicher dies als Nutzer ohne die \"%skipcaptcha\"-Berechtigung (z.B. als nichtangemeldeter Nutzer) zu tun.</p>"
#: captcha.module:33;174 #: captcha.module:33;174
msgid "Add captcha adminstration links to forms" msgid "Add captcha administration links to forms"
msgstr "CAPTCHA-Verwaltungslinks zu Formularen hinzufügen" msgstr "CAPTCHA-Verwaltungslinks zu Formularen hinzufügen"
#: captcha.module:49;59;342 #: captcha.module:49;59;342
......
...@@ -48,7 +48,7 @@ msgid "Deleted captcha for form %form_id." ...@@ -48,7 +48,7 @@ msgid "Deleted captcha for form %form_id."
msgstr "Διαγράφηκε το captcha για τη φόρμα %form_id." msgstr "Διαγράφηκε το captcha για τη φόρμα %form_id."
#: captcha.module:154 #: captcha.module:154
msgid "Add captcha adminstration links to forms." msgid "Add captcha administration links to forms."
msgstr "Προσθήκη των παραπομπών διαχείρισης του captcha στις φόρμες." msgstr "Προσθήκη των παραπομπών διαχείρισης του captcha στις φόρμες."
#: captcha.module:156 #: captcha.module:156
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment