Merge "Add CollationFa"
[lhc/web/wiklou.git] / languages / classes / LanguageIu.php
index 93cc2c8..a2288d0 100644 (file)
@@ -28,7 +28,7 @@
  *
  *
  * Based on:
- *   - http://commons.wikimedia.org/wiki/Image:Inuktitut.png
+ *   - https://commons.wikimedia.org/wiki/Image:Inuktitut.png
  *   - LanguageSr.php
  *
  * @ingroup Language
@@ -36,7 +36,7 @@
 class IuConverter extends LanguageConverter {
        protected $mDoContentConvert;
 
-       public $mToLatin = array(
+       public $mToLatin = [
                'ᐦ' => 'h', 'ᐃ' => 'i', 'ᐄ' => 'ii', 'ᐅ' => 'u', 'ᐆ' => 'uu', 'ᐊ' => 'a', 'ᐋ' => 'aa',
                'ᑉ' => 'p', 'ᐱ' => 'pi', 'ᐲ' => 'pii', 'ᐳ' => 'pu', 'ᐴ' => 'puu', 'ᐸ' => 'pa', 'ᐹ' => 'paa',
                'ᑦ' => 't', 'ᑎ' => 'ti', 'ᑏ' => 'tii', 'ᑐ' => 'tu', 'ᑑ' => 'tuu', 'ᑕ' => 'ta', 'ᑖ' => 'taa',
@@ -55,18 +55,18 @@ class IuConverter extends LanguageConverter {
                'ᖒ' => 'nguu', 'ᖓ' => 'nga', 'ᖔ' => 'ngaa', 'ᖖ' => 'nng', 'ᙱ' => 'nngi', 'ᙲ' => 'nngii',
                'ᙳ' => 'nngu', 'ᙴ' => 'nnguu', 'ᙵ' => 'nnga', 'ᙶ' => 'nngaa', 'ᖦ' => 'ɫ', 'ᖠ' => 'ɫi',
                'ᖡ' => 'ɫii', 'ᖢ' => 'ɫu', 'ᖣ' => 'ɫuu', 'ᖤ' => 'ɫa', 'ᖥ' => 'ɫaa',
-       );
+       ];
 
-       public $mUpperToLowerCaseLatin = array(
+       public $mUpperToLowerCaseLatin = [
                'A' => 'a',     'B' => 'b',     'C' => 'c',     'D' => 'd',     'E' => 'e',
                'F' => 'f',     'G' => 'g',     'H' => 'h',     'I' => 'i',     'J' => 'j',
                'K' => 'k',     'L' => 'l',     'M' => 'm',     'N' => 'n',     'O' => 'o',
                'P' => 'p',     'Q' => 'q',     'R' => 'r',     'S' => 's',     'T' => 't',
                'U' => 'u',     'V' => 'v',     'W' => 'w',     'X' => 'x',     'Y' => 'y',
                'Z' => 'z',
-       );
+       ];
 
-       public $mToSyllabics = array(
+       public $mToSyllabics = [
                'h' => 'ᐦ', 'i' => 'ᐃ', 'ii' => 'ᐄ', 'u' => 'ᐅ', 'uu' => 'ᐆ', 'a' => 'ᐊ', 'aa' => 'ᐋ',
                'p' => 'ᑉ', 'pi' => 'ᐱ', 'pii' => 'ᐲ', 'pu' => 'ᐳ', 'puu' => 'ᐴ', 'pa' => 'ᐸ', 'paa' => 'ᐹ',
                't' => 'ᑦ', 'ti' => 'ᑎ', 'tii' => 'ᑏ', 'tu' => 'ᑐ', 'tuu' => 'ᑑ', 'ta' => 'ᑕ', 'taa' => 'ᑖ',
@@ -85,15 +85,15 @@ class IuConverter extends LanguageConverter {
                'nguu' => 'ᖒ', 'nga' => 'ᖓ', 'ngaa' => 'ᖔ', 'nng' => 'ᖖ', 'nngi' => 'ᙱ', 'nngii' => 'ᙲ',
                'nngu' => 'ᙳ', 'nnguu' => 'ᙴ', 'nnga' => 'ᙵ', 'nngaa' => 'ᙶ', 'ɫ' => 'ᖦ', 'ɫi' => 'ᖠ',
                'ɫii' => 'ᖡ', 'ɫu' => 'ᖢ', 'ɫuu' => 'ᖣ', 'ɫa' => 'ᖤ', 'ɫaa' => 'ᖥ',
-       );
+       ];
 
        function loadDefaultTables() {
-               $this->mTables = array(
+               $this->mTables = [
                        'lowercase' => new ReplacementArray( $this->mUpperToLowerCaseLatin ),
                        'ike-cans' => new ReplacementArray( $this->mToSyllabics ),
                        'ike-latn' => new ReplacementArray( $this->mToLatin ),
                        'iu' => new ReplacementArray()
-               );
+               ];
        }
 
        /**
@@ -106,12 +106,12 @@ class IuConverter extends LanguageConverter {
         * @param array $flags
         * @return array
         */
-       function parseManualRule( $rule, $flags = array() ) {
+       function parseManualRule( $rule, $flags = [] ) {
                if ( in_array( 'T', $flags ) ) {
                        return parent::parseManualRule( $rule, $flags );
                }
 
-               $carray = array();
+               $carray = [];
                // otherwise ignore all formatting
                foreach ( $this->mVariants as $v ) {
                        $carray[$v] = $rule;
@@ -192,14 +192,14 @@ class LanguageIu extends Language {
        function __construct() {
                parent::__construct();
 
-               $variants = array( 'iu', 'ike-cans', 'ike-latn' );
-               $variantfallbacks = array(
+               $variants = [ 'iu', 'ike-cans', 'ike-latn' ];
+               $variantfallbacks = [
                        'iu' => 'ike-cans',
                        'ike-cans' => 'iu',
                        'ike-latn' => 'iu',
-               );
+               ];
 
-               $flags = array();
+               $flags = [];
                $this->mConverter = new IuConverter( $this, 'iu', $variants, $variantfallbacks, $flags );
        }
 }