Moved wgUserToggles to wgAllMessages to enable users to translate the option labels
[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
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 # User Toggles
137 "tog-hover" => "Show hoverbox over wiki links",
138 "tog-underline" => "Underline links",
139 "tog-highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
140 "tog-justify" => "Justify paragraphs",
141 "tog-hideminor" => "Hide minor edits in recent changes",
142 "tog-usenewrc" => "Enhanced recent changes (not for all browsers)",
143 "tog-numberheadings" => "Auto-number headings",
144 "tog-showtoolbar" =>"Show edit toolbar",
145 "tog-editondblclick" => "Edit pages on double click (JavaScript)",
146 "tog-editsection" =>"Enable section editing via [edit] links",
147 "tog-editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
148 "tog-showtoc" =>"Show table of contents<br>(for articles with more than 3 headings)",
149 "tog-rememberpassword" => "Remember password across sessions",
150 "tog-editwidth" => "Edit box has full width",
151 "tog-watchdefault" => "Add pages you edit to your watchlist",
152 "tog-minordefault" => "Mark all edits minor by default",
153 "tog-previewontop" => "Show preview before edit box and not after it",
154 "tog-nocache" => "Disable page caching",
155
156 );
157
158 class LanguageTt extends LanguageUtf8 {
159
160 function getDefaultUserOptions () {
161 $opt = Language::getDefaultUserOptions();
162 return $opt;
163 }
164
165 function getBookstoreList () {
166 global $wgBookstoreListTt;
167 return $wgBookstoreListTt;
168 }
169
170 function getNamespaces() {
171 global $wgNamespaceNamesTt;
172 return $wgNamespaceNamesTt;
173 }
174
175 function getNsText( $index ) {
176 global $wgNamespaceNamesTt;
177 return $wgNamespaceNamesTt[$index];
178 }
179
180 function getNsIndex( $text ) {
181 global $wgNamespaceNamesTt;
182
183 foreach ( $wgNamespaceNamesTt as $i => $n ) {
184 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
185 }
186 return false;
187 }
188
189 function specialPage( $name ) {
190 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
191 }
192
193 function getQuickbarSettings() {
194 global $wgQuickbarSettingsTt;
195 return $wgQuickbarSettingsTt;
196 }
197
198 function getSkinNames() {
199 global $wgSkinNamesTt;
200 return $wgSkinNamesTt;
201 }
202
203 function getDateFormats() {
204 global $wgDateFormatsTt;
205 return $wgDateFormatsTt;
206 }
207
208 # Inherit userAdjust()
209
210 function date( $ts, $adj = false ) {
211 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
212
213 $d = (0 + substr( $ts, 6, 2 )) . ". " .
214 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
215 substr( $ts, 0, 4 );
216 return $d;
217 }
218
219 function time( $ts, $adj = false ) {
220 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
221
222 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
223 return $t;
224 }
225
226 function timeanddate( $ts, $adj = false ) {
227 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
228 }
229
230 # Inherit rfc1123()
231
232 function getValidSpecialPages() {
233 global $wgValidSpecialPagesTt;
234 return $wgValidSpecialPagesTt;
235 }
236
237 function getSysopSpecialPages() {
238 global $wgSysopSpecialPagesTt;
239 return $wgSysopSpecialPagesTt;
240 }
241
242 function getDeveloperSpecialPages() {
243 global $wgDeveloperSpecialPagesTt;
244 return $wgDeveloperSpecialPagesTt;
245 }
246
247 function getMessage( $key ) {
248 global $wgAllMessagesTt;
249 if( isset( $wgAllMessagesTt[$key] ) )
250 return $wgAllMessagesTt[$key];
251 return "";
252 }
253
254 # Inherit iconv()
255
256 # Inherit ucfirst()
257
258 # Inherit lcfirst()
259
260 # Inherit checkTitleEncoding()
261
262 # Inherit stripForSearch()
263
264 # Inherit setAltEncoding()
265
266 # Inherit recodeForEdit()
267
268 # Inherit recodeInput()
269
270 # Inherit isRTL()
271
272 # Inherit getMagicWords()
273
274 function fallback8bitEncoding() {
275 # Windows codepage 1252 is a superset of iso 8859-1
276 # override this to use difference source encoding to
277 # translate incoming 8-bit URLs.
278 return "windows-1254";
279 }
280 }
281
282 ?>