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