Use separate history-feed-title message for the feed, since people like putting links...
[lhc/web/wiklou.git] / languages / LanguageTr.php
1 <?php
2 require_once( "LanguageUtf8.php" );
3
4 /* private */ $wgNamespaceNamesTr = array(
5 NS_MEDIA => 'Media',
6 NS_SPECIAL => 'Özel',
7 NS_MAIN => '',
8 NS_TALK => 'Tartışma',
9 NS_USER => 'Kullanıcı',
10 NS_USER_TALK => 'Kullanıcı_mesaj',
11 NS_PROJECT => $wgMetaNamespace,
12 NS_PROJECT_TALK => $wgMetaNamespace . '_tartışma',
13 NS_IMAGE => 'Resim',
14 NS_IMAGE_TALK => 'Resim_tartışma',
15 NS_MEDIAWIKI => 'MedyaViki',
16 NS_MEDIAWIKI_TALK => 'MedyaViki_tartışma',
17 NS_TEMPLATE => 'Şablon',
18 NS_TEMPLATE_TALK => 'Şablon_tartışma',
19 NS_HELP => 'Yardım',
20 NS_HELP_TALK => 'Yardım_tartışma',
21 NS_CATEGORY => 'Kategori',
22 NS_CATEGORY_TALK => 'Kategori_tartışma',
23 ) + $wgNamespaceNamesEn;
24
25 # Whether to use user or default setting in Language::date()
26
27 /* private */ $wgDateFormatsTr = array(
28 MW_DATE_DEFAULT => 'Tercih yok',
29 MW_DATE_MDY => '16:12, Ocak 15, 2001',
30 MW_DATE_DMY => '16:12, 15 Ocak 2001',
31 MW_DATE_YMD => '16:12, 2001 Ocak 15',
32 MW_DATE_ISO => '2001-01-15 16:12:34'
33 );
34
35 if (!$wgCachedMessageArrays) {
36 require_once('MessagesTr.php');
37 }
38
39
40
41 class LanguageTr extends LanguageUtf8 {
42 function getNamespaces() {
43 global $wgNamespaceNamesTr;
44 return $wgNamespaceNamesTr;
45 }
46
47 function ucfirst ( $string ) {
48 if ( $string[0] == 'i' ) {
49 return 'İ' . substr( $string, 1 );
50 } else {
51 return parent::ucfirst( $string );
52 }
53 }
54
55 function getMessage( $key ) {
56 global $wgAllMessagesTr;
57 if( isset( $wgAllMessagesTr[$key] ) ) {
58 return $wgAllMessagesTr[$key];
59 } else {
60 return parent::getMessage( $key );
61 }
62 }
63
64 function getDateFormats() {
65 global $wgDateFormatsTr;
66 return $wgDateFormatsTr;
67 }
68
69 function separatorTransformTable() {
70 return array(',' => '.', '.' => ',' );
71 }
72
73 }
74 ?>