* (bug 1668) a redesign of the "Date format" system, languages are now able to
[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 );
59
60
61 /* private */ $wgBookstoreListTt = array(
62 "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
63 "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
64 "Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
65 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
66 );
67
68 # Read language names
69 global $wgLanguageNames;
70 require_once( "Names.php" );
71
72 $wgLanguageNamesTt =& $wgLanguageNames;
73
74 # Note to translators:
75 # Please include the English words as synonyms. This allows people
76 # from other wikis to contribute more easily.
77 #
78 /* private */ $wgMagicWordsTt = array(
79 # ID CASE SYNONYMS
80 MAG_REDIRECT => array( 0, '#yünältü' ),
81 MAG_NOTOC => array( 0, '__ETYUQ__' ),
82 MAG_FORCETOC => array( 0, '__ETTIQ__' ),
83 MAG_TOC => array( 0, '__ET__' ),
84 MAG_NOEDITSECTION => array( 0, '__BÜLEMTÖZÄTÜYUQ__' ),
85 MAG_START => array( 0, '__BAŞLAW__' ),
86 MAG_CURRENTMONTH => array( 1, 'AĞIMDAĞI_AY' ),
87 MAG_CURRENTMONTHNAME => array( 1, 'AĞIMDAĞI_AY_İSEME' ),
88 MAG_CURRENTDAY => array( 1, 'AĞIMDAĞI_KÖN' ),
89 MAG_CURRENTDAYNAME => array( 1, 'AĞIMDAĞI_KÖN_İSEME' ),
90 MAG_CURRENTYEAR => array( 1, 'AĞIMDAĞI_YIL' ),
91 MAG_CURRENTTIME => array( 1, 'AĞIMDAĞI_WAQIT' ),
92 MAG_NUMBEROFARTICLES => array( 1, 'MÄQÄLÄ_SANI' ),
93 MAG_CURRENTMONTHNAMEGEN => array( 1, 'AĞIMDAĞI_AY_İSEME_GEN' ),
94 MAG_PAGENAME => array( 1, 'BİTİSEME' ),
95 MAG_NAMESPACE => array( 1, 'İSEMARA' ),
96 MAG_MSG => array( 0, 'STR:' ),
97 MAG_SUBST => array( 0, 'TÖPÇEK:' ),
98 MAG_MSGNW => array( 0, 'MSGNW:' ),
99 MAG_END => array( 0, '__AZAQ__' ),
100 MAG_IMG_THUMBNAIL => array( 1, 'thumbnail', 'thumb' ),
101 MAG_IMG_RIGHT => array( 1, 'uñda' ),
102 MAG_IMG_LEFT => array( 1, 'sulda' ),
103 MAG_IMG_NONE => array( 1, 'yuq' ),
104 MAG_IMG_WIDTH => array( 1, '$1px' ),
105 MAG_IMG_CENTER => array( 1, 'center', 'centre' ),
106 MAG_IMG_FRAMED => array( 1, 'framed', 'enframed', 'frame' ),
107 MAG_INT => array( 0, 'EÇKE:' ),
108 MAG_SITENAME => array( 1, 'SÄXİFÄİSEME' ),
109 MAG_NS => array( 0, 'İA:' ),
110 MAG_LOCALURL => array( 0, 'URINLIURL:' ),
111 MAG_LOCALURLE => array( 0, 'URINLIURLE:' ),
112 MAG_SERVER => array( 0, 'SERVER' )
113 ) + $wgMagicWordsEn;
114
115 #-------------------------------------------------------------------
116 # Default messages
117 #-------------------------------------------------------------------
118 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
119 # hyphen (-). If you need more characters, you may be able to change
120 # the regex in MagicWord::initRegex
121
122 # NOTE: To turn off "Current Events" in the sidebar,
123 # set "currentevents" => ""
124
125 # NOTE: To turn off "Disclaimers" in the title links,
126 # set "disclaimers" => ""
127
128 # NOTE: To turn off "Community portal" in the title links,
129 # set "portal" => ""
130
131 /* private */ $wgAllMessagesTt = array(
132 'special_version_prefix' => '',
133 'special_version_postfix' => '',
134
135 # week days, months
136 'sunday' => "Yäkşämbe",
137 'monday' => "Düşämbe",
138 'tuesday' => "Sişämbe",
139 'wednesday' => "Çärşämbe",
140 'thursday' => "Pänceşämbe",
141 'friday' => "Comğa",
142 'saturday' => "Şimbä",
143 'january' => "Ğínwar",
144 'february' => "Febräl",
145 'march' => "Mart",
146 'april' => "Äpril",
147 'may_long' => "May",
148 'june' => "Yün",
149 'july' => "Yül",
150 'august' => "August",
151 'september' => "Sentäber",
152 'october' => "Öktäber",
153 'november' => "Nöyäber",
154 'december' => "Dekäber",
155 'jan' => "Ğín",
156 'feb' => "Feb",
157 'mar' => "Mar",
158 'apr' => "Äpr",
159 'may' => "May",
160 'jun' => "Yün",
161 'jul' => "Yül",
162 'aug' => "Aug",
163 'sep' => "Sen",
164 'oct' => "Ökt",
165 'nov' => "Nöy",
166 'dec' => "Dek",
167
168 # User Toggles
169 "tog-underline" => "Underline links",
170 "tog-highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
171 "tog-justify" => "Justify paragraphs",
172 "tog-hideminor" => "Hide minor edits in recent changes",
173 "tog-usenewrc" => "Enhanced recent changes (not for all browsers)",
174 "tog-numberheadings" => "Auto-number headings",
175 "tog-showtoolbar" =>"Show edit toolbar",
176 "tog-editondblclick" => "Edit pages on double click (JavaScript)",
177 "tog-editsection" =>"Enable section editing via [edit] links",
178 "tog-editsectiononrightclick"=>"Enable section editing by right clicking<br /> on section titles (JavaScript)",
179 "tog-showtoc" =>"Show table of contents<br />(for articles with more than 3 headings)",
180 "tog-rememberpassword" => "Remember password across sessions",
181 "tog-editwidth" => "Edit box has full width",
182 "tog-watchdefault" => "Add pages you edit to your watchlist",
183 "tog-minordefault" => "Mark all edits minor by default",
184 "tog-previewontop" => "Show preview before edit box and not after it",
185 "tog-nocache" => "Disable page caching",
186
187 );
188
189 class LanguageTt extends LanguageUtf8 {
190
191 function getBookstoreList () {
192 global $wgBookstoreListTt;
193 return $wgBookstoreListTt;
194 }
195
196 function getNamespaces() {
197 global $wgNamespaceNamesTt;
198 return $wgNamespaceNamesTt;
199 }
200
201 function getNsText( $index ) {
202 global $wgNamespaceNamesTt;
203 return $wgNamespaceNamesTt[$index];
204 }
205
206 function getNsIndex( $text ) {
207 global $wgNamespaceNamesTt;
208
209 foreach ( $wgNamespaceNamesTt as $i => $n ) {
210 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
211 }
212 return false;
213 }
214
215 function getQuickbarSettings() {
216 global $wgQuickbarSettingsTt;
217 return $wgQuickbarSettingsTt;
218 }
219
220 function getSkinNames() {
221 global $wgSkinNamesTt;
222 return $wgSkinNamesTt;
223 }
224
225 function getDateFormats() {
226 global $wgDateFormatsTt;
227 return $wgDateFormatsTt;
228 }
229
230 # Inherit userAdjust()
231
232 function date( $ts, $adj = false ) {
233 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
234
235 $d = (0 + substr( $ts, 6, 2 )) . ". " .
236 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
237 substr( $ts, 0, 4 );
238 return $d;
239 }
240
241 function time( $ts, $adj = false ) {
242 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
243
244 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
245 return $t;
246 }
247
248 function timeanddate( $ts, $adj = false ) {
249 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
250 }
251
252 # Inherit rfc1123()
253
254 function getValidSpecialPages() {
255 global $wgValidSpecialPagesTt;
256 return $wgValidSpecialPagesTt;
257 }
258
259 function getSysopSpecialPages() {
260 global $wgSysopSpecialPagesTt;
261 return $wgSysopSpecialPagesTt;
262 }
263
264 function getDeveloperSpecialPages() {
265 global $wgDeveloperSpecialPagesTt;
266 return $wgDeveloperSpecialPagesTt;
267 }
268
269 function getMessage( $key ) {
270 global $wgAllMessagesTt;
271 if( isset( $wgAllMessagesTt[$key] ) ) {
272 return $wgAllMessagesTt[$key];
273 } else {
274 return Language::getMessage( $key );
275 }
276 }
277
278 # Inherit iconv()
279
280 # Inherit ucfirst()
281
282 # Inherit lcfirst()
283
284 # Inherit checkTitleEncoding()
285
286 # Inherit stripForSearch()
287
288 # Inherit setAltEncoding()
289
290 # Inherit recodeForEdit()
291
292 # Inherit recodeInput()
293
294 # Inherit isRTL()
295
296 # Inherit getMagicWords()
297
298 function fallback8bitEncoding() {
299 # Windows codepage 1252 is a superset of iso 8859-1
300 # override this to use difference source encoding to
301 # translate incoming 8-bit URLs.
302 return "windows-1254";
303 }
304 }
305
306 ?>