Write Latin and other scripts with captial letter
[lhc/web/wiklou.git] / languages / ConverterRule.php
index 0d0d90d..dc61519 100644 (file)
@@ -38,8 +38,6 @@ class ConverterRule {
        public $mUnidtable = [];// array of the translation in each variant
 
        /**
-        * Constructor
-        *
         * @param string $text The text between -{ and }-
         * @param LanguageConverter $converter
         */
@@ -230,7 +228,7 @@ class ConverterRule {
                        if ( $disp === false && array_key_exists( $variant, $unidtable ) ) {
                                $disp = array_values( $unidtable[$variant] )[0];
                        }
-                       // or display frist text under disable manual convert
+                       // or display first text under disable manual convert
                        if ( $disp === false && $this->mConverter->mManualLevel[$variant] == 'disable' ) {
                                if ( count( $bidtable ) > 0 ) {
                                        $disp = array_values( $bidtable )[0];
@@ -332,7 +330,7 @@ class ConverterRule {
 
        /**
         * Parse rules and flags.
-        * @param string $variant Variant language code
+        * @param string|null $variant Variant language code
         */
        public function parse( $variant = null ) {
                if ( !$variant ) {