diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2021-08-03 19:02:52 +0100 |
---|---|---|
committer | Krinkle <krinklemail@gmail.com> | 2021-08-10 21:03:13 +0000 |
commit | f3ef7f7f23eda004b222f67d357b84f046f8a75d (patch) | |
tree | e953ff64186fdb5a78109eeb39bbf501576199d5 /includes/languages/LanguageMl.php | |
parent | 068374996a612be4e73551520c3ca81e4d5f9bab (diff) | |
download | mediawikicore-f3ef7f7f23eda004b222f67d357b84f046f8a75d.tar.gz mediawikicore-f3ef7f7f23eda004b222f67d357b84f046f8a75d.zip |
language: Autoload normalize data and remove transformUsingPairFile compat
* Turn normalize data into an autoloadable class and use the class name
as key instead of a partial file name with a base directory.
* This protected function is not aimed at re-use in extensions,
has no other usage known to Codesearch. Mark it internal,
and remove the compat introduced by 31283f34bf0.
* Update the now ten-year-old documentation comments that described
this as "Temporary". The functionality and comment were introduced
in 2010 by Tim with r60599 (ad19c032b0f).
Ref <https://bash.toolforge.org/search?p=0&q=temporary>.
* Replace the broken wikitech-l archive link with a working one,
and describe the thread for easier future reference.
Bug: T225756
Change-Id: I004da1f25c19e1095d0917349f2ba8461f9f0715
Diffstat (limited to 'includes/languages/LanguageMl.php')
-rw-r--r-- | includes/languages/LanguageMl.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/includes/languages/LanguageMl.php b/includes/languages/LanguageMl.php index f8189ac8ea70..6862c48a1e98 100644 --- a/includes/languages/LanguageMl.php +++ b/includes/languages/LanguageMl.php @@ -28,23 +28,22 @@ */ class LanguageMl extends Language { /** - * Temporary hack for the issue described at - * http://permalink.gmane.org/gmane.science.linguistics.wikipedia.technical/46396 - * Convert Unicode 5.0 style Malayalam input to Unicode 5.1. Similar to - * T11413. Also fixes miscellaneous problems due to mishandling of ZWJ, - * e.g. T13162. + * Convert Unicode 5.0 style Malayalam input to Unicode 5.1, similar to T11413 + * which is the same issue for Arabic. * - * @todo FIXME: This is language-specific for now only to avoid the negative - * performance impact of enabling it for all languages. + * Also fixes miscellaneous problems due to mishandling of ZWJ (e.g. T13162). * - * @param string $s + * Originally introduced after "[wikitech-l] Unicode equivalence" (Dec 2009) + * <https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/LMMZ3M4757Z5DH42MT75K6GWLAKUBLRD> + * + * Optimization: This is language-specific to reduce negative performance impact. * + * @param string $s * @return string */ public function normalize( $s ) { - global $IP; $s = parent::normalize( $s ); - $s = $this->transformUsingPairFile( 'normalize-ml.php', $s, $IP ); + $s = $this->transformUsingPairFile( MediaWiki\Languages\Data\NormalizeMl::class, $s ); return $s; } } |