Added description to language classes
[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 * FIXME: This is language-specific for now only to avoid the negative
17 * performance impact of enabling it for all languages.
18 */
19 function normalize( $s ) {
20 global $wgFixMalayalamUnicode;
21 $s = parent::normalize( $s );
22 if ( $wgFixMalayalamUnicode ) {
23 $s = $this->transformUsingPairFile( 'normalize-ml.ser', $s );
24 }
25 return $s;
26 }
27 }