Changed <br> and <br/> tags to <br />, for XHTML compliance, as per
[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 getBookstoreList () {
197 global $wgBookstoreListTt;
198 return $wgBookstoreListTt;
199 }
200
201 function getNamespaces() {
202 global $wgNamespaceNamesTt;
203 return $wgNamespaceNamesTt;
204 }
205
206 function getNsText( $index ) {
207 global $wgNamespaceNamesTt;
208 return $wgNamespaceNamesTt[$index];
209 }
210
211 function getNsIndex( $text ) {
212 global $wgNamespaceNamesTt;
213
214 foreach ( $wgNamespaceNamesTt as $i => $n ) {
215 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
216 }
217 return false;
218 }
219
220 function getQuickbarSettings() {
221 global $wgQuickbarSettingsTt;
222 return $wgQuickbarSettingsTt;
223 }
224
225 function getSkinNames() {
226 global $wgSkinNamesTt;
227 return $wgSkinNamesTt;
228 }
229
230 function getDateFormats() {
231 global $wgDateFormatsTt;
232 return $wgDateFormatsTt;
233 }
234
235 # Inherit userAdjust()
236
237 function date( $ts, $adj = false ) {
238 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
239
240 $d = (0 + substr( $ts, 6, 2 )) . ". " .
241 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
242 substr( $ts, 0, 4 );
243 return $d;
244 }
245
246 function time( $ts, $adj = false ) {
247 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
248
249 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
250 return $t;
251 }
252
253 function timeanddate( $ts, $adj = false ) {
254 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
255 }
256
257 # Inherit rfc1123()
258
259 function getValidSpecialPages() {
260 global $wgValidSpecialPagesTt;
261 return $wgValidSpecialPagesTt;
262 }
263
264 function getSysopSpecialPages() {
265 global $wgSysopSpecialPagesTt;
266 return $wgSysopSpecialPagesTt;
267 }
268
269 function getDeveloperSpecialPages() {
270 global $wgDeveloperSpecialPagesTt;
271 return $wgDeveloperSpecialPagesTt;
272 }
273
274 function getMessage( $key ) {
275 global $wgAllMessagesTt;
276 if( isset( $wgAllMessagesTt[$key] ) ) {
277 return $wgAllMessagesTt[$key];
278 } else {
279 return Language::getMessage( $key );
280 }
281 }
282
283 # Inherit iconv()
284
285 # Inherit ucfirst()
286
287 # Inherit lcfirst()
288
289 # Inherit checkTitleEncoding()
290
291 # Inherit stripForSearch()
292
293 # Inherit setAltEncoding()
294
295 # Inherit recodeForEdit()
296
297 # Inherit recodeInput()
298
299 # Inherit isRTL()
300
301 # Inherit getMagicWords()
302
303 function fallback8bitEncoding() {
304 # Windows codepage 1252 is a superset of iso 8859-1
305 # override this to use difference source encoding to
306 # translate incoming 8-bit URLs.
307 return "windows-1254";
308 }
309 }
310
311 ?>