Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -309,6 +309,7 @@ |
310 | 310 | * (bug 2459) Correct escaping in Special:Log prev/next links |
311 | 311 | * (bug 2462 etc) Taking out the experimental dash conversion; it broke too many |
312 | 312 | things for the current parser to handle cleanly |
| 313 | +* (bug 2467) Added a Turkish language file |
313 | 314 | |
314 | 315 | |
315 | 316 | === Caveats === |
Index: trunk/phase3/languages/LanguageTr.php |
— | — | @@ -0,0 +1,43 @@ |
| 2 | +<?php |
| 3 | +require_once( "LanguageUtf8.php" ); |
| 4 | + |
| 5 | +if ( $wgMetaNamespace == "Wikipedia" ) { |
| 6 | + $wgMetaNamespace = "Vikipedi"; |
| 7 | +} |
| 8 | +/* private */ $wgNamespaceNamesTr = array( |
| 9 | + NS_MEDIA => 'Media', |
| 10 | + NS_SPECIAL => '�zel', |
| 11 | + NS_MAIN => '', |
| 12 | + NS_TALK => 'Tartisma', |
| 13 | + NS_USER => 'Kullanici', |
| 14 | + NS_USER_TALK => 'Kullanici_mesaj', |
| 15 | + NS_PROJECT => $wgMetaNamespace, |
| 16 | + NS_PROJECT_TALK => $wgMetaNamespace . '_tartisma', |
| 17 | + NS_IMAGE => 'Resim', |
| 18 | + NS_IMAGE_TALK => 'Resim_tartisma', |
| 19 | + NS_MEDIAWIKI => 'MedyaViki', |
| 20 | + NS_MEDIAWIKI_TALK => 'MedyaViki_tartisma', |
| 21 | + NS_TEMPLATE => 'Sablon', |
| 22 | + NS_TEMPLATE_TALK => 'Sablon_tartisma', |
| 23 | + NS_HELP => 'Yardim', |
| 24 | + NS_HELP_TALK => 'Yardim_tartisma', |
| 25 | + NS_CATEGORY => 'Kategori', |
| 26 | + NS_CATEGORY_TALK => 'Kategori_tartisma', |
| 27 | +) + $wgNamespaceNamesEn; |
| 28 | + |
| 29 | +class LanguageTr extends LanguageUtf8 { |
| 30 | + function getNamespaces() { |
| 31 | + global $wgNamespaceNamesTr; |
| 32 | + return $wgNamespaceNamesTr; |
| 33 | + } |
| 34 | + |
| 35 | + function formatNum( $number, $year = false ) { |
| 36 | + return $year ? $number : strtr($this->commafy($number), '.,', ',.' ); |
| 37 | + } |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +} |
| 42 | + |
| 43 | + |
| 44 | +?> |
Property changes on: trunk/phase3/languages/LanguageTr.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 45 | + native |
Added: svn:keywords |
2 | 46 | + Author Date Id Revision |