Quellcode durchsuchen

Update language terms

Yannick Warnier vor 9 Jahren
Ursprung
Commit
a18549f5d0

+ 6 - 6
main/inc/lib/extra_field.lib.php

@@ -342,10 +342,10 @@ class ExtraField extends Model
         $types[self::FIELD_TYPE_LETTERS_ONLY] = get_lang('FieldTypeOnlyLetters');
         $types[self::FIELD_TYPE_ALPHANUMERIC] = get_lang('FieldTypeAlphanumeric');
         $types[self::FIELD_TYPE_LETTERS_SPACE] = get_lang(
-            'FieldTypeLettersSpace'
+            'FieldTypeLettersSpaces'
         );
         $types[self::FIELD_TYPE_ALPHANUMERIC_SPACE] = get_lang(
-            'FieldTypeNoPunctuation'
+            'FieldTypeAlphanumericSpaces'
         );
 
         switch ($handler) {
@@ -1455,7 +1455,7 @@ EOF;
                         );
                         break;
                     case ExtraField::FIELD_TYPE_LETTERS_ONLY:
-                        $form->addLettersOnly(
+                        $form->addTextLettersOnly(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );
@@ -1470,7 +1470,7 @@ EOF;
                         }
                         break;
                     case ExtraField::FIELD_TYPE_ALPHANUMERIC:
-                        $form->addAlphanumeric(
+                        $form->addTextAlphanumeric(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );
@@ -1487,7 +1487,7 @@ EOF;
                         }
                         break;
                     case ExtraField::FIELD_TYPE_LETTERS_SPACE:
-                        $form->addLettersAndSpaces(
+                        $form->addTextLettersAndSpaces(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );
@@ -1502,7 +1502,7 @@ EOF;
                         }
                         break;
                     case ExtraField::FIELD_TYPE_ALPHANUMERIC_SPACE:
-                        $form->addAlphanumericAndSpaces(
+                        $form->addTextAlphanumericAndSpaces(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );

+ 7 - 7
main/inc/lib/formvalidator/FormValidator.class.php

@@ -1040,7 +1040,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addLettersOnly(
+    public function addTextLettersOnly(
         $name,
         $label,
         $required = false,
@@ -1087,7 +1087,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addAlphanumeric(
+    public function addTextAlphanumeric(
         $name,
         $label,
         $required = false,
@@ -1134,7 +1134,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addLettersAndSpaces(
+    public function addTextLettersAndSpaces(
         $name,
         $label,
         $required = false,
@@ -1145,7 +1145,7 @@ EOT;
             $attributes,
             [
                 'pattern' => '[a-zA-ZñÑ\s]+',
-                'title' => get_lang('OnlyLettersAndSpace')
+                'title' => get_lang('OnlyLettersAndSpaces')
             ]
         );
 
@@ -1154,7 +1154,7 @@ EOT;
             $name,
             [
                 $label,
-                get_lang('OnlyLettersAndSpace')
+                get_lang('OnlyLettersAndSpaces')
             ],
             $attributes
         );
@@ -1167,7 +1167,7 @@ EOT;
 
         $this->addRule(
             $name,
-            get_lang('OnlyLettersAndSpace'),
+            get_lang('OnlyLettersAndSpaces'),
             'regex',
             '/^[a-zA-ZñÑ\s]+$/'
         );
@@ -1181,7 +1181,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addAlphanumericAndSpaces(
+    public function addTextAlphanumericAndSpaces(
         $name,
         $label,
         $required = false,

+ 1 - 1
main/lang/english/trad4all.inc.php

@@ -7488,4 +7488,4 @@ $FieldTypeLettersSpaces = "Text letters and spaces";
 $CronRemindCourseFinishedActivateTitle = "Send course finished notification";
 $FieldTypeAlphanumericSpaces = "Text alphanumeric characters and spaces";
 $CronRemindCourseFinishedActivateComment = "Whether to send an e-mail to students when their course (session) is finished. This requires cron tasks to be configured (see main/cron/ directory).";
-?>
+?>

+ 1 - 1
main/lang/spanish/trad4all.inc.php

@@ -7511,4 +7511,4 @@ $OnlyLettersAndSpaces = "Sólo letras y espacios";
 $OnlyLettersAndNumbersAndSpaces = "Sólo letras, números y espacios";
 $FieldTypeLettersSpaces = "Texto de letras y espacios";
 $FieldTypeAlphanumericSpaces = "Texto de caracteres alfanuméricos y espacios";
-?>
+?>