r65132 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65131‎ | r65132 | r65133 >
Date:16:23, 16 April 2010
Author:siebrand
Status:resolved (Comments)
Tags:
Comment:
Tweak messages
Modified paths:
  • /branches/new-installer/phase3/includes/installer/Installer.i18n.php (modified) (history)
  • /branches/new-installer/phase3/includes/installer/WebInstaller.php (modified) (history)

Diff [purge]

Index: branches/new-installer/phase3/includes/installer/Installer.i18n.php
@@ -30,7 +30,7 @@
3131 'config-back' => '← Back',
3232 'config-continue' => 'Continue →',
3333 'config-page-language' => 'Language',
34 - 'config-page-welcome' => 'Welcome',
 34+ 'config-page-welcome' => 'Welcome to MediaWiki!',
3535 'config-page-dbconnect' => 'Connect to database',
3636 'config-page-upgrade' => 'Upgrade existing',
3737 'config-page-dbsettings' => 'Database settings',
@@ -45,9 +45,7 @@
4646 'config-page-upgradedoc' => 'Upgrading',
4747 'config-help-restart' => 'Do you want to clear all saved data that you have entered and restart the installation process?',
4848 'config-restart' => 'Yes, restart it',
49 - 'config-welcome' => 'Welcome to MediaWiki!
50 -
51 -=== Technical data ===
 49+ 'config-welcome' => '=== Technical data ===
5250 Below is some technical data that you can provide if you need help during installation.',
5351 'config-copyright' => "=== Copyright and Terms ===
5452
@@ -68,7 +66,7 @@
6967 You can install MediaWiki.</span>', // FIXME: take span out of message.
7068 'config-env-bad' => 'The environment has been checked.
7169 You cannot install MediaWiki.',
72 - 'config-env-php' => 'PHP $1 installed',
 70+ 'config-env-php' => 'PHP $1 installed.',
7371 'config-env-latest-ok' => 'You are installing the latest version of Mediawiki.',
7472 'config-env-latest-new' => "'''Note:''' You are installing a development version of Mediawiki.",
7573 'config-env-latest-old' => "'''Warning:''' You are installing an outdated version of Mediawiki.",
@@ -81,7 +79,7 @@
8280 If you are on shared hosting, ask your hosting provider to install a suitable database driver.
8381 If you compiled PHP yourself, reconfigure it with a database client enabled, for example using <code>./configure --with-mysql</code>.
8482 If you installed PHP from a Debian or Ubuntu package, then you also need install the php5-mysql module.',
85 - 'config-have-db' => 'Found database drivers: $1',
 83+ 'config-have-db' => 'Found database drivers: $1.',
8684 'config-register-globals' => "'''Warning: PHP's <code>[http://php.net/register_globals register_globals]</code> option is enabled.'''
8785 '''Disable it if you can.'''
8886 MediaWiki will work, but your server is exposed to potential security vulnerabilities.",
@@ -126,8 +124,8 @@
127125 Image thumbnailing will be enabled if you enable uploads.',
128126 'config-no-scaling' => 'Could not find GD library or ImageMagick.
129127 Image thumbnailing will be disabled.',
130 - 'config-dir' => 'Installation directory: <code>$1</code>',
131 - 'config-uri' => 'Script URI path: <code>$1</code>',
 128+ 'config-dir' => 'Installation directory: <code>$1</code>.',
 129+ 'config-uri' => 'Script URI path: <code>$1</code>.',
132130 'config-no-uri' => "'''Error:''' Could not determine the current URI.
133131 Installation aborted.",
134132 'config-dir-not-writable' => "'''Error:''' Cannot write config file.
@@ -136,7 +134,7 @@
137135 To make the directory writable on a Unix/Linux system:
138136 <pre>cd $1
139137 chmod a+w config</pre>",
140 - 'config-file-extension' => 'Installing MediaWiki with <code>$1</code> file extensions',
 138+ 'config-file-extension' => 'Installing MediaWiki with <code>$1</code> file extensions.',
141139 'config-shell-locale' => 'Detected shell locale "$1"',
142140 'config-uploads-safe' => 'Default uploads directory is safe from arbitrary scripts execution.',
143141 'config-uploads-not-safe' => "'''Warning:''' Your default uploads directory <code>$1</code> is vulnerable to arbitrary scripts execution.
@@ -238,14 +236,14 @@
239237 'config-db-web-create' => 'Create the account if it does not already exist',
240238 'config-db-web-no-create-privs' => 'The account you specified for installation does not have enough privileges to create an account.
241239 The account you specify here must already exist.',
242 - 'config-mysql-engine' => 'Storage engine',
 240+ 'config-mysql-engine' => 'Storage engine:',
243241 'config-mysql-innodb' => 'InnoDB',
244242 'config-mysql-myisam' => 'MyISAM',
245243 'config-mysql-engine-help' => "'''InnoDB''' is almost always the best option, since it has good concurrency support.
246244
247245 '''MyISAM''' may be faster in single-user or read-only installations.
248246 MyISAM databases tend to get corrupted more often than InnoDB databases.",
249 - 'config-mysql-charset' => 'Database character set',
 247+ 'config-mysql-charset' => 'Database character set:',
250248 'config-mysql-binary' => 'Binary',
251249 'config-mysql-utf8' => 'UTF-8',
252250 'config-mysql-charset-help' => "In '''binary mode''', MediaWiki stores UTF-8 text to the database in binary fields.
@@ -255,7 +253,7 @@
256254 'config-site-name' => 'Name of wiki:',
257255 'config-site-name-help' => "This will appear in the browser's title bar and various other places.",
258256 'config-site-name-blank' => 'Enter a site name.',
259 - 'config-project-namespace' => 'Project namespace',
 257+ 'config-project-namespace' => 'Project namespace:',
260258 'config-ns-generic' => 'Project',
261259 'config-ns-site-name' => 'Same as the wiki name: $1',
262260 'config-ns-other' => 'Other (specify)',
@@ -287,25 +285,25 @@
288286 You can now skip the remaining configuration and install the wiki right now.',
289287 'config-optional-continue' => 'Ask me more questions.',
290288 'config-optional-skip' => "I'm bored already, just install the wiki.",
291 - 'config-profile' => 'User rights profile',
 289+ 'config-profile' => 'User rights profile:',
292290 'config-profile-wiki' => 'Traditional wiki',
293291 'config-profile-no-anon' => 'Account creation required',
294 - 'config-profile-fishbowl' => 'Fishbowl',
 292+ 'config-profile-fishbowl' => 'Authorized editors only',
295293 'config-profile-private' => 'Private wiki',
296294 'config-profile-help' => "Wikis work best when you let as many people edit them as possible.
297 -In MediaWiki, it's easy to review the recent changes, and to revert any damage that is done by naïve or malicious users.
 295+In MediaWiki, it is easy to review the recent changes, and to revert any damage that is done by naive or malicious users.
298296
299 -However, many people have found MediaWiki to be useful in a wide variety of roles, and sometimes it's not easy to convince everyone around you of the benefits of the wiki way.
300 -So we give you the choice.
 297+However, many have found MediaWiki to be useful in a wide variety of roles, and sometimes it is not easy to convince everyone of the benefits of the wiki way.
 298+So you have the the choice.
301299
302300 A '''traditional wiki''' allows anyone to edit, without even logging in.
303 -Some people prefer a wiki with '''account creation required''', since this provides extra accountability (but may deter casual contributors).
 301+A wiki with '''account creation required''' provides extra accountability, but may deter casual contributors.
304302
305 -A '''fishbowl''' only allows approved users to edit, but the public can view the pages, including history.
 303+The '''authorized editors only''' scenario allows approved users to edit, but the public can view the pages, including history.
306304 A '''private wiki''' only allows approved users to view pages, with the same group allowed to edit.
307305
308306 More complex user rights configurations are available after installation, see the [http://www.mediawiki.org/wiki/Manual:User_rights relevant manual entry].",
309 - 'config-license' => 'Copyright and license',
 307+ 'config-license' => 'Copyright and license:',
310308 'config-license-none' => 'No license footer',
311309 'config-license-gfdl-old' => 'GNU Free Documentation License 1.2 or later',
312310 'config-license-gfdl-current' => 'GNU Free Documentation License 1.3 or later',
@@ -358,7 +356,7 @@
359357 'config-cc-again' => 'Pick again...',
360358 'config-cc-not-chosen' => 'Choose which Creative Commons license you want and click "proceed".',
361359 'config-advanced-settings' => 'Advanced configuration',
362 - 'config-cache-options' => 'Settings for object caching',
 360+ 'config-cache-options' => 'Settings for object caching:',
363361 'config-cache-help' => 'Object caching is used to improve the speed of MediaWiki by caching frequently used data.
364362 Medium to large sites are highly encouraged to enable this, and small sites will see benefits as well.',
365363 'config-cache-none' => 'No caching.
@@ -366,8 +364,8 @@
367365 'config-cache-accel' => 'PHP object caching (APC, eAccelerator or XCache)',
368366 'config-cache-memcached' => 'Use Memcached (requires additional setup and configuration)',
369367 'config-cache-db' => 'Cache data into the database',
370 - 'config-cache-anything' => 'MediaWiki will attempt to cache data anywhere possible, except in Memcached, unless indicated explicitely.',
371 - 'config-memcached-servers' => 'Memcached servers',
 368+ 'config-cache-anything' => 'MediaWiki will attempt to cache data anywhere possible, except in Memcached, unless indicated explicitely',
 369+ 'config-memcached-servers' => 'Memcached servers:',
372370 'config-memcached-help' => 'List of IP addresses to use for Memcached.
373371 Should be separated with commas and specify the port to be used (for example: 1.2.3.4:56, 7.8.9.10:11).',
374372 'config-extensions' => 'Extensions',
@@ -424,7 +422,7 @@
425423 'config-back' => '← Terug',
426424 'config-continue' => 'Doorgaan →',
427425 'config-page-language' => 'Taal',
428 - 'config-page-welcome' => 'Welkom',
 426+ 'config-page-welcome' => 'Welkom bij MediaWiki!',
429427 'config-page-dbconnect' => 'Verbinding maken met database',
430428 'config-page-upgrade' => 'Bestaande bijwerken',
431429 'config-page-dbsettings' => 'Databaseinstellingen',
@@ -439,16 +437,14 @@
440438 'config-page-upgradedoc' => 'Bijwerken',
441439 'config-help-restart' => 'Wilt u alle opgeslagen gegevens die u hebt ingevoerd wissen en het installatieproces opnieuw starten?',
442440 'config-restart' => 'Ja, opnieuw starten',
443 - 'config-welcome' => 'Welkom bij MediaWiki!
444 -
445 -===Technische gegevens===
 441+ 'config-welcome' => '===Technische gegevens===
446442 Hieronder staan een aantal technische gegevens die u kunt aanleveren als u ondersteuning nodig hebt bij de installatie.',
447443 'config-authors' => 'MediaWiki is Copyright © 2001-2010 door Magnus Manske, Brion Vibber, Lee Daniel Crocker, Tim Starling, Erik Möller, Gabriel Wicke, Ævar Arnfjörð Bjarmason, Niklas Laxström, Domas Mituzas, Rob Church, Yuri Astrakhan, Aryeh Gregor, Aaron Schulz, Andrew Garrett, Raimond Spekking, Alexandre Emsenhuber, Siebrand Mazeland, Chad Horohoe en anderen.',
448444 'config-env-good' => 'De omgeving is gecontroleerd.
449445 U kunt MediaWiki installeren.',
450446 'config-env-bad' => 'De omgeving is gecontroleerd.
451447 U kunt MediaWiki niet installeren.',
452 - 'config-env-php' => 'PHP $1 is geïnstalleerd',
 448+ 'config-env-php' => 'PHP $1 is geïnstalleerd.',
453449 'config-env-latest-ok' => 'U bent bezig de meest recente versie van MediaWiki te installeren.',
454450 'config-env-latest-new' => "'''Let op:''' U bent bezig een ontwikkelversie van MediaWiki te installeren.",
455451 'config-env-latest-old' => "'''Waarschuwing:''' U bent bezig een verouderde versie van MediaWiki te installeren.",
@@ -460,7 +456,7 @@
461457
462458 Als u op een gedeelde omgeving zit, vraag dan uw hostingprovider een geschikte databasedriver te installeren.
463459 Als u PHP zelf hebt gecompileerd, wijzig dan uw instellingen zodat een databasedriver wordt geactiveerd, bijvoorbeeld via <code>./configure --with-mysql</code>.',
464 - 'config-have-db' => 'Gevonden databasedrivers: $1',
 460+ 'config-have-db' => 'Gevonden databasedrivers: $1.',
465461 'config-register-globals' => "'''Waarschuwing: De PHP-optie <code>[http://php.net/register_globals register_globals]</code> is ingeschakeld.'''
466462 '''Schakel deze uit als dat mogelijk is.'''
467463 MediaWiki kan ermee werken, maar uw server is dan meer kwetsbaar voor beveiligingslekken.",
@@ -503,8 +499,8 @@
504500 Het aanmaken van miniaturen van afbeeldingen wordt ingeschakeld als u uploaden inschakelt.',
505501 'config-no-scaling' => 'De GD-bibliotheek en ImageMagick zijn niet aangetroffen.
506502 Het maken van miniaturen van afbeeldingen wordt uitgeschakeld.',
507 - 'config-dir' => 'Installatiemap: <code>$1</code>',
508 - 'config-uri' => 'Script URI-pad: <code>$1</code>',
 503+ 'config-dir' => 'Installatiemap: <code>$1</code>.',
 504+ 'config-uri' => 'Script URI-pad: <code>$1</code>.',
509505 'config-no-uri' => "'''Fout:''' de huidige URI kon niet vastgesteld worden.
510506 De installatie is afgebroken.",
511507 'config-dir-not-writable' => "'''Fout:''' het bestand met instellingen kon niet weggeschreven worden.
@@ -609,20 +605,20 @@
610606 'config-db-web-create' => 'Maak de gebruiker aan als deze nog niet bestaat',
611607 'config-db-web-no-create-privs' => 'De gebruiker die u hebt opgegeven voor de installatie heeft niet voldoende rechten om een gebruiker aan te maken.
612608 De gebruiker die u hier opgeeft moet al bestaan.',
613 - 'config-mysql-engine' => 'Opslagmethode',
 609+ 'config-mysql-engine' => 'Opslagmethode:',
614610 'config-mysql-innodb' => 'InnoDB',
615611 'config-mysql-myisam' => 'MyISAM',
616612 'config-mysql-engine-help' => "'''InnoDB''' is vrijwel altijd de beste instelling, omdat deze goed omgaat met meerdere verzoeken tegelijkertijd.
617613
618614 '''MyISAM''' is bij een zeer beperkt aantal gebruikers mogelijk sneller, of als de wiki alleen-lezen is.
619615 MyISAM-databases raken vaker corrupt dan InnoDB-databases.",
620 - 'config-mysql-charset' => 'Tekenset voor de database',
 616+ 'config-mysql-charset' => 'Tekenset voor de database:',
621617 'config-mysql-binary' => 'Binair',
622618 'config-mysql-utf8' => 'UTF-8',
623619 'config-site-name' => 'Naam van de wiki:',
624620 'config-site-name-help' => 'Deze naam verschijnt in de titelbalk van browsers en op andere plaatsen.',
625621 'config-site-name-blank' => 'Geef een naam op voor de site.',
626 - 'config-project-namespace' => 'Projectnaamruimte',
 622+ 'config-project-namespace' => 'Projectnaamruimte:',
627623 'config-ns-generic' => 'Project',
628624 'config-ns-site-name' => 'Zelfde als de wiki: $1',
629625 'config-ns-other' => 'Andere (geen aan welke)',
@@ -654,11 +650,11 @@
655651 Als u wilt kunt u de overige instellingen overslaan en de wiki nu installeren.',
656652 'config-optional-continue' => 'Meer vragen',
657653 'config-optional-skip' => 'Installeer de wiki',
658 - 'config-profile' => 'Gebruikersrechtenprofiel',
 654+ 'config-profile' => 'Gebruikersrechtenprofiel:',
659655 'config-profile-wiki' => 'Traditionele wiki',
660656 'config-profile-no-anon' => 'Gebruiker aanmaken verplicht',
661657 'config-profile-private' => 'Privéwiki',
662 - 'config-license' => 'Auteursrechten en licentie',
 658+ 'config-license' => 'Auteursrechten en licentie:',
663659 'config-license-none' => 'Geen licentie in de voettekst',
664660 'config-license-gfdl-old' => 'GNU Free Documentation License 1.2 of hoger',
665661 'config-license-gfdl-current' => 'GNU Free Documentation License 1.3 of hoger',
@@ -697,7 +693,7 @@
698694 Voer de licentie handmatig in.',
699695 'config-cc-not-chosen' => 'Kies alstublieft de Creative Commons-licentie die u wilt gebruiken en klik op "doorgaan".',
700696 'config-advanced-settings' => 'Gevorderde instellingen',
701 - 'config-cache-options' => 'Instellingen voor het cachen van objecten',
 697+ 'config-cache-options' => 'Instellingen voor het cachen van objecten:',
702698 'config-cache-help' => 'Het cachen van objecten wordt gebruikt om de snelheid van MediaWiki te verbeteren door vaak gebruikte gegevens te bewaren.
703699 Middelgrote tot grote websites wordt geadviseerd dit in te schakelen en ook kleine sites merken de voordelen.',
704700 'config-cache-none' => 'Niets cachen.
@@ -705,8 +701,8 @@
706702 'config-cache-accel' => 'Cachen van objecten via PHP (APC, eAccelerator or XCache)',
707703 'config-cache-memcached' => 'Memcached gebruiken (dit vereist aanvullende instellingen)',
708704 'config-cache-db' => 'Gegevens cachen in de database',
709 - 'config-cache-anything' => 'MediaWiki zal proberen de gegevens te cachen waar mogelijk, behalve in Memcached, tenzij expliciet aangegeven.',
710 - 'config-memcached-servers' => 'Memcachedservers',
 705+ 'config-cache-anything' => 'MediaWiki zal proberen de gegevens te cachen waar mogelijk, behalve in Memcached, tenzij expliciet aangegeven',
 706+ 'config-memcached-servers' => 'Memcachedservers:',
711707 'config-memcached-help' => "Lijst met IP-adressen te gebruiken voor Memcached.
712708 Deze moeten worden gescheiden met komma's en geef de poort op die moet worden gebruikt (bijvoorbeeld: 1.2.3.4:56, 7.8.9.10:11).",
713709 'config-extensions' => 'Uitbreidingen',
Index: branches/new-installer/phase3/includes/installer/WebInstaller.php
@@ -47,7 +47,7 @@
4848 */
4949 var $happyPages;
5050
51 - /**
 51+ /**
5252 * List of "skipped" pages. These are pages that will automatically continue
5353 * to the next page on any GET request. To avoid breaking the "back" button,
5454 * they need to be skipped during a back operation.
@@ -71,7 +71,7 @@
7272 $this->request = $request;
7373 }
7474
75 - /**
 75+ /**
7676 * Main entry point.
7777 * @param array $session Initial session array
7878 * @return array New session array
@@ -242,7 +242,7 @@
243243 private function getSessionSavePath() {
244244 $path = ini_get( 'session.save_path' );
245245 $path = ltrim( substr( $path, strrpos( $path, ';' ) ), ';');
246 -
 246+
247247 return $path;
248248 }
249249
@@ -383,7 +383,7 @@
384384 $lastHappy = -1;
385385 foreach ( $this->pageSequence as $id => $pageName ) {
386386 $happy = !empty( $this->happyPages[$id] );
387 - $s .= $this->getPageListItem( $pageName,
 387+ $s .= $this->getPageListItem( $pageName,
388388 $happy || $lastHappy == $id - 1, $currentPageName );
389389 if ( $happy ) {
390390 $lastHappy = $id;
@@ -394,8 +394,8 @@
395395 $s .= $this->getPageListItem( $pageName, true, $currentPageName );
396396 }
397397 $s .= "</ul></div>\n". // end list pane
398 - "<div class=\"config-page\">\n" .
399 - Xml::element( 'h2', array(),
 398+ "<div class=\"config-page\">\n" .
 399+ Xml::element( 'h2', array(),
400400 wfMsg( 'config-page-' . strtolower( $currentPageName ) ) );
401401
402402 $this->output->addHTMLNoFlush( $s );
@@ -413,8 +413,8 @@
414414 if ( in_array( $currentPageName, $this->pageSequence ) ) {
415415 $query['lastPage'] = $currentPageName;
416416 }
417 - $link = Xml::element( 'a',
418 - array(
 417+ $link = Xml::element( 'a',
 418+ array(
419419 'href' => $this->getUrl( $query )
420420 ),
421421 $name
@@ -428,11 +428,11 @@
429429 $s .= $link;
430430 }
431431 } else {
432 - $s .= Xml::element( 'span',
433 - array(
434 - 'class' => 'config-page-disabled'
435 - ),
436 - $name
 432+ $s .= Xml::element( 'span',
 433+ array(
 434+ 'class' => 'config-page-disabled'
 435+ ),
 436+ $name
437437 );
438438 }
439439 $s .= "</li>\n";
@@ -443,8 +443,8 @@
444444 * Output some stuff after a page is finished
445445 */
446446 function endPageWrapper() {
447 - $this->output->addHTMLNoFlush(
448 - "</div>\n" .
 447+ $this->output->addHTMLNoFlush(
 448+ "</div>\n" .
449449 "<br style=\"clear:both\"/>\n" .
450450 "</div>" );
451451 }
@@ -472,16 +472,16 @@
473473 * @param string $class Additional class name to add to the wrapper div
474474 */
475475 function getInfoBox( $text, $icon = 'info-32.png', $class = false ) {
476 - $s =
 476+ $s =
477477 "<div class=\"config-info $class\">\n" .
478478 "<div class=\"config-info-left\">\n" .
479 - Xml::element( 'img',
480 - array(
 479+ Xml::element( 'img',
 480+ array(
481481 'src' => '../skins/common/images/' . $icon,
482482 'alt' => wfMsg( 'config-information' ),
483483 )
484 - ) . "\n" .
485 - "</div>\n" .
 484+ ) . "\n" .
 485+ "</div>\n" .
486486 "<div class=\"config-info-right\">\n" .
487487 $this->parse( $text ) . "\n" .
488488 "</div>\n" .
@@ -503,8 +503,8 @@
504504 $id = $this->helpId++;
505505 $alt = wfMsg( 'help' );
506506
507 - return
508 - "<div class=\"config-help-wrapper\">\n" .
 507+ return
 508+ "<div class=\"config-help-wrapper\">\n" .
509509 "<div class=\"config-help-message\">\n" .
510510 $html .
511511 "</div>\n" .
@@ -534,14 +534,14 @@
535535 function showMessage( $msg /*, ... */ ) {
536536 $args = func_get_args();
537537 array_shift( $args );
538 - $html = '<div class="config-message">' .
 538+ $html = '<div class="config-message">' .
539539 $this->parse( wfMsgReal( $msg, $args, false, false, false ) ) .
540540 "</div>\n";
541541 $this->output->addHTML( $html );
542542 }
543543
544544 /**
545 - * Label a control by wrapping a config-input div around it and putting a
 545+ * Label a control by wrapping a config-input div around it and putting a
546546 * label before it
547547 */
548548 function label( $msg, $forId, $contents ) {
@@ -554,10 +554,10 @@
555555 if ( $forId ) {
556556 $attributes['for'] = $forId;
557557 }
558 - return
 558+ return
559559 "<div class=\"config-input\">\n" .
560 - Xml::tags( 'label',
561 - $attributes,
 560+ Xml::tags( 'label',
 561+ $attributes,
562562 $labelText ) . "\n" .
563563 $contents .
564564 "</div>\n";
@@ -584,15 +584,15 @@
585585 $params['attribs'] = array();
586586 }
587587 return
588 - $this->label(
589 - $params['label'],
 588+ $this->label(
 589+ $params['label'],
590590 $params['controlName'],
591591 Xml::input(
592592 $params['controlName'],
593593 30, // intended to be overridden by CSS
594594 $params['value'],
595 - $params['attribs'] + array(
596 - 'id' => $params['controlName'],
 595+ $params['attribs'] + array(
 596+ 'id' => $params['controlName'],
597597 'class' => 'config-input-text',
598598 'tabindex' => $this->nextTabIndex()
599599 )
@@ -648,10 +648,10 @@
649649 } else {
650650 $labelText = $this->parse( wfMsg( $params['label'] ) );
651651 }
652 - return
 652+ return
653653 "<div class=\"config-input-check\">\n" .
654654 "<label>\n" .
655 - Xml::check(
 655+ Xml::check(
656656 $params['controlName'],
657657 $params['value'],
658658 $params['attribs'] + array(
@@ -707,12 +707,12 @@
708708 $id = $params['controlName'] . '_' . $value;
709709 $itemAttribs['id'] = $id;
710710 $itemAttribs['tabindex'] = $this->nextTabIndex();
711 - $s .=
712 - '<li>' .
 711+ $s .=
 712+ '<li>' .
713713 Xml::radio( $params['controlName'], $value, $checked, $itemAttribs ) .
714714 '&nbsp;' .
715 - Xml::tags( 'label', array( 'for' => $id ), $this->parse(
716 - wfMsgNoTrans( $params['itemLabelPrefix'] . strtolower( $value ) )
 715+ Xml::tags( 'label', array( 'for' => $id ), $this->parse(
 716+ wfMsgNoTrans( $params['itemLabelPrefix'] . strtolower( $value ) )
717717 ) ) .
718718 "</li>\n";
719719 }
@@ -730,7 +730,7 @@
731731
732732 function showStatusError( $status ) {
733733 $text = $status->getWikiText();
734 - $this->output->addWikiText(
 734+ $this->output->addWikiText(
735735 "<div class=\"config-message\">\n" .
736736 $text .
737737 "</div>"
@@ -800,13 +800,13 @@
801801 }
802802
803803 function startForm() {
804 - $this->addHTML(
 804+ $this->addHTML(
805805 "<div class=\"config-section\">\n" .
806 - Xml::openElement(
807 - 'form',
808 - array(
809 - 'method' => 'post',
810 - 'action' => $this->parent->getUrl( array( 'page' => $this->getName() ) )
 806+ Xml::openElement(
 807+ 'form',
 808+ array(
 809+ 'method' => 'post',
 810+ 'action' => $this->parent->getUrl( array( 'page' => $this->getName() ) )
811811 )
812812 ) . "\n"
813813 );
@@ -821,12 +821,12 @@
822822 }
823823 if ( $continue ) {
824824 // Fake submit button for enter keypress
825 - $s .= Xml::submitButton( wfMsg( "config-$continue" ),
 825+ $s .= Xml::submitButton( wfMsg( "config-$continue" ),
826826 array( 'name' => "enter-$continue", 'style' => 'display:none' ) ) . "\n";
827827 }
828828 if ( $id !== 0 ) {
829 - $s .= Xml::submitButton( wfMsg( 'config-back' ),
830 - array(
 829+ $s .= Xml::submitButton( wfMsg( 'config-back' ),
 830+ array(
831831 'name' => 'submit-back',
832832 'tabindex' => $this->parent->nextTabIndex()
833833 ) ) . "\n";
@@ -886,7 +886,7 @@
887887 if ( $this->parent->getSession( 'test' ) === null ) {
888888 $requestTime = $r->getVal( 'LanguageRequestTime' );
889889 if ( !$requestTime ) {
890 - // The most likely explanation is that the user was knocked back
 890+ // The most likely explanation is that the user was knocked back
891891 // from another page on POST due to session expiry
892892 $msg = 'config-session-expired';
893893 } elseif ( time() - $requestTime > $lifetime ) {
@@ -916,7 +916,7 @@
917917 }
918918
919919 $this->parent->setSession( 'test', true );
920 -
 920+
921921 if ( !isset( $languages[$userLang] ) ) {
922922 $userLang = $this->getVar( '_UserLang', 'en' );
923923 }
@@ -924,14 +924,14 @@
925925 $contLang = $this->getVar( 'wgLanguageCode', 'en' );
926926 }
927927 $this->startForm();
928 - $s =
 928+ $s =
929929 Xml::hidden( 'LanguageRequestTime', time() ) .
930930 $this->getLanguageSelector( 'UserLang', 'config-your-language', $userLang ) .
931931 $this->parent->getHelpBox( 'config-your-language-help' ) .
932932 $this->getLanguageSelector( 'ContLang', 'config-wiki-language', $contLang ) .
933933 $this->parent->getHelpBox( 'config-wiki-language-help' );
934934
935 -
 935+
936936 $this->addHTML( $s );
937937 $this->endForm();
938938 }
@@ -942,7 +942,7 @@
943943 function getLanguageSelector( $name, $label, $selectedCode ) {
944944 global $wgDummyLanguageCodes;
945945 $s = Xml::openElement( 'select', array( 'id' => $name, 'name' => $name ) ) . "\n";
946 -
 946+
947947 $languages = Language::getLanguageNames();
948948 ksort( $languages );
949949 $dummies = array_flip( $wgDummyLanguageCodes );
@@ -953,7 +953,6 @@
954954 $s .= "\n</select>\n";
955955 return $this->parent->label( $label, $name, $s );
956956 }
957 -
958957 }
959958
960959 class WebInstaller_Welcome extends WebInstallerPage {
@@ -994,7 +993,7 @@
995994 $defaultType = $this->getVar( 'wgDBtype' );
996995 foreach ( $this->parent->getVar( '_CompiledDBs' ) as $type ) {
997996 $installer = $this->parent->getDBInstaller( $type );
998 - $types .=
 997+ $types .=
999998 '<li>' .
1000999 Xml::radioLabel(
10011000 $installer->getReadableName(),
@@ -1006,7 +1005,7 @@
10071006 ) .
10081007 "</li>\n";
10091008
1010 - $settings .=
 1009+ $settings .=
10111010 Xml::openElement( 'div', array( 'id' => 'DB_wrapper_' . $type, 'class' => 'dbWrapper' ) ) .
10121011 Xml::element( 'h3', array(), wfMsg( 'config-header-' . $type ) ) .
10131012 $installer->getConnectForm() .
@@ -1014,7 +1013,7 @@
10151014 }
10161015 $types .= "</ul><br clear=\"left\"/>\n";
10171016
1018 - $this->addHTML(
 1017+ $this->addHTML(
10191018 $this->parent->label( 'config-db-type', false, $types ) .
10201019 $settings
10211020 );
@@ -1049,7 +1048,7 @@
10501049 }
10511050 }
10521051
1053 - // wgDBtype is generally valid here because otherwise the previous page
 1052+ // wgDBtype is generally valid here because otherwise the previous page
10541053 // (connect) wouldn't have declared its happiness
10551054 $type = $this->getVar( 'wgDBtype' );
10561055 $installer = $this->parent->getDBInstaller( $type );
@@ -1067,20 +1066,20 @@
10681067 }
10691068
10701069 $this->startForm();
1071 - $this->addHTML( $this->parent->getInfoBox(
 1070+ $this->addHTML( $this->parent->getInfoBox(
10721071 wfMsgNoTrans( 'config-can-upgrade', $GLOBALS['wgVersion'] ) ) );
10731072 $this->endForm();
10741073 }
10751074
10761075 function showDoneMessage() {
10771076 $this->startForm();
1078 - $this->addHTML(
 1077+ $this->addHTML(
10791078 $this->parent->getInfoBox(
1080 - wfMsgNoTrans( 'config-upgrade-done',
1081 - $GLOBALS['wgServer'] .
1082 - $this->getVar( 'wgScriptPath' ) . '/index' .
 1079+ wfMsgNoTrans( 'config-upgrade-done',
 1080+ $GLOBALS['wgServer'] .
 1081+ $this->getVar( 'wgScriptPath' ) . '/index' .
10831082 $this->getVar( 'wgScriptExtension' )
1084 - ), 'tick-32.png'
 1083+ ), 'tick-32.png'
10851084 )
10861085 );
10871086 $this->endForm( 'regenerate' );
@@ -1135,7 +1134,7 @@
11361135 $metaNS = $this->getVar( 'wgMetaNamespace' );
11371136 $this->setVar( 'wgMetaNamespace', wfMsgForContent( 'config-ns-other-default' ) );
11381137
1139 - $this->addHTML(
 1138+ $this->addHTML(
11401139 $this->parent->getTextBox( array(
11411140 'var' => 'wgSitename',
11421141 'label' => 'config-site-name',
@@ -1180,7 +1179,7 @@
11811180 $this->parent->getHelpBox( 'config-subscribe-help' ) .
11821181 $this->parent->getFieldsetEnd() .
11831182 $this->parent->getInfoBox( wfMsg( 'config-almost-done' ) ) .
1184 - $this->parent->getRadioSet( array(
 1183+ $this->parent->getRadioSet( array(
11851184 'var' => '_SkipOptional',
11861185 'itemLabelPrefix' => 'config-optional-',
11871186 'values' => array( 'continue', 'skip' )
@@ -1196,10 +1195,10 @@
11971196
11981197 function submit() {
11991198 $retVal = true;
1200 - $this->parent->setVarsFromRequest( array( 'wgSitename', '_NamespaceType',
1201 - '_AdminName', '_AdminPassword', '_AdminPassword2', '_AdminEmail',
 1199+ $this->parent->setVarsFromRequest( array( 'wgSitename', '_NamespaceType',
 1200+ '_AdminName', '_AdminPassword', '_AdminPassword2', '_AdminEmail',
12021201 '_Subscribe', '_SkipOptional' ) );
1203 -
 1202+
12041203 // Validate site name
12051204 if ( strval( $this->getVar( 'wgSitename' ) ) === '' ) {
12061205 $this->parent->showError( 'config-site-name-blank' );
@@ -1275,8 +1274,8 @@
12761275 }
12771276 return $retVal;
12781277 }
 1278+}
12791279
1280 -}
12811280 class WebInstaller_Options extends WebInstallerPage {
12821281 function execute() {
12831282 if ( $this->getVar( '_SkipOptional' ) == 'skip' ) {
@@ -1309,7 +1308,7 @@
13101309 ) ) .
13111310 $this->getCCChooser() .
13121311 $this->parent->getHelpBox( 'config-license-help' ) .
1313 -
 1312+
13141313 # E-mail
13151314 $this->parent->getFieldsetStart( 'config-email-settings' ) .
13161315 $this->parent->getCheckBox( array(
@@ -1366,14 +1365,14 @@
13671366 $this->addHTML( $this->parent->getFieldsetStart( 'config-upload-settings' ) );
13681367 if ( $this->getVar( '_UploadsAreSafe' ) ) {
13691368 $this->addHTML(
1370 - $this->parent->getCheckBox( array(
 1369+ $this->parent->getCheckBox( array(
13711370 'var' => 'wgEnableUploads',
13721371 'label' => 'config-upload-enable',
13731372 'attribs' => array( 'class' => 'showHideRadio', 'rel' => 'uploadwrapper' ),
13741373 ) ) .
13751374 $this->parent->getHelpBox( 'config-upload-help' ) .
13761375 '<div id="uploadwrapper" style="display: none;">' .
1377 - $this->parent->getTextBox( array(
 1376+ $this->parent->getTextBox( array(
13781377 'var' => 'wgDeletedDirectory',
13791378 'label' => 'config-upload-deleted',
13801379 ) ) .
@@ -1434,7 +1433,7 @@
14351434 ) );
14361435 $styleUrl = $wgServer . dirname( dirname( $this->parent->getUrl() ) ) .
14371436 '/skins/common/config-cc.css';
1438 - $iframeUrl = 'http://creativecommons.org/license/?' .
 1437+ $iframeUrl = 'http://creativecommons.org/license/?' .
14391438 wfArrayToCGI( array(
14401439 'partner' => 'MediaWiki',
14411440 'exit_url' => $exitUrl,
@@ -1445,7 +1444,7 @@
14461445 }
14471446
14481447 function getCCChooser() {
1449 - $iframeAttribs = array(
 1448+ $iframeAttribs = array(
14501449 'class' => 'config-cc-iframe',
14511450 'name' => 'config-cc-iframe',
14521451 'id' => 'config-cc-iframe',
@@ -1470,23 +1469,23 @@
14711470 // If you change this height, also change it in config.css
14721471 $expandJs = str_replace( '$1', '54em', $js );
14731472 $reduceJs = str_replace( '$1', '70px', $js );
1474 - return
 1473+ return
14751474 '<p>'.
14761475 Xml::element( 'img', array( 'src' => $this->getVar( 'wgRightsIcon' ) ) ) .
1477 - '&nbsp;&nbsp;' .
 1476+ '&nbsp;&nbsp;' .
14781477 htmlspecialchars( $this->getVar( 'wgRightsText' ) ) .
14791478 "</p>\n" .
14801479 "<p style=\"text-align: center\">" .
1481 - Xml::element( 'a',
1482 - array(
 1480+ Xml::element( 'a',
 1481+ array(
14831482 'href' => $this->getCCPartnerUrl(),
14841483 'onclick' => $expandJs,
1485 - ),
1486 - wfMsg( 'config-cc-again' )
 1484+ ),
 1485+ wfMsg( 'config-cc-again' )
14871486 ) .
14881487 "</p>\n" .
14891488 "<script type=\"text/javascript\">\n" .
1490 - # Reduce the wrapper div height
 1489+ # Reduce the wrapper div height
14911490 htmlspecialchars( $reduceJs ) .
14921491 "\n" .
14931492 "</script>\n";
@@ -1494,7 +1493,7 @@
14951494
14961495
14971496 function submitCC() {
1498 - $newValues = $this->parent->setVarsFromRequest(
 1497+ $newValues = $this->parent->setVarsFromRequest(
14991498 array( 'wgRightsUrl', 'wgRightsText', 'wgRightsIcon' ) );
15001499 if ( count( $newValues ) != 3 ) {
15011500 $this->parent->showError( 'config-cc-error' );
@@ -1505,13 +1504,13 @@
15061505 }
15071506
15081507 function submit() {
1509 - $this->parent->setVarsFromRequest( array( '_RightsProfile', '_LicenseCode',
 1508+ $this->parent->setVarsFromRequest( array( '_RightsProfile', '_LicenseCode',
15101509 'wgEnableEmail', 'wgPasswordSender', 'wgLogo',
15111510 'wgEnableUserEmail', 'wgEnotifUserTalk', 'wgEnotifWatchlist',
15121511 'wgEmailAuthentication', 'wgMainCacheType', '_MemCachedServers' ) );
15131512
1514 - if ( !in_array( $this->getVar( '_RightsProfile' ),
1515 - array_keys( $this->parent->rightsProfiles ) ) )
 1513+ if ( !in_array( $this->getVar( '_RightsProfile' ),
 1514+ array_keys( $this->parent->rightsProfiles ) ) )
15161515 {
15171516 reset( $this->parent->rightsProfiles );
15181517 $this->setVar( '_RightsProfile', key( $this->parent->rightsProfiles ) );
@@ -1538,7 +1537,7 @@
15391538 $this->setVar( 'wgRightsIcon', '' );
15401539 }
15411540
1542 - $this->setVar( 'wgEnableUploads',
 1541+ $this->setVar( 'wgEnableUploads',
15431542 $this->getVar( 'wgEnableUploads' ) && $this->getVar( '_UploadsAreSafe' )
15441543 );
15451544
@@ -1552,6 +1551,7 @@
15531552 return true;
15541553 }
15551554 }
 1555+
15561556 class WebInstaller_Install extends WebInstallerPage {
15571557
15581558 function execute() {
@@ -1579,13 +1579,14 @@
15801580
15811581 private function endStage( $success = true ) {
15821582 $msg = $success ? 'config-install-step-done' : 'config-install-step-failed';
1583 - $html = wfMsgHtml( $msg );
 1583+ $html = wfMsfHtml( 'word-separator' ) . wfMsgHtml( $msg );
15841584 if ( !$success ) {
15851585 $html = "<span class=\"error\">$html</span>";
15861586 }
15871587 $this->addHTML( $html . "</li>\n" );
15881588 }
15891589 }
 1590+
15901591 class WebInstaller_Complete extends WebInstallerPage {
15911592 public function execute() {
15921593 global $IP;
@@ -1594,15 +1595,16 @@
15951596 $this->addHTML(
15961597 $this->parent->getInfoBox(
15971598 wfMsgNoTrans( $msg,
1598 - $GLOBALS['wgServer'] .
1599 - $this->getVar( 'wgScriptPath' ) . '/index' .
 1599+ $GLOBALS['wgServer'] .
 1600+ $this->getVar( 'wgScriptPath' ) . '/index' .
16001601 $this->getVar( 'wgScriptExtension' )
1601 - ), 'tick-32.png'
 1602+ ), 'tick-32.png'
16021603 )
16031604 );
16041605 $this->endForm( false );
16051606 }
16061607 }
 1608+
16071609 class WebInstaller_Restart extends WebInstallerPage {
16081610 function execute() {
16091611 $r = $this->parent->request;
@@ -1632,7 +1634,7 @@
16331635 $this->startForm();
16341636 $this->endForm( false );
16351637 }
1636 -
 1638+
16371639 function getFileContents() {
16381640 return file_get_contents( dirname( __FILE__ ) . '/../../' . $this->getFileName() );
16391641 }
@@ -1668,21 +1670,22 @@
16691671 }
16701672 }
16711673
1672 -class WebInstaller_Readme extends WebInstaller_Document {
1673 - function getFileName() { return 'README'; }
 1674+class WebInstaller_Readme extends WebInstaller_Document {
 1675+ function getFileName() { return 'README'; }
16741676
16751677 function getFileContents() {
16761678 return $this->formatTextFile( parent::getFileContents() );
16771679 }
16781680 }
16791681
1680 -class WebInstaller_ReleaseNotes extends WebInstaller_Document {
 1682+class WebInstaller_ReleaseNotes extends WebInstaller_Document {
16811683 function getFileName() { return 'RELEASE-NOTES'; }
16821684
16831685 function getFileContents() {
16841686 return $this->formatTextFile( parent::getFileContents() );
16851687 }
16861688 }
 1689+
16871690 class WebInstaller_UpgradeDoc extends WebInstaller_Document {
16881691 function getFileName() { return 'UPGRADE'; }
16891692
@@ -1691,7 +1694,7 @@
16921695 }
16931696 }
16941697
1695 -class WebInstaller_Copying extends WebInstaller_Document {
 1698+class WebInstaller_Copying extends WebInstaller_Document {
16961699 function getFileName() { return 'COPYING'; }
16971700
16981701 function getFileContents() {

Follow-up revisions

RevisionCommit summaryAuthorDate
r65135Fix typo in r65132maxsem17:13, 16 April 2010

Comments

#Comment by MaxSem (talk | contribs)   17:19, 16 April 2010

Overescaping:

Creating LocalSettings.php... Done
#Comment by Siebrand (talk | contribs)   22:55, 17 April 2010

Don't understand quite what you mean here.

#Comment by Nikerabbit (talk | contribs)   06:48, 18 April 2010

He probably didn't use preview and referred to those <code> -tags

#Comment by MaxSem (talk | contribs)   06:59, 18 April 2010

Right. Just try following all steps of installtion process and you'll see the problem.

#Comment by Siebrand (talk | contribs)   12:20, 9 June 2010

Haven't been able to spend any time anymore on the installer. Any suggested fixes? I think the <code> tags should be properly rendered...

#Comment by Siebrand (talk | contribs)   11:15, 20 August 2010

Ping?

#Comment by MaxSem (talk | contribs)   07:52, 22 August 2010

Can't reproduce anymore as we don't have that message in that place now.

#Comment by Siebrand (talk | contribs)   10:31, 22 August 2010

Should this be set to OK then?

Status & tagging log