Handle urls as external-url args
[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 formatNum( $number, $year = false ) {
48 return $year ? $number : strtr($this->commafy($number), '.,', ',.' );
49 }
50
51 function ucfirst ( $string ) {
52 if ( $string[0] == 'i' ) {
53 return 'İ' . substr( $string, 1 );
54 } else {
55 return parent::ucfirst( $string );
56 }
57 }
58
59 function getMessage( $key ) {
60 global $wgAllMessagesTr;
61 if( isset( $wgAllMessagesTr[$key] ) ) {
62 return $wgAllMessagesTr[$key];
63 } else {
64 return parent::getMessage( $key );
65 }
66 }
67
68 function getDateFormats() {
69 global $wgDateFormatsTr;
70 return $wgDateFormatsTr;
71 }
72
73 }
74
75
76 ?>