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