r9535 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9534‎ | r9535 | r9536 >
Date:20:41, 20 June 2005
Author:avar
Status:old
Tags:
Comment:
* (bug 2467) Adding a Turkish language file
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/languages/LanguageTr.php (added) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES
@@ -309,6 +309,7 @@
310310 * (bug 2459) Correct escaping in Special:Log prev/next links
311311 * (bug 2462 etc) Taking out the experimental dash conversion; it broke too many
312312 things for the current parser to handle cleanly
 313+* (bug 2467) Added a Turkish language file
313314
314315
315316 === 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
145 + native
Added: svn:keywords
246 + Author Date Id Revision

Follow-up revisions

RevisionCommit summaryAuthorDate
r9544* (bug 2467) Fixed encoding issue with previous patchavar02:05, 21 June 2005
r9545* (bug 2467) Fixed encoding issue with previous patchavar02:06, 21 June 2005

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r9534* (bug 2467) Adding a Turkish language fileavar20:41, 20 June 2005

Status & tagging log