MediaWiki  master
LanguageAr.php
Go to the documentation of this file.
1 <?php
30 class LanguageAr extends Language {
31 
43  public function normalize( $s ) {
44  global $wgFixArabicUnicode;
45  $s = parent::normalize( $s );
46  if ( $wgFixArabicUnicode ) {
47  $s = $this->transformUsingPairFile( 'normalize-ar.php', $s );
48  } else {
49  wfDeprecated( '$wgFixArabicUnicode = false', '1.33' );
50  }
51  return $s;
52  }
53 }
normalize( $s)
Temporary hack for T11413: replace Arabic presentation forms with their standard equivalents.
Definition: LanguageAr.php:43
Arabic (العربية)
Definition: LanguageAr.php:30
$wgFixArabicUnicode
Set this to true to replace Arabic presentation forms with their standard forms in the U+0600-U+06FF ...
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
transformUsingPairFile( $file, $string)
Transform a string using serialized data stored in the given file (which must be in the serialized su...
Definition: Language.php:2958