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