wiki.techinc.nl/languages/messages/MessagesTa.php
Bartosz Dziewoński 0313128b10 Use PHP 7 "\u{NNNN}" Unicode codepoint escapes in string literals
In cases where we're operating on text data (and not binary data),
use e.g. "\u{00A0}" to refer directly to the Unicode character
'NO-BREAK SPACE' instead of "\xc2\xa0" to specify the bytes C2h A0h
(which correspond to the UTF-8 encoding of that character). This
makes it easier to look up those mysterious sequences, as not all
are as recognizable as the no-break space.

This is not enforced by PHP, but I think we should write those in
uppercase and zero-padded to at least four characters, like the
Unicode standard does.

Note that not all "\xNN" escapes can be automatically replaced:
* We can't use Unicode escapes for binary data that is not UTF-8
  (e.g. in code converting from legacy encodings or testing the
  handling of invalid UTF-8 byte sequences).
* '\xNN' escapes in regular expressions in single-quoted strings
  are actually handled by PCRE and have to be dealt with carefully
  (those regexps should probably be changed to use the /u modifier).
* "\xNN" referring to ASCII characters ("\x7F" and lower) should
  probably be left as-is.

The replacements in this commit were done semi-manually by piping
the existing "\xNN" escapes through the following terrible Ruby
script I devised:

  chars = eval('"' + ARGV[0] + '"').force_encoding('utf-8')
  puts chars.split('').map{|char|
    '\\u{' + char.ord.to_s(16).upcase.rjust(4, '0') + '}'
  }.join('')

Change-Id: Idc3dee3a7fb5ebfaef395754d8859b18f1f8769a
2018-06-04 16:20:13 +00:00

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 = "##,##,###";