Revert unauthorized changes made without discussion of outstanding objections.
[lhc/web/wiklou.git] / languages / Language.php
1 <?php
2 if( defined( 'MEDIAWIKI' ) ) {
3
4 #
5 # In general you should not make customizations in these language files
6 # directly, but should use the MediaWiki: special namespace to customize
7 # user interface messages through the wiki.
8 # See http://meta.wikipedia.org/wiki/MediaWiki_namespace
9 #
10 # NOTE TO TRANSLATORS: Do not copy this whole file when making translations!
11 # A lot of common constants and a base class with inheritable methods are
12 # defined here, which should not be redefined. See the other LanguageXx.php
13 # files for examples.
14 #
15
16 #--------------------------------------------------------------------------
17 # Language-specific text
18 #--------------------------------------------------------------------------
19
20 # The names of the namespaces can be set here, but the numbers
21 # are magical, so don't change or move them! The Namespace class
22 # encapsulates some of the magic-ness.
23 #
24
25 if($wgMetaNamespace === FALSE)
26 $wgMetaNamespace = str_replace( ' ', '_', $wgSitename );
27
28 /* private */ $wgNamespaceNamesEn = array(
29 NS_MEDIA => 'Media',
30 NS_SPECIAL => 'Special',
31 NS_MAIN => '',
32 NS_TALK => 'Talk',
33 NS_USER => 'User',
34 NS_USER_TALK => 'User_talk',
35 NS_PROJECT => $wgMetaNamespace,
36 NS_PROJECT_TALK => $wgMetaNamespace . '_talk',
37 NS_IMAGE => 'Image',
38 NS_IMAGE_TALK => 'Image_talk',
39 NS_MEDIAWIKI => 'MediaWiki',
40 NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
41 NS_TEMPLATE => 'Template',
42 NS_TEMPLATE_TALK => 'Template_talk',
43 NS_HELP => 'Help',
44 NS_HELP_TALK => 'Help_talk',
45 NS_CATEGORY => 'Category',
46 NS_CATEGORY_TALK => 'Category_talk'
47 );
48
49 if(isset($wgExtraNamespaces)) {
50 $wgNamespaceNamesEn=$wgNamespaceNamesEn+$wgExtraNamespaces;
51 }
52
53 /* private */ $wgDefaultUserOptionsEn = array(
54 'quickbar' => 1, 'underline' => 1, 'hover' => 1,
55 'cols' => 80, 'rows' => 25, 'searchlimit' => 20,
56 'contextlines' => 5, 'contextchars' => 50,
57 'skin' => $wgDefaultSkin, 'math' => 1, 'rcdays' => 7, 'rclimit' => 50,
58 'highlightbroken' => 1, 'stubthreshold' => 0,
59 'previewontop' => 1, 'editsection'=>1,'editsectiononrightclick'=>0, 'showtoc'=>1,
60 'showtoolbar' =>1,
61 'date' => 0, 'imagesize' => 2
62 );
63
64 /* private */ $wgQuickbarSettingsEn = array(
65 'None', 'Fixed left', 'Fixed right', 'Floating left'
66 );
67
68 /* private */ $wgSkinNamesEn = array(
69 'standard' => 'Classic',
70 'nostalgia' => 'Nostalgia',
71 'cologneblue' => 'Cologne Blue',
72 'davinci' => 'DaVinci',
73 'mono' => 'Mono',
74 'monobook' => 'MonoBook',
75 'myskin' => 'MySkin',
76 'chick' => 'Chick'
77 );
78
79 # Validation types
80 $wgValidationTypesEn = array (
81 '0' => "Style|Awful|Awesome|5",
82 '1' => "Legal|Illegal|Legal|5",
83 '2' => "Completeness|Stub|Extensive|5",
84 '3' => "Facts|Wild guesses|Solid as a rock|5",
85 '4' => "Suitable for 1.0 (paper)|No|Yes|2",
86 '5' => "Suitable for 1.0 (CD)|No|Yes|2"
87 );
88
89 /* private */ $wgMathNamesEn = array(
90 MW_MATH_PNG => 'mw_math_png',
91 MW_MATH_SIMPLE => 'mw_math_simple',
92 MW_MATH_HTML => 'mw_math_html',
93 MW_MATH_SOURCE => 'mw_math_source',
94 MW_MATH_MODERN => 'mw_math_modern',
95 MW_MATH_MATHML => 'mw_math_mathml'
96 );
97
98 # Whether to use user or default setting in Language::date()
99 define( 'MW_DATE_DEFAULT', false );
100 define( 'MW_DATE_USER_FORMAT', true );
101
102 /* private */ $wgDateFormatsEn = array(
103 'No preference',
104 'January 15, 2001',
105 '15 January 2001',
106 '2001 January 15',
107 '2001-01-15'
108 );
109
110 /* private */ $wgUserTogglesEn = array(
111 'hover',
112 'underline',
113 'highlightbroken',
114 'justify',
115 'hideminor',
116 'usenewrc',
117 'numberheadings',
118 'showtoolbar',
119 'editondblclick',
120 'editsection',
121 'editsectiononrightclick',
122 'showtoc',
123 'rememberpassword',
124 'editwidth',
125 'watchdefault',
126 'minordefault',
127 'previewontop',
128 'previewonfirst',
129 'nocache',
130 );
131
132 /* private */ $wgBookstoreListEn = array(
133 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
134 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1',
135 'Barnes & Noble' => 'http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
136 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1'
137 );
138
139 # Read language names
140 global $wgLanguageNames;
141 require_once( 'Names.php' );
142
143 $wgLanguageNamesEn =& $wgLanguageNames;
144
145
146 /* private */ $wgWeekdayNamesEn = array(
147 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday',
148 'friday', 'saturday'
149 );
150
151
152 /* private */ $wgMonthNamesEn = array(
153 'january', 'february', 'march', 'april', 'may_long', 'june',
154 'july', 'august', 'september', 'october', 'november',
155 'december'
156 );
157 /* private */ $wgMonthNamesGenEn = array(
158 'january-gen', 'february-gen', 'march-gen', 'april-gen', 'may-gen', 'june-gen',
159 'july-gen', 'august-gen', 'september-gen', 'october-gen', 'november-gen',
160 'december-gen'
161 );
162
163 /* private */ $wgMonthAbbreviationsEn = array(
164 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
165 'sep', 'oct', 'nov', 'dec'
166 );
167
168 # Note to translators:
169 # Please include the English words as synonyms. This allows people
170 # from other wikis to contribute more easily.
171 #
172 /* private */ $wgMagicWordsEn = array(
173 # ID CASE SYNONYMS
174 MAG_REDIRECT => array( 0, '#redirect' ),
175 MAG_NOTOC => array( 0, '__NOTOC__' ),
176 MAG_FORCETOC => array( 0, '__FORCETOC__' ),
177 MAG_TOC => array( 0, '__TOC__' ),
178 MAG_NOEDITSECTION => array( 0, '__NOEDITSECTION__' ),
179 MAG_START => array( 0, '__START__' ),
180 MAG_CURRENTMONTH => array( 1, 'CURRENTMONTH' ),
181 MAG_CURRENTMONTHNAME => array( 1, 'CURRENTMONTHNAME' ),
182 MAG_CURRENTDAY => array( 1, 'CURRENTDAY' ),
183 MAG_CURRENTDAYNAME => array( 1, 'CURRENTDAYNAME' ),
184 MAG_CURRENTYEAR => array( 1, 'CURRENTYEAR' ),
185 MAG_CURRENTTIME => array( 1, 'CURRENTTIME' ),
186 MAG_NUMBEROFARTICLES => array( 1, 'NUMBEROFARTICLES' ),
187 MAG_CURRENTMONTHNAMEGEN => array( 1, 'CURRENTMONTHNAMEGEN' ),
188 MAG_PAGENAME => array( 1, 'PAGENAME' ),
189 MAG_PAGENAMEE => array( 1, 'PAGENAMEE' ),
190 MAG_NAMESPACE => array( 1, 'NAMESPACE' ),
191 MAG_MSG => array( 0, 'MSG:' ),
192 MAG_SUBST => array( 0, 'SUBST:' ),
193 MAG_MSGNW => array( 0, 'MSGNW:' ),
194 MAG_END => array( 0, '__END__' ),
195 MAG_IMG_THUMBNAIL => array( 1, 'thumbnail', 'thumb' ),
196 MAG_IMG_RIGHT => array( 1, 'right' ),
197 MAG_IMG_LEFT => array( 1, 'left' ),
198 MAG_IMG_NONE => array( 1, 'none' ),
199 MAG_IMG_WIDTH => array( 1, '$1px' ),
200 MAG_IMG_CENTER => array( 1, 'center', 'centre' ),
201 MAG_IMG_FRAMED => array( 1, 'framed', 'enframed', 'frame' ),
202 MAG_INT => array( 0, 'INT:' ),
203 MAG_SITENAME => array( 1, 'SITENAME' ),
204 MAG_NS => array( 0, 'NS:' ),
205 MAG_LOCALURL => array( 0, 'LOCALURL:' ),
206 MAG_LOCALURLE => array( 0, 'LOCALURLE:' ),
207 MAG_SERVER => array( 0, 'SERVER' ),
208 MAG_GRAMMAR => array( 0, 'GRAMMAR:' )
209 );
210
211 #-------------------------------------------------------------------
212 # Default messages
213 #-------------------------------------------------------------------
214 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
215 # hyphen (-). If you need more characters, you may be able to change
216 # the regex in MagicWord::initRegex
217
218 # required for copyrightwarning
219 global $wgRightsText;
220
221 /* private */ $wgAllMessagesEn = array(
222 'special_version_prefix' => '&nbsp;',
223 'special_version_postfix' => '&nbsp;',
224 # User preference toggles
225 'tog-hover' => 'Show hoverbox over wiki links',
226 'tog-underline' => 'Underline links',
227 'tog-highlightbroken' => 'Format broken links <a href="" class="new">like this</a> (alternative: like this<a href="" class="internal">?</a>).',
228 'tog-justify' => 'Justify paragraphs',
229 'tog-hideminor' => 'Hide minor edits in recent changes',
230 'tog-usenewrc' => 'Enhanced recent changes (not for all browsers)',
231 'tog-numberheadings' => 'Auto-number headings',
232 'tog-showtoolbar'=>'Show edit toolbar',
233 'tog-editondblclick' => 'Edit pages on double click (JavaScript)',
234 'tog-editsection'=>'Enable section editing via [edit] links',
235 'tog-editsectiononrightclick'=>'Enable section editing by right clicking<br /> on section titles (JavaScript)',
236 'tog-showtoc'=>'Show table of contents<br />(for pages with more than 3 headings)',
237 'tog-rememberpassword' => 'Remember password across sessions',
238 'tog-editwidth' => 'Edit box has full width',
239 'tog-watchdefault' => 'Add pages you edit to your watchlist',
240 'tog-minordefault' => 'Mark all edits minor by default',
241 'tog-previewontop' => 'Show preview before edit box and not after it',
242 'tog-previewonfirst' => 'Show preview on first edit',
243 'tog-nocache' => 'Disable page caching',
244
245 # dates
246 'sunday' => 'Sunday',
247 'monday' => 'Monday',
248 'tuesday' => 'Tuesday',
249 'wednesday' => 'Wednesday',
250 'thursday' => 'Thursday',
251 'friday' => 'Friday',
252 'saturday' => 'Saturday',
253 'january' => 'January',
254 'february' => 'February',
255 'march' => 'March',
256 'april' => 'April',
257 'may_long' => 'May',
258 'june' => 'June',
259 'july' => 'July',
260 'august' => 'August',
261 'september' => 'September',
262 'october' => 'October',
263 'november' => 'November',
264 'december' => 'December',
265 'jan' => 'Jan',
266 'feb' => 'Feb',
267 'mar' => 'Mar',
268 'apr' => 'Apr',
269 'may' => 'May',
270 'jun' => 'Jun',
271 'jul' => 'Jul',
272 'aug' => 'Aug',
273 'sep' => 'Sep',
274 'oct' => 'Oct',
275 'nov' => 'Nov',
276 'dec' => 'Dec',
277 # Bits of text used by many pages:
278 #
279 'categories' => 'Categories',
280 'category' => 'category',
281 'category_header' => 'Articles in category "$1"',
282 'subcategories' => 'Subcategories',
283
284
285 'linktrail' => '/^([a-z]+)(.*)$/sD',
286 'mainpage' => 'Main Page',
287 'mainpagetext' => 'Wiki software successfully installed.',
288 "mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]
289 and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] for usage and configuration help.",
290
291 # NOTE: To turn off "Community portal" in the title links,
292 # set "portal" => "-"
293
294 'portal' => 'Community portal',
295 'portal-url' => 'Project:Community Portal',
296 'about' => 'About',
297 "aboutsite" => "About {{SITENAME}}",
298 "aboutpage" => "Project:About",
299 'article' => 'Content page',
300 'help' => 'Help',
301 "helppage" => "Help:Contents",
302 "wikititlesuffix" => "{{SITENAME}}",
303 "bugreports" => "Bug reports",
304 "bugreportspage" => "Project:Bug_reports",
305 'sitesupport' => '-', # To enable, something like 'Donations',
306 'sitesupport-url' => 'Project:Site support',
307 'faq' => 'FAQ',
308 "faqpage" => "Project:FAQ",
309 "edithelp" => "Editing help",
310 "newwindow" => "(opens in new window)",
311 "edithelppage" => "Help:Editing",
312 'cancel' => 'Cancel',
313 'qbfind' => 'Find',
314 'qbbrowse' => 'Browse',
315 'qbedit' => 'Edit',
316 'qbpageoptions' => 'This page',
317 'qbpageinfo' => 'Context',
318 'qbmyoptions' => 'My pages',
319 'qbspecialpages' => 'Special pages',
320 'moredotdotdot' => 'More...',
321 'mypage' => 'My page',
322 'mytalk' => 'My talk',
323 'anontalk' => 'Talk for this IP',
324 'navigation' => 'Navigation',
325
326 # NOTE: To turn off "Current Events" in the sidebar,
327 # set "currentevents" => "-"
328
329 'currentevents' => 'Current events',
330 'currentevents-url' => 'Current events',
331
332 # NOTE: To turn off "Disclaimers" in the title links,
333 # set "disclaimers" => "-"
334
335 'disclaimers' => 'Disclaimers',
336 "disclaimerpage" => "Project:General_disclaimer",
337 "errorpagetitle" => "Error",
338 "returnto" => "Return to $1.",
339 "tagline" => "From {{SITENAME}}",
340 'whatlinkshere' => 'Pages that link here',
341 'help' => 'Help',
342 'search' => 'Search',
343 'go' => 'Go',
344 "history" => 'Page history',
345 'history_short' => 'History',
346 'info_short' => 'Information',
347 'printableversion' => 'Printable version',
348 'edit' => 'Edit',
349 'editthispage' => 'Edit this page',
350 'delete' => 'Delete',
351 "deletethispage" => "Delete this page",
352 "undelete_short" => "Undelete $1 edits",
353 'protect' => 'Protect',
354 'protectthispage' => 'Protect this page',
355 'unprotect' => 'Unprotect',
356 'unprotectthispage' => 'Unprotect this page',
357 'newpage' => 'New page',
358 'talkpage' => 'Discuss this page',
359 'specialpage' => 'Special Page',
360 'personaltools' => 'Personal tools',
361 'postcomment' => 'Post a comment',
362 'addsection' => '+',
363 'articlepage' => 'View content page',
364 'subjectpage' => 'View subject', # For compatibility
365 'talk' => 'Discussion',
366 'toolbox' => 'Toolbox',
367 'userpage' => 'View user page',
368 'wikipediapage' => 'View project page',
369 'imagepage' => 'View image page',
370 'viewtalkpage' => 'View discussion',
371 'otherlanguages' => 'Other languages',
372 'redirectedfrom' => '(Redirected from $1)',
373 'lastmodified' => 'This page was last modified $1.',
374 'viewcount' => 'This page has been accessed $1 times.',
375 'copyright' => 'Content is available under $1.',
376 'poweredby' => "{{SITENAME}} is powered by [http://www.mediawiki.org/ MediaWiki], an open source wiki engine.",
377 'printsubtitle' => "(From {{SERVER}})",
378 'protectedpage' => 'Protected page',
379 'administrators' => "Project:Administrators",
380 'sysoptitle' => 'Sysop access required',
381 'sysoptext' => "The action you have requested can only be
382 performed by users with \"sysop\" status.
383 See $1.",
384 'developertitle' => 'Developer access required',
385 "developertext" => "The action you have requested can only be
386 performed by users with \"developer\" status.
387 See $1.",
388 'bureaucrattitle' => 'Bureaucrat access required',
389 "bureaucrattext" => "The action you have requested can only be
390 performed by sysops with \"bureaucrat\" status.",
391 'nbytes' => '$1 bytes',
392 'go' => 'Go',
393 'ok' => 'OK',
394 'sitetitle' => "{{SITENAME}}",
395 'pagetitle' => "$1 - {{SITENAME}}",
396 'sitesubtitle' => 'The Free Encyclopedia', # FIXME
397 'retrievedfrom' => "Retrieved from \"$1\"",
398 'newmessages' => "You have $1.",
399 'newmessageslink' => 'new messages',
400 'editsection'=>'edit',
401 'toc' => 'Table of contents',
402 'showtoc' => 'show',
403 'hidetoc' => 'hide',
404 'thisisdeleted' => "View or restore $1?",
405 'restorelink' => "$1 deleted edits",
406 'feedlinks' => 'Feed:',
407 'sitenotice' => '', # the equivalent to wgSiteNotice
408
409 # Short words for each namespace, by default used in the 'article' tab in monobook
410 'nstab-main' => 'Article',
411 'nstab-user' => 'User page',
412 'nstab-media' => 'Media',
413 'nstab-special' => 'Special',
414 'nstab-wp' => 'About',
415 'nstab-image' => 'Image',
416 'nstab-mediawiki' => 'Message',
417 'nstab-template' => 'Template',
418 'nstab-help' => 'Help',
419 'nstab-category' => 'Category',
420
421 # Main script and global functions
422 #
423 'nosuchaction' => 'No such action',
424 'nosuchactiontext' => 'The action specified by the URL is not
425 recognized by the wiki',
426 'nosuchspecialpage' => 'No such special page',
427 'nospecialpagetext' => 'You have requested a special page that is not
428 recognized by the wiki.',
429
430 # General errors
431 #
432 'error' => 'Error',
433 'databaseerror' => 'Database error',
434 'dberrortext' => "A database query syntax error has occurred.
435 This may indicate a bug in the software.
436 The last attempted database query was:
437 <blockquote><tt>$1</tt></blockquote>
438 from within function \"<tt>$2</tt>\".
439 MySQL returned error \"<tt>$3: $4</tt>\".",
440 'dberrortextcl' => "A database query syntax error has occurred.
441 The last attempted database query was:
442 \"$1\"
443 from within function \"$2\".
444 MySQL returned error \"$3: $4\".\n",
445 'noconnect' => 'Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server. <br />
446 $1',
447 'nodb' => "Could not select database $1",
448 'cachederror' => 'The following is a cached copy of the requested page, and may not be up to date.',
449 'readonly' => 'Database locked',
450 'enterlockreason' => 'Enter a reason for the lock, including an estimate
451 of when the lock will be released',
452 'readonlytext' => "The database is currently locked to new
453 entries and other modifications, probably for routine database maintenance,
454 after which it will be back to normal.
455 The administrator who locked it offered this explanation:
456 <p>$1",
457 'missingarticle' => "The database did not find the text of a page
458 that it should have found, named \"$1\".
459
460 <p>This is usually caused by following an outdated diff or history link to a
461 page that has been deleted.
462
463 <p>If this is not the case, you may have found a bug in the software.
464 Please report this to an administrator, making note of the URL.",
465 'internalerror' => 'Internal error',
466 'filecopyerror' => "Could not copy file \"$1\" to \"$2\".",
467 'filerenameerror' => "Could not rename file \"$1\" to \"$2\".",
468 'filedeleteerror' => "Could not delete file \"$1\".",
469 'filenotfound' => "Could not find file \"$1\".",
470 'unexpected' => "Unexpected value: \"$1\"=\"$2\".",
471 'formerror' => 'Error: could not submit form',
472 'badarticleerror' => 'This action cannot be performed on this page.',
473 'cannotdelete' => 'Could not delete the page or image specified. (It may have already been deleted by someone else.)',
474 'badtitle' => 'Bad title',
475 'badtitletext' => "The requested page title was invalid, empty, or
476 an incorrectly linked inter-language or inter-wiki title.",
477 'perfdisabled' => 'Sorry! This feature has been temporarily disabled
478 because it slows the database down to the point that no one can use
479 the wiki.',
480 'perfdisabledsub' => "Here's a saved copy from $1:", # obsolete?
481 'perfcached' => 'The following data is cached and may not be completely up to date:',
482 'wrong_wfQuery_params' => "Incorrect parameters to wfQuery()<br />
483 Function: $1<br />
484 Query: $2
485 ",
486 'viewsource' => 'View source',
487 'protectedtext' => "This page has been locked to prevent editing; there are
488 a number of reasons why this may be so, please see
489 [[Project:Protected page]].
490
491 You can view and copy the source of this page:",
492 'seriousxhtmlerrors' => 'There were serious xhtml markup errors detected by tidy.',
493
494 # Login and logout pages
495 #
496 "logouttitle" => 'User logout',
497 "logouttext" => "You are now logged out.
498 You can continue to use {{SITENAME}} anonymously, or you can log in
499 again as the same or as a different user. Note that some pages may
500 continue to be displayed as if you were still logged in, until you clear
501 your browser cache\n",
502
503 'welcomecreation' => "== Welcome, $1! ==
504
505 Your account has been created. Don't forget to change your {{SITENAME}} preferences.",
506
507 'loginpagetitle' => 'User login',
508 'yourname' => 'Your user name',
509 'yourpassword' => 'Your password',
510 'yourpasswordagain' => 'Retype password',
511 'newusersonly' => ' (new users only)',
512 'remembermypassword' => 'Remember my password across sessions.',
513 'loginproblem' => '<b>There has been a problem with your login.</b><br />Try again!',
514 'alreadyloggedin' => "<font color=red><b>User $1, you are already logged in!</b></font><br />\n",
515
516 'login' => 'Log in',
517 'loginprompt' => "You must have cookies enabled to log in to {{SITENAME}}.",
518 'userlogin' => 'Create an account or log in',
519 'logout' => 'Log out',
520 'userlogout' => 'Log out',
521 'notloggedin' => 'Not logged in',
522 'createaccount' => 'Create new account',
523 'createaccountmail' => 'by email',
524 'badretype' => 'The passwords you entered do not match.',
525 'userexists' => 'The user name you entered is already in use. Please choose a different name.',
526 'youremail' => 'Your email*',
527 'yourrealname' => 'Your real name*',
528 'yourlanguage' => 'Interface language',
529 'yourvariant' => 'Language variant',
530 'yournick' => 'Your nickname (for signatures)',
531 'emailforlost' => "Fields marked with a star (*) are optional. Storing an email address enables people to contact you through the website without you having to reveal your
532 email address to them, and it can be used to send you a new password if you forget it.<br /><br />Your real name, if you choose to provide it, will be used for giving you attribution for your work.",
533 'prefs-help-userdata' => '* <strong>Real name</strong> (optional): if you choose to provide it this will be used for giving you attribution for your work.<br />
534 * <strong>Email</strong> (optional): Enables people to contact you through the website without you having to reveal your
535 email address to them, and it can be used to send you a new password if you forget it.',
536 'loginerror' => 'Login error',
537 'nocookiesnew' => "The user account was created, but you are not logged in. {{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
538 "nocookieslogin" => "{{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
539 'noname' => 'You have not specified a valid user name.',
540 'loginsuccesstitle' => 'Login successful',
541 'loginsuccess' => "You are now logged in to {{SITENAME}} as \"$1\".",
542 'nosuchuser' => "There is no user by the name \"$1\".
543 Check your spelling, or use the form below to create a new user account.",
544 'nosuchusershort' => "There is no user by the name \"$1\". Check your spelling.",
545 'wrongpassword' => 'The password you entered is incorrect. Please try again.',
546 'mailmypassword' => 'Mail me a new password',
547 'passwordremindertitle' => "Password reminder from {{SITENAME}}",
548 'passwordremindertext' => "Someone (probably you, from IP address $1)
549 requested that we send you a new {{SITENAME}} login password.
550 The password for user \"$2\" is now \"$3\".
551 You should log in and change your password now.",
552 'noemail' => "There is no e-mail address recorded for user \"$1\".",
553 'passwordsent' => "A new password has been sent to the e-mail address
554 registered for \"$1\".
555 Please log in again after you receive it.",
556 'loginend' => '&nbsp;',
557 'mailerror' => "Error sending mail: $1",
558 'acct_creation_throttle_hit' => 'Sorry, you have already created $1 accounts. You can\'t make any more.',
559
560 # Edit page toolbar
561 'bold_sample'=>'Bold text',
562 'bold_tip'=>'Bold text',
563 'italic_sample'=>'Italic text',
564 'italic_tip'=>'Italic text',
565 'link_sample'=>'Link title',
566 'link_tip'=>'Internal link',
567 'extlink_sample'=>'http://www.example.com link title',
568 'extlink_tip'=>'External link (remember http:// prefix)',
569 'headline_sample'=>'Headline text',
570 'headline_tip'=>'Level 2 headline',
571 'math_sample'=>'Insert formula here',
572 'math_tip'=>'Mathematical formula (LaTeX)',
573 'nowiki_sample'=>'Insert non-formatted text here',
574 'nowiki_tip'=>'Ignore wiki formatting',
575 'image_sample'=>'Example.jpg',
576 'image_tip'=>'Embedded image',
577 'media_sample'=>'Example.mp3',
578 'media_tip'=>'Media file link',
579 'sig_tip'=>'Your signature with timestamp',
580 'hr_tip'=>'Horizontal line (use sparingly)',
581 'infobox'=>'Click a button to get an example text',
582 # alert box shown in browsers where text selection does not work, test e.g. with mozilla or konqueror
583 'infobox_alert'=>"Please enter the text you want to be formatted.\\n It will be shown in the infobox for copy and pasting.\\nExample:\\n$1\\nwill become:\\n$2",
584
585 # Edit pages
586 #
587 'summary' => 'Summary',
588 'subject' => 'Subject/headline',
589 'minoredit' => 'This is a minor edit',
590 'watchthis' => 'Watch this page',
591 'savearticle' => 'Save page',
592 'preview' => 'Preview',
593 'showpreview' => 'Show preview',
594 'blockedtitle' => 'User is blocked',
595 'blockedtext' => "Your user name or IP address has been blocked by $1.
596 The reason given is this:<br />''$2''<p>You may contact $1 or one of the other
597 [[Project:Administrators|administrators]] to discuss the block.
598
599 Note that you may not use the \"email this user\" feature unless you have a valid email address registered in your [[Special:Preferences|user preferences]].
600
601 Your IP address is $3. Please include this address in any queries you make.
602 ",
603 'whitelistedittitle' => 'Login required to edit',
604 'whitelistedittext' => 'You have to [[Special:Userlogin|login]] to edit pages.',
605 'whitelistreadtitle' => 'Login required to read',
606 'whitelistreadtext' => 'You have to [[Special:Userlogin|login]] to read pages.',
607 'whitelistacctitle' => 'You are not allowed to create an account',
608 'whitelistacctext' => 'To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.',
609 'loginreqtitle' => 'Login Required',
610 'loginreqtext' => 'You must [[special:Userlogin|login]] to view other pages.',
611 'accmailtitle' => 'Password sent.',
612 'accmailtext' => "The Password for '$1' has been sent to $2.",
613 'newarticle' => '(New)',
614 'newarticletext' =>
615 "You've followed a link to a page that doesn't exist yet.
616 To create the page, start typing in the box below
617 (see the [[Project:Help|help page]] for more info).
618 If you are here by mistake, just click your browser's '''back''' button.",
619 'talkpagetext' => '<!-- MediaWiki:talkpagetext -->',
620 'anontalkpagetext' => "----''This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical [[IP address]] to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please [[Special:Userlogin|create an account or log in]] to avoid future confusion with other anonymous users.'' ",
621 'noarticletext' => '(There is currently no text in this page)',
622 'clearyourcache' => "'''Note:''' After saving, you have to clear your browser cache to see the changes: '''Mozilla:''' click ''Reload'' (or ''Ctrl-R''), '''IE / Opera:''' ''Ctrl-F5'', '''Safari:''' ''Cmd-R'', '''Konqueror''' ''Ctrl-R''.",
623 'usercssjsyoucanpreview' => "<strong>Tip:</strong> Use the 'Show preview' button to test your new CSS/JS before saving.",
624 'usercsspreview' => "'''Remember that you are only previewing your user CSS, it has not yet been saved!'''",
625 'userjspreview' => "'''Remember that you are only testing/previewing your user JavaScript, it has not yet been saved!'''",
626 'updated' => '(Updated)',
627 'note' => '<strong>Note:</strong> ',
628 'previewnote' => 'Remember that this is only a preview, and has not yet been saved!',
629 'previewconflict' => 'This preview reflects the text in the upper
630 text editing area as it will appear if you choose to save.',
631 'editing' => "Editing $1",
632 'editingsection' => "Editing $1 (section)",
633 'editingcomment' => "Editing $1 (comment)",
634 'editconflict' => 'Edit conflict: $1',
635 'explainconflict' => "Someone else has changed this page since you
636 started editing it.
637 The upper text area contains the page text as it currently exists.
638 Your changes are shown in the lower text area.
639 You will have to merge your changes into the existing text.
640 <b>Only</b> the text in the upper text area will be saved when you
641 press \"Save page\".\n<p>",
642 'yourtext' => 'Your text',
643 'storedversion' => 'Stored version',
644 'nonunicodebrowser' => "<strong>WARNING: Your browser is not unicode compliant, please change it before editing an article.</strong>",
645 'editingold' => "<strong>WARNING: You are editing an out-of-date
646 revision of this page.
647 If you save it, any changes made since this revision will be lost.</strong>\n",
648 'yourdiff' => 'Differences',
649 'copyrightwarning' => "Please note that all contributions to {{SITENAME}} are
650 considered to be released under the $2 (see $1 for details).
651 If you don't want your writing to be edited mercilessly and redistributed
652 at will, then don't submit it here.<br />
653 You are also promising us that you wrote this yourself, or copied it from a
654 public domain or similar free resource.
655 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
656 'copyrightwarning2' => "Please note that all contributions to {{SITENAME}}
657 may be edited, altered, or removed by other contributors.
658 If you don't want your writing to be edited mercilessly, then don't submit it here.<br />
659 You are also promising us that you wrote this yourself, or copied it from a
660 public domain or similar free resource (see $1 for details).
661 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
662 'longpagewarning' => "WARNING: This page is $1 kilobytes long; some
663 browsers may have problems editing pages approaching or longer than 32kb.
664 Please consider breaking the page into smaller sections.",
665 'readonlywarning' => 'WARNING: The database has been locked for maintenance,
666 so you will not be able to save your edits right now. You may wish to cut-n-paste
667 the text into a text file and save it for later.',
668 'protectedpagewarning' => "WARNING: This page has been locked so that only
669 users with sysop privileges can edit it. Be sure you are following the
670 <a href='$wgScript/Project:Protected_page_guidelines'>protected page
671 guidelines</a>.",
672 'templatesused' => 'Templates used on this page:',
673
674 # History pages
675 #
676 'revhistory' => 'Revision history',
677 'nohistory' => 'There is no edit history for this page.',
678 'revnotfound' => 'Revision not found',
679 'revnotfoundtext' => "The old revision of the page you asked for could not be found.
680 Please check the URL you used to access this page.\n",
681 'loadhist' => 'Loading page history',
682 'currentrev' => 'Current revision',
683 'revisionasof' => 'Revision as of $1',
684 'revisionasofwithlink' => 'Revision as of $1; $2<br />$3 | $4',
685 'previousrevision' => '&larr;Older revision',
686 'nextrevision' => 'Newer revision&rarr;',
687 'currentrevisionlink' => 'view current revision',
688 'cur' => 'cur',
689 'next' => 'next',
690 'last' => 'last',
691 'orig' => 'orig',
692 'histlegend' => 'Diff selection: mark the radio boxes of the versions to compare and hit enter or the button at the bottom.<br />
693 Legend: (cur) = difference with current version,
694 (last) = difference with preceding version, M = minor edit.',
695 'history_copyright' => '-',
696
697 # Diffs
698 #
699 'difference' => '(Difference between revisions)',
700 'loadingrev' => 'loading revision for diff',
701 'lineno' => "Line $1:",
702 'editcurrent' => 'Edit the current version of this page',
703 'selectnewerversionfordiff' => 'Select a newer version for comparison',
704 'selectolderversionfordiff' => 'Select an older version for comparison',
705 'compareselectedversions' => 'Compare selected versions',
706
707 # Search results
708 #
709 'searchresults' => 'Search results',
710 'searchresulttext' => "For more information about searching {{SITENAME}}, see [[Project:Searching|Searching {{SITENAME}}]].",
711 'searchquery' => "For query \"$1\"",
712 'badquery' => 'Badly formed search query',
713 'badquerytext' => 'We could not process your query.
714 This is probably because you have attempted to search for a
715 word fewer than three letters long, which is not yet supported.
716 It could also be that you have mistyped the expression, for
717 example "fish and and scales".
718 Please try another query.',
719 'matchtotals' => "The query \"$1\" matched $2 page titles
720 and the text of $3 pages.",
721 'nogomatch' => 'No page with this exact title exists, trying full text search.',
722 'titlematches' => 'Article title matches',
723 'notitlematches' => 'No page title matches',
724 'textmatches' => 'Page text matches',
725 'notextmatches' => 'No page text matches',
726 'prevn' => "previous $1",
727 'nextn' => "next $1",
728 'viewprevnext' => "View ($1) ($2) ($3).",
729 'showingresults' => "Showing below up to <b>$1</b> results starting with #<b>$2</b>.",
730 'showingresultsnum' => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
731 'nonefound' => "'''Note''': unsuccessful searches are
732 often caused by searching for common words like \"have\" and \"from\",
733 which are not indexed, or by specifying more than one search term (only pages
734 containing all of the search terms will appear in the result).",
735 'powersearch' => 'Search',
736 'powersearchtext' => "
737 Search in namespaces :<br />
738 $1<br />
739 $2 List redirects &nbsp; Search for $3 $9",
740 "searchdisabled" => '<p style="margin: 1.5em 2em 1em">{{SITENAME}} search is disabled for performance reasons. You can search via Google in the meantime.
741 <span style="font-size: 89%; display: block; margin-left: .2em">Note that their indexes of {{SITENAME}} content may be out of date.</span></p>',
742 'googlesearch' => "
743 <!-- SiteSearch Google -->
744 <FORM method=GET action=\"http://www.google.com/search\">
745 <TABLE bgcolor=\"#FFFFFF\"><tr><td>
746 <A HREF=\"http://www.google.com/\">
747 <IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
748 border=\"0\" ALT=\"Google\"></A>
749 </td>
750 <td>
751 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
752 <INPUT type=submit name=btnG VALUE=\"Google Search\">
753 <font size=-1>
754 <input type=hidden name=domains value=\"{{SERVER}}\"><br /><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{{SERVER}}\" checked> {{SERVER}} <br />
755 <input type='hidden' name='ie' value='$2'>
756 <input type='hidden' name='oe' value='$2'>
757 </font>
758 </td></tr></TABLE>
759 </FORM>
760 <!-- SiteSearch Google -->",
761 'blanknamespace' => '(Main)',
762
763 # Preferences page
764 #
765 'preferences' => 'Preferences',
766 'prefsnologin' => 'Not logged in',
767 'prefsnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
768 to set user preferences.",
769 'prefslogintext' => "You are logged in as \"$1\".
770 Your internal ID number is $2.
771
772 See [[Project:User preferences help]] for help deciphering the options.",
773 'prefsreset' => 'Preferences have been reset from storage.',
774 'qbsettings' => 'Quickbar settings',
775 'qbsettingsnote' => 'This preference only works in the \'Standard\' and the \'CologneBlue\' skin.',
776 'changepassword' => 'Change password',
777 'skin' => 'Skin',
778 'math' => 'Rendering math',
779 'dateformat' => 'Date format',
780 'math_failure' => 'Failed to parse',
781 'math_unknown_error' => 'unknown error',
782 'math_unknown_function' => 'unknown function ',
783 'math_lexing_error' => 'lexing error',
784 'math_syntax_error' => 'syntax error',
785 'math_image_error' => 'PNG conversion failed; check for correct installation of latex, dvips, gs, and convert',
786 'math_bad_tmpdir' => 'Can\'t write to or create math temp directory',
787 'math_bad_output' => 'Can\'t write to or create math output directory',
788 'math_notexvc' => 'Missing texvc executable; please see math/README to configure.',
789 'prefs-personal' => 'User data',
790 'prefs-rc' => 'Recent changes and stub display',
791 'prefs-misc' => 'Misc settings',
792 'saveprefs' => 'Save preferences',
793 'resetprefs' => 'Reset preferences',
794 'oldpassword' => 'Old password',
795 'newpassword' => 'New password',
796 'retypenew' => 'Retype new password',
797 'textboxsize' => 'Editing',
798 'rows' => 'Rows',
799 'columns' => 'Columns',
800 'searchresultshead' => 'Search result settings',
801 'resultsperpage' => 'Hits to show per page',
802 'contextlines' => 'Lines to show per hit',
803 'contextchars' => 'Characters of context per line',
804 'stubthreshold' => 'Threshold for stub display',
805 'recentchangescount' => 'Number of titles in recent changes',
806 'savedprefs' => 'Your preferences have been saved.',
807 'timezonelegend' => 'Time zone',
808 'timezonetext' => 'Enter number of hours your local time differs
809 from server time (UTC).',
810 'localtime' => 'Local time display',
811 'timezoneoffset' => 'Offset',
812 'servertime' => 'Server time is now',
813 'guesstimezone' => 'Fill in from browser',
814 'emailflag' => 'Disable e-mail from other users',
815 'defaultns' => 'Search in these namespaces by default:',
816 'default' => 'default',
817
818 # User levels special page
819 #
820
821 # switching pan
822 'userlevels-lookup-group' => 'Manage group rights',
823 'userlevels-group-edit' => 'Existent groups: ',
824 'editgroup' => 'Edit Group',
825 'addgroup' => 'Add Group',
826
827 'userlevels-lookup-user' => 'Manage user groups',
828 'userlevels-user-editname' => 'Enter a username: ',
829 'editusergroup' => 'Edit User Groups',
830
831 # group editing
832 'userlevels-editgroup' => 'Edit group',
833 'userlevels-addgroup' => 'Add group',
834 'userlevels-editgroup-name' => 'Group name: ',
835 'userlevels-editgroup-description' => 'Group description (max 255 characters):<br />',
836 'savegroup' => 'Save Group',
837
838 # user groups editing
839 'userlevels-editusergroup' => 'Edit user groups',
840 'saveusergroups' => 'Save User Groups',
841 'userlevels-groupsmember' => 'Member of:',
842 'userlevels-groupsavailable' => 'Available groups:',
843 'userlevels-groupshelp' => 'Select groups you want the user to be removed from or added to.
844 Unselected groups will not be changed. You can unselect a group by using CTRL + Left Click',
845 # Recent changes
846 #
847 'changes' => 'changes',
848 'recentchanges' => 'Recent changes',
849 'recentchanges-url' => 'Special:Recentchanges',
850 'recentchangestext' => 'Track the most recent changes to the wiki on this page.',
851 'rcloaderr' => 'Loading recent changes',
852 'rcnote' => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
853 'rcnotefrom' => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
854 'rclistfrom' => "Show new changes starting from $1",
855 'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users | $4 patrolled edits ",
856 'rclinks' => "Show last $1 changes in last $2 days<br />$3",
857 'rchide' => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
858 'rcliu' => "; $1 edits from logged in users",
859 'diff' => 'diff',
860 'hist' => 'hist',
861 'hide' => 'hide',
862 'show' => 'show',
863 'tableform' => 'table',
864 'listform' => 'list',
865 'nchanges' => "$1 changes",
866 'minoreditletter' => 'm',
867 'newpageletter' => 'N',
868 'sectionlink' => '&rarr;',
869
870 # Upload
871 #
872 'upload' => 'Upload file',
873 'uploadbtn' => 'Upload file',
874 'uploadlink' => 'Upload images',
875 'reupload' => 'Re-upload',
876 'reuploaddesc' => 'Return to the upload form.',
877 'uploadnologin' => 'Not logged in',
878 'uploadnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
879 to upload files.",
880 'uploadfile' => 'Upload images, sounds, documents etc.',
881 'uploaderror' => 'Upload error',
882 'uploadtext' =>
883 "'''STOP!''' Before you upload here,
884 make sure to read and follow the [[Project:Image use policy|image use policy]].
885
886 To view or search previously uploaded images,
887 go to the [[Special:Imagelist|list of uploaded images]].
888 Uploads and deletions are logged on the
889 [[Project:Upload log|upload log]].
890
891 Use the form below to upload new image files for use in
892 illustrating your pages.
893 On most browsers, you will see a \"Browse...\" button, which will
894 bring up your operating system's standard file open dialog.
895 Choosing a file will fill the name of that file into the text
896 field next to the button.
897 You must also check the box affirming that you are not
898 violating any copyrights by uploading the file.
899 Press the \"Upload\" button to finish the upload.
900 This may take some time if you have a slow internet connection.
901
902 The preferred formats are JPEG for photographic images, PNG
903 for drawings and other iconic images, and OGG for sounds.
904 Please name your files descriptively to avoid confusion.
905 To include the image in a page, use a link in the form
906 '''<nowiki>[[{{ns:6}}:file.jpg]]</nowiki>''' or
907 '''<nowiki>[[{{ns:6}}:file.png|alt text]]</nowiki>''' or
908 '''<nowiki>[[{{ns:-2}}:file.ogg]]</nowiki>''' for sounds.
909
910 Please note that as with wiki pages, others may edit or
911 delete your uploads if they think it serves the project, and
912 you may be blocked from uploading if you abuse the system.",
913
914 'uploadlog' => 'upload log',
915 'uploadlogpage' => 'Upload_log',
916 'uploadlogpagetext' => 'Below is a list of the most recent file uploads.',
917 'filename' => 'Filename',
918 'filedesc' => 'Summary',
919 'filestatus' => 'Copyright status',
920 'filesource' => 'Source',
921 'affirmation' => "I affirm that the copyright holder of this file
922 agrees to license it under the terms of the $1.",
923 'copyrightpage' => "Project:Copyrights",
924 'copyrightpagename' => "{{SITENAME}} copyright",
925 'uploadedfiles' => 'Uploaded files',
926 'noaffirmation' => 'You must affirm that your upload does not violate any copyrights.',
927 'ignorewarning' => 'Ignore warning and save file anyway.',
928 'minlength' => 'Image names must be at least three letters.',
929 'illegalfilename' => 'The filename "$1" contains characters that are not allowed in page titles. Please rename the file and try uploading it again.',
930 'badfilename' => "Image name has been changed to \"$1\".",
931 'badfiletype' => "\".$1\" is not a recommended image file format.",
932 'largefile' => 'It is recommended that images not exceed 100k in size.',
933 'emptyfile' => 'The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.',
934 'fileexists' => 'A file with this name exists already, please check $1 if you are not sure if you want to change it.',
935 'successfulupload' => 'Successful upload',
936 'fileuploaded' => "File $1 uploaded successfully.
937 Please follow this link: $2 to the description page and fill
938 in information about the file, such as where it came from, when it was
939 created and by whom, and anything else you may know about it. If this is an image, you can insert it like this: <tt><nowiki>[[Image:$1|thumb|Description]]</nowiki></tt>",
940 'uploadwarning' => 'Upload warning',
941 'savefile' => 'Save file',
942 'uploadedimage' => "uploaded \"$1\"",
943 'uploaddisabled' => 'Sorry, uploading is disabled.',
944 'uploadcorrupt' => 'The file is corrupt or has an incorrect extension. Please check the file and upload again.',
945
946 # Image list
947 #
948 'imagelist' => 'Image list',
949 'imagelisttext' => "Below is a list of $1 images sorted $2.",
950 'getimagelist' => 'fetching image list',
951 'ilshowmatch' => 'Show all images with names matching',
952 'ilsubmit' => 'Search',
953 'showlast' => "Show last $1 images sorted $2.",
954 'all' => 'all',
955 'byname' => 'by name',
956 'bydate' => 'by date',
957 'bysize' => 'by size',
958 'imgdelete' => 'del',
959 'imgdesc' => 'desc',
960 'imglegend' => 'Legend: (desc) = show/edit image description.',
961 'imghistory' => 'Image history',
962 'revertimg' => 'rev',
963 'deleteimg' => 'del',
964 'deleteimgcompletely' => 'Delete all revisions',
965 'imghistlegend' => 'Legend: (cur) = this is the current image, (del) = delete
966 this old version, (rev) = revert to this old version.
967 <br /><i>Click on date to see image uploaded on that date</i>.',
968 'imagelinks' => 'Image links',
969 'linkstoimage' => 'The following pages link to this image:',
970 'nolinkstoimage' => 'There are no pages that link to this image.',
971 'sharedupload' => 'This file is a shared upload and may be used by other projects.',
972 'shareduploadwiki' => 'Please see the [$1 image description page] for further information.',
973
974 # Statistics
975 #
976 'statistics' => 'Statistics',
977 'sitestats' => 'Site statistics',
978 'userstats' => 'User statistics',
979 'sitestatstext' => "There are '''$1''' total pages in the database.
980 This includes \"talk\" pages, pages about {{SITENAME}}, minimal \"stub\"
981 pages, redirects, and others that probably don't qualify as content pages.
982 Excluding those, there are '''$2''' pages that are probably legitimate
983 content pages.
984
985 There have been a total of '''$3''' page views, and '''$4''' page edits
986 since the wiki was setup.
987 That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
988 'userstatstext' => "There are '''$1''' registered users.
989 '''$2''' of these are administrators (see $3).",
990
991 # Maintenance Page
992 #
993 'maintenance' => 'Maintenance page',
994 'maintnancepagetext' => 'This page includes several handy tools for everyday maintenance. Some of these functions tend to stress the database, so please do not hit reload after every item you fixed ;-)',
995 'maintenancebacklink' => 'Back to Maintenance Page',
996 'disambiguations' => 'Disambiguation pages',
997 'disambiguationspage' => "Project:Links_to_disambiguating_pages",
998 'disambiguationstext' => "The following pages link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br />A page is treated as dismbiguation if it is linked from $1.<br />Links from other namespaces are <i>not</i> listed here.",
999 'doubleredirects' => 'Double Redirects',
1000 'doubleredirectstext' => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br />\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" target page, which the first redirect should point to.",
1001 'brokenredirects' => 'Broken Redirects',
1002 'brokenredirectstext' => 'The following redirects link to a non-existing pages.',
1003 'selflinks' => 'Pages with Self Links',
1004 'selflinkstext' => 'The following pages contain a link to themselves, which they should not.',
1005 'mispeelings' => 'Pages with misspellings',
1006 'mispeelingstext' => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
1007 'mispeelingspage' => 'List of common misspellings',
1008 'missinglanguagelinks' => 'Missing Language Links',
1009 'missinglanguagelinksbutton' => 'Find missing language links for',
1010 'missinglanguagelinkstext' => "These pages do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
1011
1012
1013 # Miscellaneous special pages
1014 #
1015 'orphans' => 'Orphaned pages',
1016 'geo' => 'GEO coordinates',
1017 'validate' => 'Validate page',
1018 'lonelypages' => 'Orphaned pages',
1019 'uncategorizedpages' => 'Uncategorized pages',
1020 'uncategorizedcategories' => 'Uncategorized categories',
1021 'unusedimages' => 'Unused images',
1022 'popularpages' => 'Popular pages',
1023 'nviews' => '$1 views',
1024 'wantedpages' => 'Wanted pages',
1025 'nlinks' => '$1 links',
1026 'allpages' => 'All pages',
1027 'randompage' => 'Random page',
1028 'randompage-url'=> 'Special:Randompage',
1029 'shortpages' => 'Short pages',
1030 'longpages' => 'Long pages',
1031 'deadendpages' => 'Dead-end pages',
1032 'listusers' => 'User list',
1033 'listadmins' => 'Admins list',
1034 'specialpages' => 'Special pages',
1035 'spheading' => 'Special pages for all users',
1036 'asksqlpheading' => 'asksql level',
1037 'blockpheading' => 'block level',
1038 'createaccountpheading' => 'createaccount level',
1039 'deletepheading' => 'delete level',
1040 'userrightspheading' => 'userrights level',
1041 'siteadminpheading' => 'siteadmin level',
1042
1043 /** obsoletes
1044 'sysopspheading' => 'For sysop use only',
1045 'developerspheading' => 'For developer use only',
1046 */
1047 'protectpage' => 'Protect page',
1048 'recentchangeslinked' => 'Related changes',
1049 'rclsub' => "(to pages linked from \"$1\")",
1050 'debug' => 'Debug',
1051 'newpages' => 'New pages',
1052 'ancientpages' => 'Oldest pages',
1053 'intl' => 'Interlanguage links',
1054 'move' => 'Move',
1055 'movethispage' => 'Move this page',
1056 'unusedimagestext' => '<p>Please note that other web sites may link to an image with
1057 a direct URL, and so may still be listed here despite being
1058 in active use.',
1059 'booksources' => 'Book sources',
1060 'categoriespagetext' => 'The following categories exists in the wiki.',
1061 'data' => 'Data',
1062 'userlevels' => 'User levels management',
1063
1064 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
1065 'booksourcetext' => "Below is a list of links to other sites that
1066 sell new and used books, and may also have further information
1067 about books you are looking for.
1068 {{SITENAME}} is not affiliated with any of these businesses, and
1069 this list should not be construed as an endorsement.",
1070 'isbn' => 'ISBN',
1071 'rfcurl' => 'http://www.faqs.org/rfcs/rfc$1.html',
1072 'pubmedurl' => 'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=$1',
1073 'alphaindexline' => "$1 to $2",
1074 'version' => 'Version',
1075 'log' => 'Logs',
1076 'alllogstext' => 'Combined display of upload, deletion, protection, blocking, and sysop logs.
1077 You can narrow down the view by selecting a log type, the user name, or the affected page.',
1078
1079 # Special:Allpages
1080 'nextpage' => 'Next page ($1)',
1081 'articlenamespace' => '(articles)',
1082 'allpagesformtext1' => 'Display pages starting at: $1',
1083 'allpagesformtext2' => 'Choose namespace: $1 $2',
1084 'allarticles' => 'All articles',
1085 'allpagesprev' => 'Previous',
1086 'allpagesnext' => 'Next',
1087 'allpagesnamespace' => 'All pages ($1 namespace)',
1088 'allpagessubmit' => 'Go',
1089
1090 # Email this user
1091 #
1092 'mailnologin' => 'No send address',
1093 'mailnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin\">logged in</a>
1094 and have a valid e-mail address in your <a href=\"{{localurl:Special:Preferences}}\">preferences</a>
1095 to send e-mail to other users.",
1096 'emailuser' => 'E-mail this user',
1097 'emailpage' => 'E-mail user',
1098 'emailpagetext' => 'If this user has entered a valid e-mail address in
1099 his or her user preferences, the form below will send a single message.
1100 The e-mail address you entered in your user preferences will appear
1101 as the "From" address of the mail, so the recipient will be able
1102 to reply.',
1103 'usermailererror' => 'Mail object returned error: ',
1104 'defemailsubject' => "{{SITENAME}} e-mail",
1105 'noemailtitle' => 'No e-mail address',
1106 'noemailtext' => 'This user has not specified a valid e-mail address,
1107 or has chosen not to receive e-mail from other users.',
1108 'emailfrom' => 'From',
1109 'emailto' => 'To',
1110 'emailsubject' => 'Subject',
1111 'emailmessage' => 'Message',
1112 'emailsend' => 'Send',
1113 'emailsent' => 'E-mail sent',
1114 'emailsenttext' => 'Your e-mail message has been sent.',
1115
1116 # Watchlist
1117 #
1118 'watchlist' => 'My watchlist',
1119 'watchlistsub' => "(for user \"$1\")",
1120 'nowatchlist' => 'You have no items on your watchlist.',
1121 'watchnologin' => 'Not logged in',
1122 'watchnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
1123 to modify your watchlist.",
1124 'addedwatch' => 'Added to watchlist',
1125 'addedwatchtext' => "The page \"$1\" has been added to your [[Special:Watchlist|watchlist]].
1126 Future changes to this page and its associated Talk page will be listed there,
1127 and the page will appear '''bolded''' in the [[Special:Recentchanges|list of recent changes]] to
1128 make it easier to pick out.
1129
1130 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
1131 'removedwatch' => 'Removed from watchlist',
1132 'removedwatchtext' => "The page \"$1\" has been removed from your watchlist.",
1133 'watch' => 'Watch',
1134 'watchthispage' => 'Watch this page',
1135 'unwatch' => 'Unwatch',
1136 'unwatchthispage' => 'Stop watching',
1137 'notanarticle' => 'Not a content page',
1138 'watchnochange' => 'None of your watched items were edited in the time period displayed.',
1139 'watchdetails' => "($1 pages watched not counting talk pages;
1140 $2 total pages edited since cutoff;
1141 $3...
1142 <a href='$4'>show and edit complete list</a>.)",
1143 'watchmethod-recent'=> 'checking recent edits for watched pages',
1144 'watchmethod-list' => 'checking watched pages for recent edits',
1145 'removechecked' => 'Remove checked items from watchlist',
1146 'watchlistcontains' => "Your watchlist contains $1 pages.",
1147 'watcheditlist' => 'Here\'s an alphabetical list of your
1148 watched pages. Check the boxes of pages you want to remove
1149 from your watchlist and click the \'remove checked\' button
1150 at the bottom of the screen.',
1151 'removingchecked' => 'Removing requested items from watchlist...',
1152 'couldntremove' => "Couldn't remove item '$1'...",
1153 'iteminvalidname' => "Problem with item '$1', invalid name...",
1154 'wlnote' => "Below are the last $1 changes in the last <b>$2</b> hours.",
1155 'wlshowlast' => "Show last $1 hours $2 days $3",
1156 'wlsaved' => 'This is a saved version of your watchlist.',
1157
1158
1159 # Delete/protect/revert
1160 #
1161 'deletepage' => 'Delete page',
1162 'confirm' => 'Confirm',
1163 'excontent' => 'content was:',
1164 'exbeforeblank' => 'content before blanking was:',
1165 'exblank' => 'page was empty',
1166 'confirmdelete' => 'Confirm delete',
1167 'deletesub' => "(Deleting \"$1\")",
1168 'historywarning' => 'Warning: The page you are about to delete has a history: ',
1169 'confirmdeletetext' => "You are about to permanently delete a page
1170 or image along with all of its history from the database.
1171 Please confirm that you intend to do this, that you understand the
1172 consequences, and that you are doing this in accordance with
1173 [[Project:Policy]].",
1174 'confirmcheck' => 'Yes, I really want to delete this.',
1175 'actioncomplete' => 'Action complete',
1176 'deletedtext' => "\"$1\" has been deleted.
1177 See $2 for a record of recent deletions.",
1178 'deletedarticle' => "deleted \"$1\"",
1179 'dellogpage' => 'Deletion_log',
1180 'dellogpagetext' => 'Below is a list of the most recent deletions.',
1181 'deletionlog' => 'deletion log',
1182 'reverted' => 'Reverted to earlier revision',
1183 'deletecomment' => 'Reason for deletion',
1184 'imagereverted' => 'Revert to earlier version was successful.',
1185 'rollback' => 'Roll back edits',
1186 'rollback_short' => 'Rollback',
1187 'rollbacklink' => 'rollback',
1188 'rollbackfailed' => 'Rollback failed',
1189 'cantrollback' => 'Cannot revert edit; last contributor is only author of this page.',
1190 'alreadyrolled' => "Cannot rollback last edit of [[$1]]
1191 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the page already.
1192
1193 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1194 # only shown if there is an edit comment
1195 'editcomment' => "The edit comment was: \"<i>$1</i>\".",
1196 'revertpage' => "Reverted edit of $2, changed back to last version by $1",
1197 'protectlogpage' => 'Protection_log',
1198 'protectlogtext' => "Below is a list of page locks/unlocks.
1199 See [[Project:Protected page]] for more information.",
1200 'protectedarticle' => "protected $1",
1201 'unprotectedarticle' => "unprotected $1",
1202 'protectsub' =>"(Protecting \"$1\")",
1203 'confirmprotecttext' => 'Do you really want to protect this page?',
1204 'confirmprotect' => 'Confirm protection',
1205 'protectmoveonly' => 'Protect from moves only',
1206 'protectcomment' => 'Reason for protecting',
1207 'unprotectsub' =>"(Unprotecting \"$1\")",
1208 'confirmunprotecttext' => 'Do you really want to unprotect this page?',
1209 'confirmunprotect' => 'Confirm unprotection',
1210 'unprotectcomment' => 'Reason for unprotecting',
1211 'protectreason' => '(give a reason)',
1212
1213 # Undelete
1214 'undelete' => 'Restore deleted page',
1215 'undeletepage' => 'View and restore deleted pages',
1216 'undeletepagetext' => 'The following pages have been deleted but are still in the archive and
1217 can be restored. The archive may be periodically cleaned out.',
1218 'undeletearticle' => 'Restore deleted page',
1219 'undeleterevisions' => "$1 revisions archived",
1220 'undeletehistory' => 'If you restore the page, all revisions will be restored to the history.
1221 If a new page with the same name has been created since the deletion, the restored
1222 revisions will appear in the prior history, and the current revision of the live page
1223 will not be automatically replaced.',
1224 'undeleterevision' => "Deleted revision as of $1",
1225 'undeletebtn' => 'Restore!',
1226 'undeletedarticle' => "restored \"$1\"",
1227 'undeletedrevisions' => "$1 revisions restored",
1228 'undeletedtext' => "[[$1]] has been successfully restored.
1229 See [[Special:Log/delete]] for a record of recent deletions and restorations.",
1230
1231 # Contributions
1232 #
1233 'contributions' => 'User contributions',
1234 'mycontris' => 'My contributions',
1235 'contribsub' => "For $1",
1236 'nocontribs' => 'No changes were found matching these criteria.',
1237 'ucnote' => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1238 'uclinks' => "View the last $1 changes; view the last $2 days.",
1239 'uctop' => ' (top)' ,
1240 'newbies' => 'newbies',
1241
1242 # What links here
1243 #
1244 'whatlinkshere' => 'What links here',
1245 'notargettitle' => 'No target',
1246 'notargettext' => 'You have not specified a target page or user
1247 to perform this function on.',
1248 'linklistsub' => '(List of links)',
1249 'linkshere' => 'The following pages link to here:',
1250 'nolinkshere' => 'No pages link to here.',
1251 'isredirect' => 'redirect page',
1252
1253 # Block/unblock IP
1254 #
1255 'blockip' => 'Block user',
1256 'blockiptext' => "Use the form below to block write access
1257 from a specific IP address or username.
1258 This should be done only only to prevent vandalism, and in
1259 accordance with [[Project:Policy|policy]].
1260 Fill in a specific reason below (for example, citing particular
1261 pages that were vandalized).",
1262 'ipaddress' => 'IP Address/username',
1263 'ipbexpiry' => 'Expiry',
1264 'ipbreason' => 'Reason',
1265 'ipbsubmit' => 'Block this user',
1266 'badipaddress' => 'Invalid IP address',
1267 'noblockreason' => 'You must supply a reason for the block.',
1268 'blockipsuccesssub' => 'Block succeeded',
1269 'blockipsuccesstext' => "\"$1\" has been blocked.
1270 <br />See [[Special:Ipblocklist|IP block list]] to review blocks.",
1271 'unblockip' => 'Unblock user',
1272 'unblockiptext' => 'Use the form below to restore write access
1273 to a previously blocked IP address or username.',
1274 'ipusubmit' => 'Unblock this address',
1275 'ipusuccess' => "\"$1\" unblocked",
1276 'ipblocklist' => 'List of blocked IP addresses and usernames',
1277 'blocklistline' => "$1, $2 blocked $3 (expires $4)",
1278 'blocklink' => 'block',
1279 'unblocklink' => 'unblock',
1280 'contribslink' => 'contribs',
1281 'autoblocker' => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1282 'blocklogpage' => 'Block_log',
1283 'blocklogentry' => 'blocked "$1" with an expiry time of $2',
1284 'blocklogtext' => 'This is a log of user blocking and unblocking actions. Automatically
1285 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
1286 the list of currently operational bans and blocks.',
1287 'unblocklogentry' => 'unblocked "$1"',
1288 'range_block_disabled' => 'The sysop ability to create range blocks is disabled.',
1289 'ipb_expiry_invalid' => 'Expiry time invalid.',
1290 'ip_range_invalid' => "Invalid IP range.\n",
1291 'proxyblocker' => 'Proxy blocker',
1292 'proxyblockreason' => 'Your IP address has been blocked because it is an open proxy. Please contact your Internet service provider or tech support and inform them of this serious security problem.',
1293 'proxyblocksuccess' => "Done.\n",
1294
1295 # Developer tools
1296 #
1297 'lockdb' => 'Lock database',
1298 'unlockdb' => 'Unlock database',
1299 'lockdbtext' => 'Locking the database will suspend the ability of all
1300 users to edit pages, change their preferences, edit their watchlists, and
1301 other things requiring changes in the database.
1302 Please confirm that this is what you intend to do, and that you will
1303 unlock the database when your maintenance is done.',
1304 'unlockdbtext' => 'Unlocking the database will restore the ability of all
1305 users to edit pages, change their preferences, edit their watchlists, and
1306 other things requiring changes in the database.
1307 Please confirm that this is what you intend to do.',
1308 'lockconfirm' => 'Yes, I really want to lock the database.',
1309 'unlockconfirm' => 'Yes, I really want to unlock the database.',
1310 'lockbtn' => 'Lock database',
1311 'unlockbtn' => 'Unlock database',
1312 'locknoconfirm' => 'You did not check the confirmation box.',
1313 'lockdbsuccesssub' => 'Database lock succeeded',
1314 'unlockdbsuccesssub' => 'Database lock removed',
1315 'lockdbsuccesstext' => 'The database has been locked.
1316 <br />Remember to remove the lock after your maintenance is complete.',
1317 'unlockdbsuccesstext' => 'The database has been unlocked.',
1318
1319 # SQL query
1320 #
1321 'asksql' => 'SQL query',
1322 'asksqltext' => "Use the form below to make a direct query of the
1323 database.
1324 Use single quotes ('like this') to delimit string literals.
1325 This can often add considerable load to the server, so please use
1326 this function sparingly.",
1327 'sqlislogged' => 'Please note that all queries are logged.',
1328 'sqlquery' => 'Enter query',
1329 'querybtn' => 'Submit query',
1330 'selectonly' => 'Only read-only queries are allowed.',
1331 'querysuccessful' => 'Query successful',
1332
1333 # Make sysop
1334 'makesysoptitle' => 'Make a user into a sysop',
1335 'makesysoptext' => 'This form is used by bureaucrats to turn ordinary users into administrators.
1336 Type the name of the user in the box and press the button to make the user an administrator',
1337 'makesysopname' => 'Name of the user:',
1338 'makesysopsubmit' => 'Make this user into a sysop',
1339 'makesysopok' => "<b>User \"$1\" is now a sysop</b>",
1340 'makesysopfail' => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
1341 'setbureaucratflag' => 'Set bureaucrat flag',
1342 'bureaucratlog' => 'Bureaucrat_log',
1343 'bureaucratlogentry' => "Rights for user \"$1\" set \"$2\"",
1344 'rights' => 'Rights:',
1345 'set_user_rights' => 'Set user rights',
1346 'user_rights_set' => "<b>User rights for \"$1\" updated</b>",
1347 'set_rights_fail' => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
1348 'makesysop' => 'Make a user into a sysop',
1349
1350 # Validation
1351 'val_clear_old' => 'Clear my other validation data for $1',
1352 'val_merge_old' => 'Use my previous assessment where selected \'No opinion\'',
1353 'val_form_note' => '<b>Hint:</b> Merging your data means that for the article
1354 revision you select, all options where you have specified <i>no opinion</i>
1355 will be set to the value and comment of the most recent revision for which you
1356 have expressed an opinion. For example, if you want to change a single option
1357 for a newer revision, but also keep your other settings for this article in
1358 this revision, just select which option you intend to <i>change</i>, and
1359 merging will fill in the other options with your previous settings.',
1360 'val_noop' => 'No opinion',
1361 'val_percent' => '<b>$1%</b><br />($2 of $3 points<br />by $4 users)',
1362 'val_percent_single' => '<b>$1%</b><br />($2 of $3 points<br />by one user)',
1363 'val_total' => 'Total',
1364 'val_version' => 'Version',
1365 'val_tab' => 'Validate',
1366 'val_this_is_current_version' => 'this is the latest version',
1367 'val_version_of' => "Version of $1" ,
1368 'val_table_header' => "<tr><th>Class</th>$1<th colspan=4>Opinion</th>$1<th>Comment</th></tr>\n",
1369 'val_stat_link_text' => 'Validation statistics for this article',
1370 'val_view_version' => 'View this version',
1371 'val_validate_version' => 'Validate this version',
1372 'val_user_validations' => 'This user has validated $1 pages.',
1373 'val_no_anon_validation' => 'You have to be logged in to validate an article.',
1374 'val_validate_article_namespace_only' => 'Only articles can be validated. This page is <i>not</i> in the article namespace.',
1375 'val_validated' => 'Validation done.',
1376 'val_article_lists' => 'List of validated articles',
1377 'val_page_validation_statistics' => 'Page validation statistics for $1',
1378
1379 # Move page
1380 #
1381 'movepage' => 'Move page',
1382 'movepagetext' => 'Using the form below will rename a page, moving all
1383 of its history to the new name.
1384 The old title will become a redirect page to the new title.
1385 Links to the old page title will not be changed; be sure to
1386 [[Special:Maintenance|check]] for double or broken redirects.
1387 You are responsible for making sure that links continue to
1388 point where they are supposed to go.
1389
1390 Note that the page will \'\'\'not\'\'\' be moved if there is already
1391 a page at the new title, unless it is empty or a redirect and has no
1392 past edit history. This means that you can rename a page back to where
1393 it was just renamed from if you make a mistake, and you cannot overwrite
1394 an existing page.
1395
1396 <b>WARNING!</b>
1397 This can be a drastic and unexpected change for a popular page;
1398 please be sure you understand the consequences of this before
1399 proceeding.',
1400 'movepagetalktext' => 'The associated talk page, if any, will be automatically moved along with it \'\'\'unless:\'\'\'
1401 *You are moving the page across namespaces,
1402 *A non-empty talk page already exists under the new name, or
1403 *You uncheck the box below.
1404
1405 In those cases, you will have to move or merge the page manually if desired.',
1406 'movearticle' => 'Move page',
1407 'movenologin' => 'Not logged in',
1408 'movenologintext' => "You must be a registered user and <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
1409 to move a page.",
1410 'newtitle' => 'To new title',
1411 'movepagebtn' => 'Move page',
1412 'pagemovedsub' => 'Move succeeded',
1413 'pagemovedtext' => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1414 'articleexists' => 'A page of that name already exists, or the
1415 name you have chosen is not valid.
1416 Please choose another name.',
1417 'talkexists' => 'The page itself was moved successfully, but the
1418 talk page could not be moved because one already exists at the new
1419 title. Please merge them manually.',
1420 'movedto' => 'moved to',
1421 'movetalk' => 'Move "talk" page as well, if applicable.',
1422 'talkpagemoved' => 'The corresponding talk page was also moved.',
1423 'talkpagenotmoved' => 'The corresponding talk page was <strong>not</strong> moved.',
1424 '1movedto2' => "$1 moved to $2",
1425 '1movedto2_redir' => '$1 moved to $2 over redirect',
1426
1427 # Export
1428
1429 'export' => 'Export pages',
1430 'exporttext' => 'You can export the text and editing history of a particular page or
1431 set of pages wrapped in some XML. In the future, this may then be imported into another
1432 wiki running MediaWiki software, although there is no support for this feature in the
1433 current version.
1434
1435 To export article pages, enter the titles in the text box below, one title per line, and
1436 select whether you want the current version as well as all old versions, with the page
1437 history lines, or just the current version with the info about the last edit.
1438
1439 In the latter case you can also use a link, e.g. [[{{ns:Special}}:Export/Train]] for the
1440 article [[Train]].
1441 ',
1442 'exportcuronly' => 'Include only the current revision, not the full history',
1443
1444 # Namespace 8 related
1445
1446 'allmessages' => 'All system messages',
1447 'allmessagestext' => 'This is a list of all system messages available in the MediaWiki: namespace.',
1448 'allmessagesnotsupportedUI' => 'Your current interface language <b>$1</b> is not supported by Special:AllMessages at this site.',
1449 'allmessagesnotsupportedDB' => 'Special:AllMessages not supported because wgUseDatabaseMessages is off.',
1450
1451 # Thumbnails
1452
1453 'thumbnail-more' => 'Enlarge',
1454 'missingimage' => "<b>Missing image</b><br /><i>$1</i>\n",
1455 'filemissing' => 'File missing',
1456
1457 # Special:Import
1458 'import' => 'Import pages',
1459 'importtext' => 'Please export the file from the source wiki using the Special:Export utility, save it to your disk and upload it here.',
1460 'importfailed' => "Import failed: $1",
1461 'importnotext' => 'Empty or no text',
1462 'importsuccess' => 'Import succeeded!',
1463 'importhistoryconflict' => 'Conflicting history revision exists (may have imported this page before)',
1464
1465 # Keyboard access keys for power users
1466 'accesskey-search' => 'f',
1467 'accesskey-minoredit' => 'i',
1468 'accesskey-save' => 's',
1469 'accesskey-preview' => 'p',
1470 'accesskey-compareselectedversions' => 'v',
1471
1472 # tooltip help for some actions, most are in Monobook.js
1473 'tooltip-search' => 'Search this wiki [alt-f]',
1474 'tooltip-minoredit' => 'Mark this as a minor edit [alt-i]',
1475 'tooltip-save' => 'Save your changes [alt-s]',
1476 'tooltip-preview' => 'Preview your changes, please use this before saving! [alt-p]',
1477 'tooltip-compareselectedversions' => 'See the differences between the two selected versions of this page. [alt-v]',
1478
1479 # stylesheets
1480
1481 'Monobook.css' => '/* edit this file to customize the monobook skin for the entire site */',
1482 #'Monobook.js' => '/* edit this file to change js things in the monobook skin */',
1483
1484 # Metadata
1485 'nodublincore' => 'Dublin Core RDF metadata disabled for this server.',
1486 'nocreativecommons' => 'Creative Commons RDF metadata disabled for this server.',
1487 'notacceptable' => 'The wiki server can\'t provide data in a format your client can read.',
1488
1489 # Attribution
1490
1491 'anonymous' => "Anonymous user(s) of $wgSitename",
1492 'siteuser' => "$wgSitename user $1",
1493 'lastmodifiedby' => "This page was last modified $1 by $2.",
1494 'and' => 'and',
1495 'othercontribs' => "Based on work by $1.",
1496 'others' => 'others',
1497 'siteusers' => "$wgSitename user(s) $1",
1498 'creditspage' => 'Page credits',
1499 'nocredits' => 'There is no credits info available for this page.',
1500
1501 # Spam protection
1502
1503 'spamprotectiontitle' => 'Spam protection filter',
1504 'spamprotectiontext' => 'The page you wanted to save was blocked by the spam filter. This is probably caused by a link to an external site.',
1505 'spamprotectionmatch' => 'The following text is what triggered our spam filter: $1',
1506 'subcategorycount' => "There are $1 subcategories to this category.",
1507 'subcategorycount1' => "There is $1 subcategory to this category.",
1508 'categoryarticlecount' => "There are $1 articles in this category.",
1509 'categoryarticlecount1' => "There is $1 article in this category.",
1510 'usenewcategorypage' => "1\n\nSet first character to \"0\" to disable the new category page layout.",
1511 'listingcontinuesabbrev' => " cont.",
1512
1513 # Info page
1514 "infosubtitle" => "Information for page",
1515 "numedits" => "Number of edits (article): $1",
1516 "numtalkedits" => "Number of edits (discussion page): $1",
1517 "numwatchers" => "Number of watchers: $1",
1518 "numauthors" => "Number of distinct authors (article): $1",
1519 "numtalkauthors" => "Number of distinct authors (discussion page): $1",
1520
1521 # Math options
1522 'mw_math_png' => 'Always render PNG',
1523 'mw_math_simple' => 'HTML if very simple or else PNG',
1524 'mw_math_html' => 'HTML if possible or else PNG',
1525 'mw_math_source' => 'Leave it as TeX (for text browsers)',
1526 'mw_math_modern' => 'Recommended for modern browsers',
1527 'mw_math_mathml' => 'MathML if possible (experimental)',
1528
1529 # Patrolling
1530 'markaspatrolleddiff' => "Mark as patrolled",
1531 'markaspatrolledlink' => "<div class='patrollink'>[$1]</div>",
1532 'markaspatrolledtext' => "Mark this article as patrolled",
1533 'markedaspatrolled' => "Marked as patrolled",
1534 'markedaspatrolledtext' => "The selected revision has been marked as patrolled.",
1535 'rcpatroldisabled' => "Recent Changes Patrol disabled",
1536 'rcpatroldisabledtext' => "The Recent Changes Patrol feature is currently disabled.",
1537
1538 # Monobook.js: tooltips and access keys for monobook
1539 'Monobook.js' => '/* tooltips and access keys */
1540 ta = new Object();
1541 ta[\'pt-userpage\'] = new Array(\'.\',\'My user page\');
1542 ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\\\'re editing as\');
1543 ta[\'pt-mytalk\'] = new Array(\'n\',\'My talk page\');
1544 ta[\'pt-anontalk\'] = new Array(\'n\',\'Discussion about edits from this ip address\');
1545 ta[\'pt-preferences\'] = new Array(\'\',\'My preferences\');
1546 ta[\'pt-watchlist\'] = new Array(\'l\',\'The list of pages you\\\'re monitoring for changes.\');
1547 ta[\'pt-mycontris\'] = new Array(\'y\',\'List of my contributions\');
1548 ta[\'pt-login\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\');
1549 ta[\'pt-anonlogin\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\');
1550 ta[\'pt-logout\'] = new Array(\'o\',\'Log out\');
1551 ta[\'ca-talk\'] = new Array(\'t\',\'Discussion about the content page\');
1552 ta[\'ca-edit\'] = new Array(\'e\',\'You can edit this page. Please use the preview button before saving.\');
1553 ta[\'ca-addsection\'] = new Array(\'+\',\'Add a comment to this discussion.\');
1554 ta[\'ca-viewsource\'] = new Array(\'e\',\'This page is protected. You can view its source.\');
1555 ta[\'ca-history\'] = new Array(\'h\',\'Past versions of this page.\');
1556 ta[\'ca-protect\'] = new Array(\'=\',\'Protect this page\');
1557 ta[\'ca-delete\'] = new Array(\'d\',\'Delete this page\');
1558 ta[\'ca-undelete\'] = new Array(\'d\',\'Restore the edits done to this page before it was deleted\');
1559 ta[\'ca-move\'] = new Array(\'m\',\'Move this page\');
1560 ta[\'ca-nomove\'] = new Array(\'\',\'You don\\\'t have the permissions to move this page\');
1561 ta[\'ca-watch\'] = new Array(\'w\',\'Add this page to your watchlist\');
1562 ta[\'ca-unwatch\'] = new Array(\'w\',\'Remove this page from your watchlist\');
1563 ta[\'search\'] = new Array(\'f\',\'Search this wiki\');
1564 ta[\'p-logo\'] = new Array(\'\',\'Main Page\');
1565 ta[\'n-mainpage\'] = new Array(\'z\',\'Visit the Main Page\');
1566 ta[\'n-portal\'] = new Array(\'\',\'About the project, what you can do, where to find things\');
1567 ta[\'n-currentevents\'] = new Array(\'\',\'Find background information on current events\');
1568 ta[\'n-recentchanges\'] = new Array(\'r\',\'The list of recent changes in the wiki.\');
1569 ta[\'n-randompage\'] = new Array(\'x\',\'Load a random page\');
1570 ta[\'n-help\'] = new Array(\'\',\'The place to find out.\');
1571 ta[\'n-sitesupport\'] = new Array(\'\',\'Support us\');
1572 ta[\'t-whatlinkshere\'] = new Array(\'j\',\'List of all wiki pages that link here\');
1573 ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Recent changes in pages linked from this page\');
1574 ta[\'feed-rss\'] = new Array(\'\',\'RSS feed for this page\');
1575 ta[\'feed-atom\'] = new Array(\'\',\'Atom feed for this page\');
1576 ta[\'t-contributions\'] = new Array(\'\',\'View the list of contributions of this user\');
1577 ta[\'t-emailuser\'] = new Array(\'\',\'Send a mail to this user\');
1578 ta[\'t-upload\'] = new Array(\'u\',\'Upload images or media files\');
1579 ta[\'t-specialpages\'] = new Array(\'q\',\'List of all special pages\');
1580 ta[\'ca-nstab-main\'] = new Array(\'c\',\'View the content page\');
1581 ta[\'ca-nstab-user\'] = new Array(\'c\',\'View the user page\');
1582 ta[\'ca-nstab-media\'] = new Array(\'c\',\'View the media page\');
1583 ta[\'ca-nstab-special\'] = new Array(\'\',\'This is a special page, you can\\\'t edit the page itself.\');
1584 ta[\'ca-nstab-wp\'] = new Array(\'a\',\'View the project page\');
1585 ta[\'ca-nstab-image\'] = new Array(\'c\',\'View the image page\');
1586 ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'View the system message\');
1587 ta[\'ca-nstab-template\'] = new Array(\'c\',\'View the template\');
1588 ta[\'ca-nstab-help\'] = new Array(\'c\',\'View the help page\');
1589 ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
1590 ',
1591
1592 # image deletion
1593 'deletedrevision' => 'Deleted old revision $1.',
1594
1595 # browsing diffs
1596 'previousdiff' => '&larr; Go to previous diff',
1597 'nextdiff' => 'Go to next diff &rarr;',
1598
1599 'imagemaxsize' => 'Limit images on image description pages to: ',
1600 'showbigimage' => 'Download high resolution version ($1x$2, $3 KB)',
1601
1602 'newimages' => 'New images gallery',
1603
1604 'sitesettings' => 'Site Settings',
1605 'sitesettings-features' => 'Features',
1606 'sitesettings-permissions' => 'Permissions',
1607 'sitesettings-memcached' => 'Memcache Daemon',
1608 'sitesettings-debugging' => 'Debugging',
1609 'sitesettings-caching' => 'Page caching',
1610 'sitesettings-wgShowIPinHeader' => 'Show IP in header (for non-logged in users)',
1611 'sitesettings-wgUseDatabaseMessages' => 'Use database messages for user interface labels',
1612 'sitesettings-wgUseCategoryMagic' => 'Enable categories',
1613 'sitesettings-wgUseCategoryBrowser' => 'Enable experimental dmoz-like category browsing. Outputs things like: Encyclopedia > Music > Style of Music > Jazz',
1614 'sitesettings-wgHitcounterUpdateFreq' => 'Hit counter update frequency',
1615 'sitesettings-wgAllowExternalImages' => 'Allow to include external images into articles',
1616 'sitesettings-permissions-readonly' => 'Maintenance mode: Disable write access',
1617 'sitesettings-permissions-whitelist' => 'Whitelist mode',
1618 'sitesettings-permissions-banning' => 'User banning',
1619 'sitesettings-permissions-miser' => 'Performance settings',
1620 'sitesettings-wgReadOnly' => 'Readonly mode',
1621 'sitesettings-wgReadOnlyFile' => 'Readonly message file',
1622 'sitesettings-wgWhitelistEdit' => 'Users must be logged in to edit',
1623 'sitesettings-wgWhitelistRead' => 'Anonymous users may only read these pages:',
1624 'sitesettings-wgWhitelistAccount-user' => 'Users may create accounts themself',
1625 'sitesettings-wgWhitelistAccount-sysop' => 'Sysops may create accounts for users',
1626 'sitesettings-wgWhitelistAccount-developer' => 'Developers may create accounts for users',
1627 'sitesettings-wgSysopUserBans' => 'Sysops may block logged-in users',
1628 'sitesettings-wgSysopRangeBans' => 'Sysops may block IP-ranges',
1629 'sitesettings-wgDefaultBlockExpiry' => 'By default, blocks expire after:',
1630 'sitesettings-wgMiserMode' => 'Enable miser mode, which disables most "expensive" features',
1631 'sitesettings-wgDisableQueryPages' => 'When in miser mode, disable all query pages, not only "expensive" ones',
1632 'sitesettings-wgUseWatchlistCache' => 'Generate a watchlist once every hour or so',
1633 'sitesettings-wgWLCacheTimeout' => 'The hour or so mentioned above (in seconds):',
1634 'sitesettings-cookies' => 'Cookies',
1635 'sitesettings-performance' => 'Performance',
1636 'sitesettings-images' => 'Images',
1637
1638
1639 );
1640
1641 #--------------------------------------------------------------------------
1642 # Internationalisation code
1643 #--------------------------------------------------------------------------
1644
1645 class Language {
1646 function Language(){
1647 # Copies any missing values in the specified arrays from En to the current language
1648 $fillin = array( 'wgSysopSpecialPages', 'wgValidSpecialPages', 'wgDeveloperSpecialPages' );
1649 $name = get_class( $this );
1650 if( strpos( $name, 'language' ) == 0){
1651 $lang = ucfirst( substr( $name, 8 ) );
1652 foreach( $fillin as $arrname ){
1653 $langver = "{$arrname}{$lang}";
1654 $enver = "{$arrname}En";
1655 if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
1656 continue;
1657 foreach($GLOBALS[$enver] as $spage => $text){
1658 if( ! isset( $GLOBALS[$langver][$spage] ) )
1659 $GLOBALS[$langver][$spage] = $text;
1660 }
1661 }
1662 }
1663 }
1664
1665 function getDefaultUserOptions () {
1666 global $wgDefaultUserOptionsEn ;
1667 return $wgDefaultUserOptionsEn ;
1668 }
1669
1670 function getBookstoreList () {
1671 global $wgBookstoreListEn ;
1672 return $wgBookstoreListEn ;
1673 }
1674
1675 function getNamespaces() {
1676 global $wgNamespaceNamesEn;
1677 return $wgNamespaceNamesEn;
1678 }
1679
1680 function getNsText( $index ) {
1681 global $wgNamespaceNamesEn;
1682 return $wgNamespaceNamesEn[$index];
1683 }
1684
1685 function getNsIndex( $text ) {
1686 global $wgNamespaceNamesEn;
1687
1688 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1689 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1690 }
1691 return false;
1692 }
1693
1694 function specialPage( $name ) {
1695 return $this->getNsText(NS_SPECIAL) . ':' . $name;
1696 }
1697
1698 function getQuickbarSettings() {
1699 global $wgQuickbarSettingsEn;
1700 return $wgQuickbarSettingsEn;
1701 }
1702
1703 function getSkinNames() {
1704 global $wgSkinNamesEn;
1705 return $wgSkinNamesEn;
1706 }
1707
1708 function getMathNames() {
1709 global $wgMathNamesEn;
1710 return $wgMathNamesEn;
1711 }
1712
1713 function getDateFormats() {
1714 global $wgDateFormatsEn;
1715 return $wgDateFormatsEn;
1716 }
1717
1718 function getValidationTypes() {
1719 global $wgValidationTypesEn;
1720 return $wgValidationTypesEn;
1721 }
1722
1723 function getUserToggles() {
1724 global $wgUserTogglesEn;
1725 return $wgUserTogglesEn;
1726 }
1727
1728 function getUserToggle( $tog ) {
1729 return wfMsg("tog-".$tog);
1730 }
1731
1732 function getLanguageNames() {
1733 global $wgLanguageNamesEn;
1734 return $wgLanguageNamesEn;
1735 }
1736
1737 function getLanguageName( $code ) {
1738 global $wgLanguageNamesEn;
1739 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1740 return "";
1741 }
1742 return $wgLanguageNamesEn[$code];
1743 }
1744
1745 function getMonthName( $key ) {
1746 global $wgMonthNamesEn;
1747 return wfMsg($wgMonthNamesEn[$key-1]);
1748 }
1749
1750 /* by default we just return base form */
1751 function getMonthNameGen( $key ) {
1752 return $this->getMonthName( $key );
1753 }
1754
1755 function getMonthAbbreviation( $key ) {
1756 global $wgMonthAbbreviationsEn;
1757 return wfMsg(@$wgMonthAbbreviationsEn[$key-1]);
1758 }
1759
1760 function getWeekdayName( $key ) {
1761 global $wgWeekdayNamesEn;
1762 return wfMsg($wgWeekdayNamesEn[$key-1]);
1763 }
1764
1765 function userAdjust( $ts ) {
1766 global $wgUser, $wgLocalTZoffset;
1767
1768 $tz = $wgUser->getOption( 'timecorrection' );
1769 if ( $tz === '' ) {
1770 $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1771 $minDiff = 0;
1772 } elseif ( strpos( $tz, ':' ) !== false ) {
1773 $tzArray = explode( ':', $tz );
1774 $hrDiff = intval($tzArray[0]);
1775 $minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
1776 } else {
1777 $hrDiff = intval( $tz );
1778 }
1779 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
1780
1781 $t = mktime( (
1782 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
1783 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
1784 (int)substr( $ts, 12, 2 ), # Seconds
1785 (int)substr( $ts, 4, 2 ), # Month
1786 (int)substr( $ts, 6, 2 ), # Day
1787 (int)substr( $ts, 0, 4 ) ); #Year
1788 return date( 'YmdHis', $t );
1789 }
1790
1791 function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT ) {
1792 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1793
1794 $ts=wfTimestamp(TS_MW,$ts);
1795 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1796 if ( $wgUseDynamicDates ) {
1797 if ( $format == MW_DATE_USER_FORMAT ) {
1798 $datePreference = $wgUser->getOption( 'date' );
1799 } else {
1800 $options = $this->getDefaultUserOptions();
1801 $datePreference = $options['date'];
1802 }
1803 if ( $datePreference == 0 ) {
1804 $datePreference = $wgAmericanDates ? 1 : 2;
1805 }
1806 } else {
1807 $datePreference = $wgAmericanDates ? 1 : 2;
1808 }
1809
1810 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
1811 $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
1812 $year = $this->formatNum( substr( $ts, 0, 4 ) );
1813
1814 switch( $datePreference ) {
1815 case 1: return "$month $day, $year";
1816 case 2: return "$day $month $year";
1817 default: return "$year $month $day";
1818 }
1819 }
1820
1821 function time( $ts, $adj = false, $seconds = false ) {
1822 $ts=wfTimestamp(TS_MW,$ts);
1823
1824 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1825
1826 $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 );
1827 if ( $seconds ) {
1828 $t .= ':' . substr( $ts, 12, 2 );
1829 }
1830 return $this->formatNum( $t );
1831 }
1832
1833 function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT ) {
1834 $ts=wfTimestamp(TS_MW,$ts);
1835
1836 return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj, $format );
1837 }
1838
1839 function rfc1123( $ts ) {
1840 return date( 'D, d M Y H:i:s T', $ts );
1841 }
1842
1843 function getValidSpecialPages() {
1844 global $wgValidSpecialPagesEn;
1845 return $wgValidSpecialPagesEn;
1846 }
1847
1848 function getSysopSpecialPages() {
1849 global $wgSysopSpecialPagesEn;
1850 return $wgSysopSpecialPagesEn;
1851 }
1852
1853 function getDeveloperSpecialPages() {
1854 global $wgDeveloperSpecialPagesEn;
1855 return $wgDeveloperSpecialPagesEn;
1856 }
1857
1858 function getMessage( $key ) {
1859 global $wgAllMessagesEn;
1860 return @$wgAllMessagesEn[$key];
1861 }
1862
1863 function getAllMessages() {
1864 global $wgAllMessagesEn;
1865 return $wgAllMessagesEn;
1866 }
1867
1868 function iconv( $in, $out, $string ) {
1869 # For most languages, this is a wrapper for iconv
1870 return iconv( $in, $out, $string );
1871 }
1872
1873 function ucfirst( $string ) {
1874 # For most languages, this is a wrapper for ucfirst()
1875 return ucfirst( $string );
1876 }
1877
1878 function lcfirst( $s ) {
1879 return strtolower( $s{0} ). substr( $s, 1 );
1880 }
1881
1882 function checkTitleEncoding( $s ) {
1883 global $wgInputEncoding;
1884
1885 # Check for UTF-8 URLs; Internet Explorer produces these if you
1886 # type non-ASCII chars in the URL bar or follow unescaped links.
1887 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1888 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1889 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1890
1891 if( ($wgInputEncoding != 'utf-8') and $ishigh and $isutf )
1892 return @iconv( 'UTF-8', $wgInputEncoding, $s );
1893
1894 if( ($wgInputEncoding == 'utf-8') and $ishigh and !$isutf )
1895 return utf8_encode( $s );
1896
1897 # Other languages can safely leave this function, or replace
1898 # it with one to detect and convert another legacy encoding.
1899 return $s;
1900 }
1901
1902 function stripForSearch( $in ) {
1903 # Some languages have special punctuation to strip out
1904 # or characters which need to be converted for MySQL's
1905 # indexing to grok it correctly. Make such changes here.
1906 return strtolower( $in );
1907 }
1908
1909 function convertForSearchResult( $termsArray ) {
1910 # some languages, e.g. Chinese, need to do a conversion
1911 # in order for search results to be displayed correctly
1912 return $termsArray;
1913 }
1914
1915 function firstChar( $s ) {
1916 # Get the first character of a string. In ASCII, return
1917 # first byte of the string. UTF8 and others have to
1918 # overload this.
1919 return $s[0];
1920 }
1921
1922 function setAltEncoding() {
1923 # Some languages may have an alternate char encoding option
1924 # (Esperanto X-coding, Japanese furigana conversion, etc)
1925 # If 'altencoding' is checked in user prefs, this gives a
1926 # chance to swap out the default encoding settings.
1927 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1928 }
1929
1930 function recodeForEdit( $s ) {
1931 # For some languages we'll want to explicitly specify
1932 # which characters make it into the edit box raw
1933 # or are converted in some way or another.
1934 # Note that if wgOutputEncoding is different from
1935 # wgInputEncoding, this text will be further converted
1936 # to wgOutputEncoding.
1937 global $wgInputEncoding, $wgEditEncoding;
1938 if( $wgEditEncoding == '' or
1939 $wgEditEncoding == $wgInputEncoding ) {
1940 return $s;
1941 } else {
1942 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1943 }
1944 }
1945
1946 function recodeInput( $s ) {
1947 # Take the previous into account.
1948 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1949 if($wgEditEncoding != "") {
1950 $enc = $wgEditEncoding;
1951 } else {
1952 $enc = $wgOutputEncoding;
1953 }
1954 if( $enc == $wgInputEncoding ) {
1955 return $s;
1956 } else {
1957 return $this->iconv( $enc, $wgInputEncoding, $s );
1958 }
1959 }
1960
1961 # For right-to-left language support
1962 function isRTL() { return false; }
1963
1964 # To allow "foo[[bar]]" to extend the link over the whole word "foobar"
1965 function linkPrefixExtension() { return false; }
1966
1967
1968 function &getMagicWords() {
1969 global $wgMagicWordsEn;
1970 return $wgMagicWordsEn;
1971 }
1972
1973 # Fill a MagicWord object with data from here
1974 function getMagic( &$mw ) {
1975 $raw =& $this->getMagicWords();
1976 if( !isset( $raw[$mw->mId] ) ) {
1977 # Fall back to English if local list is incomplete
1978 $raw =& Language::getMagicWords();
1979 }
1980 $rawEntry = $raw[$mw->mId];
1981 $mw->mCaseSensitive = $rawEntry[0];
1982 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1983 }
1984
1985 # Italic is unsuitable for some languages
1986 function emphasize( $text ) {
1987 return '<em>'.$text.'</em>';
1988 }
1989
1990
1991 # Normally we use the plain ASCII digits. Some languages such as Arabic will
1992 # want to output numbers using script-appropriate characters: override this
1993 # function with a translator. See LanguageAr.php for an example.
1994 function formatNum( $number ) {
1995 return $number;
1996 }
1997
1998 function listToText( $l ) {
1999 $s = '';
2000 $m = count($l) - 1;
2001 for ($i = $m; $i >= 0; $i--) {
2002 if ($i == $m) {
2003 $s = $l[$i];
2004 } else if ($i == $m - 1) {
2005 $s = $l[$i] . ' ' . $this->getMessage('and') . ' ' . $s;
2006 } else {
2007 $s = $l[$i] . ', ' . $s;
2008 }
2009 }
2010 return $s;
2011 }
2012
2013 # Crop a string from the beginning or end to a certain number of bytes.
2014 # (Bytes are used because our storage has limited byte lengths for some
2015 # columns in the database.) Multibyte charsets will need to make sure that
2016 # only whole characters are included!
2017 #
2018 # $length does not include the optional ellipsis.
2019 # If $length is negative, snip from the beginning
2020 function truncate( $string, $length, $ellipsis = '' ) {
2021 if( $length == 0 ) {
2022 return $ellipsis;
2023 }
2024 if ( strlen( $string ) <= abs( $length ) ) {
2025 return $string;
2026 }
2027 if( $length > 0 ) {
2028 $string = substr( $string, 0, $length );
2029 return $string . $ellipsis;
2030 } else {
2031 $string = substr( $string, $length );
2032 return $ellipsis . $string;
2033 }
2034 }
2035
2036 # Grammatical transformations, needed for inflected languages
2037 # Invoked by putting {{grammar:case|word}} in a message
2038 function convertGrammar( $word, $case ) {
2039 return $word;
2040 }
2041
2042 # languages like Chinese need to be segmented in order for the diff
2043 # to be of any use
2044 function segmentForDiff( $text ) {
2045 return $text;
2046 }
2047 # and unsegment to show the result
2048 function unsegmentForDiff( $text ) {
2049 return $text;
2050 }
2051
2052 # convert text to different variants of a language. the automatic
2053 # conversion is done in autoConvert(). here we parse the text
2054 # marked with -{}-, which specifies special conversions of the
2055 # text that can not be accomplished in autoConvert()
2056 #
2057 # syntax of the markup:
2058 # -{code1:text1;code2:text2;...}- or
2059 # -{text}- in which case no conversion should take place for text
2060 function convert( $text , $isTitle=false) {
2061 global $wgDisableLangConversion;
2062 if($wgDisableLangConversion)
2063 return $text;
2064 if(sizeof($this->getVariants())<2)
2065 return $text;
2066
2067 if($isTitle)
2068 return $this->convertTitle($text);
2069
2070 // no conversion if redirecting
2071 if(substr($text,0,9) == "#REDIRECT") {
2072 return $text;
2073 }
2074
2075
2076 $plang = $this->getPreferredVariant();
2077 $fallback = $this->getVariantFallback($plang);
2078
2079 $tarray = explode("-{", $text);
2080 $tfirst = array_shift($tarray);
2081 $text = $this->autoConvert($tfirst);
2082
2083 foreach($tarray as $txt) {
2084 $marked = explode("}-", $txt);
2085
2086 $choice = explode(";", $marked{0});
2087 if(!array_key_exists(1, $choice)) {
2088 /* a single choice */
2089 $text .= $choice{0};
2090 } else {
2091 $choice1=false;
2092 $choice2=false;
2093 foreach($choice as $c) {
2094 $v = explode(":", $c);
2095 if(!array_key_exists(1, $v)) {
2096 //syntax error in the markup, give up
2097 break;
2098 }
2099 $code = trim($v{0});
2100 $content = trim($v{1});
2101 if($code == $plang) {
2102 $choice1 = $content;
2103 break;
2104 }
2105 if($code == $fallback)
2106 $choice2 = $content;
2107 }
2108 if ( $choice1 )
2109 $text .= $choice1;
2110 elseif ( $choice2 )
2111 $text .= $choice2;
2112 else
2113 $text .= $marked{0};
2114 }
2115 if(array_key_exists(1, $marked))
2116 $text .= $this->autoConvert($marked{1});
2117 }
2118
2119 return $text;
2120 }
2121
2122 /* this does the real conversion to the preferred variant.
2123 see LanguageZh.php for example
2124 */
2125 function autoConvert( $text, $toVariant=false ) {
2126 return $text;
2127 }
2128
2129 /* returns all possible variants of the given text
2130
2131 normally we will just call autoConvert() for each variant, but
2132 in case of zh where the conversion is performed by zhdaemon,
2133 possibily over the network, we want to
2134 cut down the number of connections to save time.
2135 */
2136 function autoConvertToAllVariants($text) {
2137 $ret = array();
2138 $variants = $this->getVariants();
2139 if(sizeof($variants)==1) {
2140 return $false;
2141 }
2142 foreach( $variants as $lang=>$v ) {
2143 $ret[$v] = $this->autoConvert( $text, $v );
2144 }
2145 return $ret;
2146 }
2147
2148 /* hook for converting the title, which may needs special treatment
2149 */
2150 function convertTitle( $text ) {
2151 return $text;
2152 }
2153
2154 # returns a list of language variants for conversion.
2155 # right now mainly used in the Chinese conversion
2156 function getVariants() {
2157 $lang = strtolower( substr( get_class( $this ), 8 ) );
2158 return array( $lang );
2159 }
2160
2161 # in case some variant is not defined in the markup, we need
2162 # to have some fallback. for example, in zh, normally people
2163 # will define zh-cn and zh-tw, but less so for zh-sg or zh-hk.
2164 # when zh-sg is preferred but not defined, we will pick zh-cn
2165 # in this case. right now this is only used by zh.
2166 function getVariantFallback( $v ) {
2167 return false;
2168 }
2169
2170 function getPreferredVariant() {
2171 global $wgUser;
2172
2173 $lang ='';
2174
2175 // if user logged in, get in from user's preference
2176 if( $wgUser->getID() != 0 ) {
2177 $lang = $wgUser->getOption( 'variant' );
2178 }
2179 if($lang != '')
2180 return $lang;
2181
2182 // if we have multiple variants for this langauge,
2183 // pick the first one that's not utf8 (it could be
2184 // utf8 if the language does not have a language file)
2185 $v = $this->getVariants();
2186 if( !empty( $v ) ) {
2187 return $v[0];
2188 }
2189 if($lang != '')
2190 return $lang;
2191
2192 // get it from the class name
2193 $lang = strtolower( substr( get_class( $this ), 8 ) );
2194
2195 return $lang;
2196 }
2197
2198 /* if a language supports multiple variants, it is
2199 possible that non-existing link in one variant
2200 actually exists in another variant. this function
2201 tries to find it.
2202
2203 */
2204 function findVariantLink( &$link, &$nt ) {
2205 static $count=0; //used to limit this operation
2206 static $cache=array();
2207 global $wgDisableLangConversion;
2208 $count++;
2209 if( $wgDisableLangConversion || $count > 50)
2210 return;
2211 $variants = $this->autoConvertToAllVariants($link);
2212 if($variants == false) //give up
2213 return;
2214 foreach( $variants as $v ) {
2215 if(isset($cache[$v]))
2216 continue;
2217 $cache[$v] = 1;
2218 $varnt = Title::newFromText( $v );
2219 if( $varnt && $varnt->getArticleID() > 0 ) {
2220 $nt = $varnt;
2221 $link = $v;
2222 break;
2223 }
2224 }
2225 }
2226
2227 /*
2228 returns an array of extra options used by User::getPageRenderHash()
2229 */
2230 function getExtraHashOptions() {
2231 return array();
2232 }
2233
2234 /**
2235 * A regular expression to match legal word-trailing characters
2236 * which should be merged onto a link of the form [[foo]]bar.
2237 * FIXME
2238 *
2239 * @return string
2240 * @access public
2241 */
2242 function linkTrail() {
2243 $trail = $this->getMessage( 'linktrail' );
2244 if( empty( $trail ) ) $trail = Language::linkTrail();
2245 return $trail;
2246 }
2247
2248 }
2249
2250 # This should fail gracefully if there's not a localization available
2251 wfSuppressWarnings();
2252 include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' );
2253 wfRestoreWarnings();
2254
2255 }
2256 ?>