* Moved <div class='patrollink'> into Article.php rather than declare it in
[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 # This file is encoded in UTF-8, no byte order mark.
10 # For compatibility with Latin-1 installations, please
11 # don't add literal characters above U+00ff.
12 #
13
14 require_once( "LanguageUtf8.php" );
15
16 #--------------------------------------------------------------------------
17 # Language-specific text
18 #--------------------------------------------------------------------------
19
20 # The names of the namespaces can be set here, but the numbers
21 # are magical, so don't change or move them! The Namespace class
22 # encapsulates some of the magic-ness.
23 #
24
25 /* private */ $wgNamespaceNamesTt = array(
26 NS_MEDIA => 'Media',
27 NS_SPECIAL => 'Maxsus',
28 NS_MAIN => '',
29 NS_TALK => 'Bäxäs',
30 NS_USER => 'Äğzä',
31 NS_USER_TALK => "Äğzä_bäxäse",
32 NS_PROJECT => "Wikipedia",
33 NS_PROJECT_TALK => "Wikipedia_bäxäse",
34 NS_IMAGE => "Räsem",
35 NS_IMAGE_TALK => "Räsem_bäxäse",
36 NS_MEDIAWIKI => "MediaWiki",
37 NS_MEDIAWIKI_TALK => "MediaWiki_bäxäse",
38 NS_TEMPLATE => "Ürnäk",
39 NS_TEMPLATE_TALK => "Ürnäk_bäxäse",
40 NS_HELP => "Yärdäm",
41 NS_HELP_TALK => "Yärdäm_bäxäse",
42 NS_CATEGORY => "Törkem",
43 NS_CATEGORY_TALK => "Törkem_bäxäse"
44 ) + $wgNamespaceNamesEn;
45
46 /* private */ $wgQuickbarSettingsTt = array(
47 "None", "Fixed left", "Fixed right", "Floating left"
48 );
49
50 /* private */ $wgSkinNamesTt = array(
51 'standard' => 'Classic',
52 'nostalgia' => 'Nostalgia',
53 'cologneblue' => 'Cologne Blue',
54 'davinci' => 'DaVinci',
55 'mono' => 'Mono',
56 'monobook' => 'MonoBook',
57 'myskin' => 'MySkin'
58 );
59
60 /* private */ $wgDateFormatsTt = array(
61 # "köyläwsez",
62 );
63
64 # Read language names
65 global $wgLanguageNames;
66 require_once( "Names.php" );
67
68 $wgLanguageNamesTt =& $wgLanguageNames;
69
70 # Note to translators:
71 # Please include the English words as synonyms. This allows people
72 # from other wikis to contribute more easily.
73 #
74 /* private */ $wgMagicWordsTt = array(
75 # ID CASE SYNONYMS
76 MAG_REDIRECT => array( 0, '#yünältü' ),
77 MAG_NOTOC => array( 0, '__ETYUQ__' ),
78 MAG_FORCETOC => array( 0, '__ETTIQ__' ),
79 MAG_TOC => array( 0, '__ET__' ),
80 MAG_NOEDITSECTION => array( 0, '__BÜLEMTÖZÄTÜYUQ__' ),
81 MAG_START => array( 0, '__BAŞLAW__' ),
82 MAG_CURRENTMONTH => array( 1, 'AĞIMDAĞI_AY' ),
83 MAG_CURRENTMONTHNAME => array( 1, 'AĞIMDAĞI_AY_İSEME' ),
84 MAG_CURRENTDAY => array( 1, 'AĞIMDAĞI_KÖN' ),
85 MAG_CURRENTDAYNAME => array( 1, 'AĞIMDAĞI_KÖN_İSEME' ),
86 MAG_CURRENTYEAR => array( 1, 'AĞIMDAĞI_YIL' ),
87 MAG_CURRENTTIME => array( 1, 'AĞIMDAĞI_WAQIT' ),
88 MAG_NUMBEROFARTICLES => array( 1, 'MÄQÄLÄ_SANI' ),
89 MAG_CURRENTMONTHNAMEGEN => array( 1, 'AĞIMDAĞI_AY_İSEME_GEN' ),
90 MAG_PAGENAME => array( 1, 'BİTİSEME' ),
91 MAG_NAMESPACE => array( 1, 'İSEMARA' ),
92 MAG_MSG => array( 0, 'STR:' ),
93 MAG_SUBST => array( 0, 'TÖPÇEK:' ),
94 MAG_MSGNW => array( 0, 'MSGNW:' ),
95 MAG_END => array( 0, '__AZAQ__' ),
96 MAG_IMG_THUMBNAIL => array( 1, 'thumbnail', 'thumb' ),
97 MAG_IMG_RIGHT => array( 1, 'uñda' ),
98 MAG_IMG_LEFT => array( 1, 'sulda' ),
99 MAG_IMG_NONE => array( 1, 'yuq' ),
100 MAG_IMG_WIDTH => array( 1, '$1px' ),
101 MAG_IMG_CENTER => array( 1, 'center', 'centre' ),
102 MAG_IMG_FRAMED => array( 1, 'framed', 'enframed', 'frame' ),
103 MAG_INT => array( 0, 'EÇKE:' ),
104 MAG_SITENAME => array( 1, 'SÄXİFÄİSEME' ),
105 MAG_NS => array( 0, 'İA:' ),
106 MAG_LOCALURL => array( 0, 'URINLIURL:' ),
107 MAG_LOCALURLE => array( 0, 'URINLIURLE:' ),
108 MAG_SERVER => array( 0, 'SERVER' )
109 ) + $wgMagicWordsEn;
110
111 #-------------------------------------------------------------------
112 # Default messages
113 #-------------------------------------------------------------------
114 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
115 # hyphen (-). If you need more characters, you may be able to change
116 # the regex in MagicWord::initRegex
117
118 # NOTE: To turn off "Current Events" in the sidebar,
119 # set "currentevents" => ""
120
121 # NOTE: To turn off "Disclaimers" in the title links,
122 # set "disclaimers" => ""
123
124 # NOTE: To turn off "Community portal" in the title links,
125 # set "portal" => ""
126
127 /* private */ $wgAllMessagesTt = array(
128 'special_version_prefix' => '',
129 'special_version_postfix' => '',
130
131 # week days, months
132 'sunday' => "Yäkşämbe",
133 'monday' => "Düşämbe",
134 'tuesday' => "Sişämbe",
135 'wednesday' => "Çärşämbe",
136 'thursday' => "Pänceşämbe",
137 'friday' => "Comğa",
138 'saturday' => "Şimbä",
139 'january' => "Ğínwar",
140 'february' => "Febräl",
141 'march' => "Mart",
142 'april' => "Äpril",
143 'may_long' => "May",
144 'june' => "Yün",
145 'july' => "Yül",
146 'august' => "August",
147 'september' => "Sentäber",
148 'october' => "Öktäber",
149 'november' => "Nöyäber",
150 'december' => "Dekäber",
151 'jan' => "Ğín",
152 'feb' => "Feb",
153 'mar' => "Mar",
154 'apr' => "Äpr",
155 'may' => "May",
156 'jun' => "Yün",
157 'jul' => "Yül",
158 'aug' => "Aug",
159 'sep' => "Sen",
160 'oct' => "Ökt",
161 'nov' => "Nöy",
162 'dec' => "Dek",
163
164 # User Toggles
165 "tog-underline" => "Underline links",
166 "tog-highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
167 "tog-justify" => "Justify paragraphs",
168 "tog-hideminor" => "Hide minor edits in recent changes",
169 "tog-usenewrc" => "Enhanced recent changes (not for all browsers)",
170 "tog-numberheadings" => "Auto-number headings",
171 "tog-showtoolbar" =>"Show edit toolbar",
172 "tog-editondblclick" => "Edit pages on double click (JavaScript)",
173 "tog-editsection" =>"Enable section editing via [edit] links",
174 "tog-editsectiononrightclick"=>"Enable section editing by right clicking<br /> on section titles (JavaScript)",
175 "tog-showtoc" =>"Show table of contents<br />(for articles with more than 3 headings)",
176 "tog-rememberpassword" => "Remember password across sessions",
177 "tog-editwidth" => "Edit box has full width",
178 "tog-watchdefault" => "Add pages you edit to your watchlist",
179 "tog-minordefault" => "Mark all edits minor by default",
180 "tog-previewontop" => "Show preview before edit box and not after it",
181 "tog-nocache" => "Disable page caching",
182
183 );
184
185 class LanguageTt extends LanguageUtf8 {
186
187 function getNamespaces() {
188 global $wgNamespaceNamesTt;
189 return $wgNamespaceNamesTt;
190 }
191
192 function getNsText( $index ) {
193 global $wgNamespaceNamesTt;
194 return $wgNamespaceNamesTt[$index];
195 }
196
197 function getNsIndex( $text ) {
198 global $wgNamespaceNamesTt;
199
200 foreach ( $wgNamespaceNamesTt as $i => $n ) {
201 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
202 }
203 return false;
204 }
205
206 function getQuickbarSettings() {
207 global $wgQuickbarSettingsTt;
208 return $wgQuickbarSettingsTt;
209 }
210
211 function getSkinNames() {
212 global $wgSkinNamesTt;
213 return $wgSkinNamesTt;
214 }
215
216 function getDateFormats() {
217 global $wgDateFormatsTt;
218 return $wgDateFormatsTt;
219 }
220
221
222 function date( $ts, $adj = false ) {
223 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
224
225 $d = (0 + substr( $ts, 6, 2 )) . ". " .
226 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
227 substr( $ts, 0, 4 );
228 return $d;
229 }
230
231 function time( $ts, $adj = false ) {
232 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
233
234 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
235 return $t;
236 }
237
238 function timeanddate( $ts, $adj = false ) {
239 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
240 }
241
242
243
244 function getValidSpecialPages() {
245 global $wgValidSpecialPagesTt;
246 return $wgValidSpecialPagesTt;
247 }
248
249 function getSysopSpecialPages() {
250 global $wgSysopSpecialPagesTt;
251 return $wgSysopSpecialPagesTt;
252 }
253
254 function getDeveloperSpecialPages() {
255 global $wgDeveloperSpecialPagesTt;
256 return $wgDeveloperSpecialPagesTt;
257 }
258
259 function getMessage( $key ) {
260 global $wgAllMessagesTt;
261 if( isset( $wgAllMessagesTt[$key] ) ) {
262 return $wgAllMessagesTt[$key];
263 } else {
264 return parent::getMessage( $key );
265 }
266 }
267
268 function fallback8bitEncoding() {
269 # Windows codepage 1252 is a superset of iso 8859-1
270 # override this to use difference source encoding to
271 # translate incoming 8-bit URLs.
272 return "windows-1254";
273 }
274 }
275
276 ?>