163ec8115dd3becad05e07365051dd9d86aecad8
[lhc/web/wiklou.git] / languages / LanguageTt.php
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Language
5 */
6 #
7 # Tatarish localisation for MediaWiki
8 #
9
10 require_once( "LanguageUtf8.php" );
11
12 /* private */ $wgNamespaceNamesTt = array(
13 NS_MEDIA => 'Media',
14 NS_SPECIAL => 'Maxsus',
15 NS_MAIN => '',
16 NS_TALK => 'Bäxäs',
17 NS_USER => 'Äğzä',
18 NS_USER_TALK => "Äğzä_bäxäse",
19 NS_PROJECT => $wgMetaNamespace,
20 NS_PROJECT_TALK => $wgMetaNamespace . '_bäxäse',
21 NS_IMAGE => "Räsem",
22 NS_IMAGE_TALK => "Räsem_bäxäse",
23 NS_MEDIAWIKI => "MediaWiki",
24 NS_MEDIAWIKI_TALK => "MediaWiki_bäxäse",
25 NS_TEMPLATE => "Ürnäk",
26 NS_TEMPLATE_TALK => "Ürnäk_bäxäse",
27 NS_HELP => "Yärdäm",
28 NS_HELP_TALK => "Yärdäm_bäxäse",
29 NS_CATEGORY => "Törkem",
30 NS_CATEGORY_TALK => "Törkem_bäxäse"
31 ) + $wgNamespaceNamesEn;
32
33 /* private */ $wgDateFormatsTt = array(
34 # "köyläwsez",
35 );
36
37 # Note to translators:
38 # Please include the English words as synonyms. This allows people
39 # from other wikis to contribute more easily.
40 #
41 /* private */ $wgMagicWordsTt = array(
42 # ID CASE SYNONYMS
43 'redirect' => array( 0, '#yünältü' ),
44 'notoc' => array( 0, '__ETYUQ__' ),
45 'forcetoc' => array( 0, '__ETTIQ__' ),
46 'toc' => array( 0, '__ET__' ),
47 'noeditsection' => array( 0, '__BÜLEMTÖZÄTÜYUQ__' ),
48 'start' => array( 0, '__BAŞLAW__' ),
49 'currentmonth' => array( 1, 'AĞIMDAĞI_AY' ),
50 'currentmonthname' => array( 1, 'AĞIMDAĞI_AY_İSEME' ),
51 'currentday' => array( 1, 'AĞIMDAĞI_KÖN' ),
52 'currentdayname' => array( 1, 'AĞIMDAĞI_KÖN_İSEME' ),
53 'currentyear' => array( 1, 'AĞIMDAĞI_YIL' ),
54 'currenttime' => array( 1, 'AĞIMDAĞI_WAQIT' ),
55 'numberofarticles' => array( 1, 'MÄQÄLÄ_SANI' ),
56 'currentmonthnamegen' => array( 1, 'AĞIMDAĞI_AY_İSEME_GEN' ),
57 'pagename' => array( 1, 'BİTİSEME' ),
58 'namespace' => array( 1, 'İSEMARA' ),
59 'subst' => array( 0, 'TÖPÇEK:' ),
60 'msgnw' => array( 0, 'MSGNW:' ),
61 'end' => array( 0, '__AZAQ__' ),
62 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ),
63 'img_right' => array( 1, 'uñda' ),
64 'img_left' => array( 1, 'sulda' ),
65 'img_none' => array( 1, 'yuq' ),
66 'img_width' => array( 1, '$1px' ),
67 'img_center' => array( 1, 'center', 'centre' ),
68 'img_framed' => array( 1, 'framed', 'enframed', 'frame' ),
69 'int' => array( 0, 'EÇKE:' ),
70 'sitename' => array( 1, 'SÄXİFÄİSEME' ),
71 'ns' => array( 0, 'İA:' ),
72 'localurl' => array( 0, 'URINLIURL:' ),
73 'localurle' => array( 0, 'URINLIURLE:' ),
74 'server' => array( 0, 'SERVER' )
75 ) + $wgMagicWordsEn;
76
77 if (!$wgCachedMessageArrays) {
78 require_once('MessagesTt.php');
79 }
80
81 class LanguageTt extends LanguageUtf8 {
82
83 function getNamespaces() {
84 global $wgNamespaceNamesTt;
85 return $wgNamespaceNamesTt;
86 }
87
88 function getDateFormats() {
89 global $wgDateFormatsTt;
90 return $wgDateFormatsTt;
91 }
92
93 /**
94 * $format and $timecorrection are for compatibility with Language::date
95 */
96 function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
97 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
98
99 $d = (0 + substr( $ts, 6, 2 )) . ". " .
100 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
101 substr( $ts, 0, 4 );
102 return $d;
103 }
104
105 /**
106 * $format and $timecorrection are for compatibility with language::time
107 */
108 function time($ts, $adj = false, $format = true, $timecorrection = false) {
109 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
110
111 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
112 return $t;
113 }
114
115 /**
116 * $format and $timecorrection are for compatibility with Language::date
117 */
118 function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
119 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
120 }
121
122 function getMessage( $key ) {
123 global $wgAllMessagesTt;
124 if( isset( $wgAllMessagesTt[$key] ) ) {
125 return $wgAllMessagesTt[$key];
126 } else {
127 return parent::getMessage( $key );
128 }
129 }
130
131 function fallback8bitEncoding() {
132 # Windows codepage 1252 is a superset of iso 8859-1
133 # override this to use difference source encoding to
134 # translate incoming 8-bit URLs.
135 return "windows-1254";
136 }
137 }
138
139 ?>