More documentation!
[lhc/web/wiklou.git] / languages / classes / LanguageMl.php
1 <?php
2
3 /**
4 * Malayalam (മലയാളം)
5 *
6 * @ingroup Language
7 */
8 class LanguageMl extends Language {
9 /**
10 * Temporary hack for the issue described at
11 * http://permalink.gmane.org/gmane.science.linguistics.wikipedia.technical/46396
12 * Convert Unicode 5.0 style Malayalam input to Unicode 5.1. Similar to
13 * bug 9413. Also fixes miscellaneous problems due to mishandling of ZWJ,
14 * e.g. bug 11162.
15 *
16 * @todo FIXME: This is language-specific for now only to avoid the negative
17 * performance impact of enabling it for all languages.
18 *
19 * @param $s string
20 *
21 * @return string
22 */
23 function normalize( $s ) {
24 global $wgFixMalayalamUnicode;
25 $s = parent::normalize( $s );
26 if ( $wgFixMalayalamUnicode ) {
27 $s = $this->transformUsingPairFile( 'normalize-ml.ser', $s );
28 }
29 return $s;
30 }
31 }