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