* (bug 2467) Adding a Turkish language file
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 20 Jun 2005 20:41:05 +0000 (20:41 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 20 Jun 2005 20:41:05 +0000 (20:41 +0000)
RELEASE-NOTES
languages/LanguageTr.php [new file with mode: 0644]

index 26a2da7..eee7dc0 100644 (file)
@@ -309,6 +309,7 @@ Various bugfixes, small features, and a few experimental things:
 * (bug 2459) Correct escaping in Special:Log prev/next links
 * (bug 2462 etc) Taking out the experimental dash conversion; it broke too many
   things for the current parser to handle cleanly
+* (bug 2467) Added a Turkish language file
 
 
 === Caveats ===
diff --git a/languages/LanguageTr.php b/languages/LanguageTr.php
new file mode 100644 (file)
index 0000000..3a0eca7
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+require_once( "LanguageUtf8.php" );
+
+if ( $wgMetaNamespace == "Wikipedia" ) {
+        $wgMetaNamespace = "Vikipedi";
+}
+/* private */ $wgNamespaceNamesTr = array(
+        NS_MEDIA            => 'Media',
+        NS_SPECIAL          => 'Özel',
+        NS_MAIN             => '',
+        NS_TALK             => 'Tartisma',
+        NS_USER             => 'Kullanici',
+        NS_USER_TALK        => 'Kullanici_mesaj',
+        NS_PROJECT          => $wgMetaNamespace,
+        NS_PROJECT_TALK     => $wgMetaNamespace . '_tartisma',
+        NS_IMAGE            => 'Resim',
+        NS_IMAGE_TALK       => 'Resim_tartisma',
+        NS_MEDIAWIKI        => 'MedyaViki',
+        NS_MEDIAWIKI_TALK   => 'MedyaViki_tartisma',
+        NS_TEMPLATE         => 'Sablon',
+        NS_TEMPLATE_TALK    => 'Sablon_tartisma',
+        NS_HELP             => 'Yardim',
+        NS_HELP_TALK        => 'Yardim_tartisma',
+        NS_CATEGORY         => 'Kategori',
+        NS_CATEGORY_TALK    => 'Kategori_tartisma',
+) + $wgNamespaceNamesEn;
+
+class LanguageTr extends LanguageUtf8 {
+        function getNamespaces() {
+                global $wgNamespaceNamesTr;
+                return $wgNamespaceNamesTr;
+        }
+
+        function formatNum( $number, $year = false ) {
+                return $year ? $number : strtr($this->commafy($number), '.,', ',.' );
+        }
+
+
+
+}
+
+
+?>