* Update digitGroupingPattern to match CLDR 31: New versions of CLDR has digit grouping pattern with decimal part. Update digitGroupingPattern values in Message classes with this improved pattern. Refer: http://unicode.org/reports/tr35/tr35-numbers.html * Refer the following chart for the decimal patterns. http://www.unicode.org/cldr/charts/31/by_type/numbers.number_formatting_patterns.html * Uses PHP NumberFormatter class for the commafy implementation, which is available in PHP 7. * Some tests need to update to match the TR 35 spec * The formatNum public method in Language.php is the preferred way to use this feature. It does separator transformation and digit transformation wherever applicable. * Renamed the second param name for formatNum from noCommafy to noSeparators * commafy method is deprecated and formatNum is preferred. Practically, we are not just adding comma, but seperators according to the language. Replaced some tests based on commafy methods with tests based on formatNum. Note: The corresponding js implementation is not changed in this commit. It would probably be a good idea to use globalize.js, which is also based on the CLDR patterns. Note: This patch preserves the existing off-by-one error in $minimumGroupingDigits; T262500 will eventually fix this. Bug: T167088 Co-Authored-By: C. Scott Ananian <cscott@cscott.net> Change-Id: Ic721b9a91e78e4ef07040339d1006b7a90a910c0
85 lines
3 KiB
PHP
85 lines
3 KiB
PHP
<?php
|
|
/** Tamil (தமிழ்)
|
|
*
|
|
* To improve a translation please visit https://translatewiki.net
|
|
*
|
|
* @ingroup Language
|
|
* @file
|
|
*
|
|
* @author Aswn
|
|
* @author Balajijagadesh
|
|
* @author Caliberoviv
|
|
* @author ElangoRamanujam
|
|
* @author Jayarathina
|
|
* @author Kaganer
|
|
* @author Kanags
|
|
* @author Karthi.dr
|
|
* @author Krishnaprasaths
|
|
* @author Logicwiki
|
|
* @author Mahir78
|
|
* @author Mayooranathan
|
|
* @author Naveen
|
|
* @author Planemad
|
|
* @author Sank
|
|
* @author Shanmugamp7
|
|
* @author Shirayuki
|
|
* @author Sodabottle
|
|
* @author Sundar
|
|
* @author Surya Prakash.S.A.
|
|
* @author TRYPPN
|
|
* @author Theni.M.Subramani
|
|
* @author Trengarasu
|
|
* @author Ulmo
|
|
* @author Urhixidur
|
|
* @author לערי ריינהארט
|
|
* @author கோபி
|
|
* @author கௌசிக் பிரபு
|
|
* @author செல்வா
|
|
* @author மதனாஹரன்
|
|
* @author බිඟුවා
|
|
*/
|
|
|
|
$namespaceNames = [
|
|
NS_MEDIA => 'ஊடகம்',
|
|
NS_SPECIAL => 'சிறப்பு',
|
|
NS_TALK => 'பேச்சு',
|
|
NS_USER => 'பயனர்',
|
|
NS_USER_TALK => 'பயனர்_பேச்சு',
|
|
NS_PROJECT_TALK => '$1_பேச்சு',
|
|
NS_FILE => 'படிமம்',
|
|
NS_FILE_TALK => 'படிமப்_பேச்சு',
|
|
NS_MEDIAWIKI => 'மீடியாவிக்கி',
|
|
NS_MEDIAWIKI_TALK => 'மீடியாவிக்கி_பேச்சு',
|
|
NS_TEMPLATE => 'வார்ப்புரு',
|
|
NS_TEMPLATE_TALK => 'வார்ப்புரு_பேச்சு',
|
|
NS_HELP => 'உதவி',
|
|
NS_HELP_TALK => 'உதவி_பேச்சு',
|
|
NS_CATEGORY => 'பகுப்பு',
|
|
NS_CATEGORY_TALK => 'பகுப்பு_பேச்சு',
|
|
];
|
|
|
|
$namespaceAliases = [
|
|
'விக்கிபீடியா' => NS_PROJECT,
|
|
'விக்கிபீடியா_பேச்சு' => NS_PROJECT_TALK,
|
|
'உருவப்_பேச்சு' => NS_FILE_TALK
|
|
];
|
|
|
|
$magicWords = [
|
|
'redirect' => [ '0', '#வழிமாற்று', '#REDIRECT' ],
|
|
'img_right' => [ '1', 'வலது', 'right' ],
|
|
'img_left' => [ '1', 'இடது', 'left' ],
|
|
'img_none' => [ '1', 'ஒன்றுமில்லை', 'none' ],
|
|
'img_center' => [ '1', 'மையம்', 'center', 'centre' ],
|
|
'img_top' => [ '1', 'மேல்', 'top' ],
|
|
'img_middle' => [ '1', 'மத்தியில்', 'middle' ],
|
|
'img_bottom' => [ '1', 'கீழ்', 'bottom' ],
|
|
'plural' => [ '0', 'பன்மை', 'PLURAL:' ],
|
|
'special' => [ '0', 'சிறப்பு', 'special' ],
|
|
'pagesize' => [ '1', 'பக்க_அளவு', 'PAGESIZE' ],
|
|
'url_path' => [ '0', 'வழி', 'PATH' ],
|
|
'url_wiki' => [ '0', 'விக்கி', 'WIKI' ],
|
|
];
|
|
|
|
$linkTrail = "/^([\u{0B80}-\u{0BFF}]+)(.*)$/sDu";
|
|
|
|
$digitGroupingPattern = "#,##,##0.###";
|