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