"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "languages/classes/LanguageKk.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

LanguageKk.php  (mediawiki-1.31.1):LanguageKk.php  (mediawiki-1.32.0)
skipping to change at line 47 skipping to change at line 47
class KkConverter extends LanguageConverter { class KkConverter extends LanguageConverter {
protected $mCyrl2Latn, $mLatn2Cyrl, $mCyLa2Arab; protected $mCyrl2Latn, $mLatn2Cyrl, $mCyLa2Arab;
/** /**
* @param Language $langobj * @param Language $langobj
* @param string $maincode * @param string $maincode
* @param array $variants * @param array $variants
* @param array $variantfallbacks * @param array $variantfallbacks
* @param array $flags * @param array $flags
*/ */
function __construct( $langobj, $maincode, function __construct( Language $langobj, $maincode,
$variants = [], $variants = [],
$variantfallbacks = [], $variantfallbacks = [],
$flags = [] ) { $flags = [] ) {
parent::__construct( $langobj, $maincode, parent::__construct( $langobj, $maincode,
$variants, $variantfallbacks, $flags ); $variants, $variantfallbacks, $flags );
// No point delaying this since they're in code. // No point delaying this since they're in code.
// Waiting until loadDefaultTables() means they never get loaded // Waiting until loadDefaultTables() means they never get loaded
// when the tables themselves are loaded from cache. // when the tables themselves are loaded from cache.
$this->loadRegs(); $this->loadRegs();
skipping to change at line 169 skipping to change at line 169
'/Q/u' => 'Қ', '/q/u' => 'қ', '/R/u' => 'Р', '/r/u' => 'р ', '/Q/u' => 'Қ', '/q/u' => 'қ', '/R/u' => 'Р', '/r/u' => 'р ',
'/S/u' => 'С', '/s/u' => 'с', '/Ş/u' => 'Ш', '/ş/u' => 'ш ', '/S/u' => 'С', '/s/u' => 'с', '/Ş/u' => 'Ш', '/ş/u' => 'ш ',
'/T/u' => 'Т', '/t/u' => 'т', '/U/u' => 'Ұ', '/u/u' => 'ұ ', '/T/u' => 'Т', '/t/u' => 'т', '/U/u' => 'Ұ', '/u/u' => 'ұ ',
'/Ü/u' => 'Ү', '/ü/u' => 'ү', '/V/u' => 'В', '/v/u' => 'в ', '/Ü/u' => 'Ү', '/ü/u' => 'ү', '/V/u' => 'В', '/v/u' => 'в ',
'/W/u' => 'У', '/w/u' => 'у', '/Ý/u' => 'Й', '/ý/u' => 'й ', '/W/u' => 'У', '/w/u' => 'у', '/Ý/u' => 'Й', '/ý/u' => 'й ',
'/X/u' => 'Х', '/x/u' => 'х', '/Z/u' => 'З', '/z/u' => 'з ', '/X/u' => 'Х', '/x/u' => 'х', '/Z/u' => 'З', '/z/u' => 'з ',
]; ];
$this->mCyLa2Arab = [ $this->mCyLa2Arab = [
# # Punctuation -> Arabic # # Punctuation -> Arabic
'/#|№|No\./u' => '؀', # ؀ '/#|№|No\./u' => '؀', # U+0600
'/\,/' => '،', # ، '/\,/' => '،', # U+060C
'/;/' => '؛', # ؛ '/;/' => '؛', # U+061B
'/\?/' => '؟', # ؟ '/\?/' => '؟', # U+061F
'/%/' => '٪', # ٪ '/%/' => '٪', # U+066A
'/\*/' => '٭', # ٭ '/\*/' => '٭', # U+066D
# # Digits -> Arabic # # Digits -> Arabic
'/0/' => '۰', # ۰ '/0/' => '۰', # U+06F0
'/1/' => '۱', # ۱ '/1/' => '۱', # U+06F1
'/2/' => '۲', # ۲ '/2/' => '۲', # U+06F2
'/3/' => '۳', # ۳ '/3/' => '۳', # U+06F3
'/4/' => '۴', # ۴ '/4/' => '۴', # U+06F4
'/5/' => '۵', # ۵ '/5/' => '۵', # U+06F5
'/6/' => '۶', # ۶ '/6/' => '۶', # U+06F6
'/7/' => '۷', # ۷ '/7/' => '۷', # U+06F7
'/8/' => '۸', # ۸ '/8/' => '۸', # U+06F8
'/9/' => '۹', # ۹ '/9/' => '۹', # U+06F9
# # Cyrillic -> Arabic # # Cyrillic -> Arabic
'/Аллаһ/ui' => 'ﷲ', '/Аллаһ/ui' => 'ﷲ',
'/([АӘЕЁИОӨҰҮЭЮЯЪЬ])е/ui' => '$1يە', '/([АӘЕЁИОӨҰҮЭЮЯЪЬ])е/ui' => '$1يە',
'/[еэ]/ui' => 'ە', '/[ъь]/ui' => '', '/[еэ]/ui' => 'ە', '/[ъь]/ui' => '',
'/[аә]/ui' => 'ا', '/[оө]/ui' => 'و', '/[ұү]/ui' => 'ۇ', '/[ыі]/ui' => 'ى', '/[аә]/ui' => 'ا', '/[оө]/ui' => 'و', '/[ұү]/ui' => 'ۇ', '/[ыі]/ui' => 'ى',
'/[и]/ui' => 'ىي', '/ё/ui' => 'يو', '/ю/ui' => 'يۋ', '/я/ ui' => 'يا', '/[й]/ui' => 'ي', '/[и]/ui' => 'ىي', '/ё/ui' => 'يو', '/ю/ui' => 'يۋ', '/я/ ui' => 'يا', '/[й]/ui' => 'ي',
'/ц/ui' => 'تس', '/щ/ui' => 'شش', '/ц/ui' => 'تس', '/щ/ui' => 'شش',
'/һ/ui' => 'ح', '/ч/ui' => 'تش', '/һ/ui' => 'ح', '/ч/ui' => 'تش',
# '/һ/ui' => 'ھ', '/ч/ui' => 'چ', # '/һ/ui' => 'ھ', '/ч/ui' => 'چ',
'/б/ui' => 'ب', '/в/ui' => 'ۆ', '/г/ui' => 'گ', '/ғ/ui' = > 'ع', '/б/ui' => 'ب', '/в/ui' => 'ۆ', '/г/ui' => 'گ', '/ғ/ui' = > 'ع',
skipping to change at line 332 skipping to change at line 332
} else { } else {
$ret .= $m[0]; $ret .= $m[0];
} }
$mstart = $m[1] + strlen( $m[0] ); $mstart = $m[1] + strlen( $m[0] );
} }
$text =& $ret; $text =& $ret;
foreach ( $this->mCyLa2Arab as $pat => $rep ) { foreach ( $this->mCyLa2Arab as $pat => $rep ) {
$text = preg_replace( $pat, $rep, $text ) ; $text = preg_replace( $pat, $rep, $text ) ;
} }
return $text; return $text;
break;
case 'kk-latn': case 'kk-latn':
case 'kk-tr': case 'kk-tr':
foreach ( $this->mCyrl2Latn as $pat => $rep ) { foreach ( $this->mCyrl2Latn as $pat => $rep ) {
$text = preg_replace( $pat, $rep, $text ) ; $text = preg_replace( $pat, $rep, $text ) ;
} }
return $text; return $text;
break;
case 'kk-cyrl': case 'kk-cyrl':
case 'kk-kz': case 'kk-kz':
foreach ( $this->mLatn2Cyrl as $pat => $rep ) { foreach ( $this->mLatn2Cyrl as $pat => $rep ) {
$text = preg_replace( $pat, $rep, $text ) ; $text = preg_replace( $pat, $rep, $text ) ;
} }
return $text; return $text;
break;
default: default:
return $text; return $text;
} }
} }
/** /**
* @param string $key * @param string $key
* @return string * @return string
*/ */
function convertCategoryKey( $key ) { function convertCategoryKey( $key ) {
 End of changes. 6 change blocks. 
20 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)