Merge "Show a tip at the end of the installer to prompt about extensions"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 1 May 2013 20:29:39 +0000 (20:29 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 1 May 2013 20:29:39 +0000 (20:29 +0000)
1  2 
includes/installer/Installer.i18n.php
includes/installer/WebInstallerPage.php

@@@ -336,12 -336,6 +336,12 @@@ The account you specify here must alrea
  
  If your MySQL installation supports InnoDB, it is highly recommended that you choose that instead.
  If your MySQL installation does not support InnoDB, maybe it's time for an upgrade.",
 +      'config-mysql-only-myisam-dep'    => "'''Warning:''' MyISAM is the only available storage engine for MySQL, which is not recommended for use with MediaWiki, because:
 +* it barely supports concurrency due to table locking
 +* it is more prone to corruption than other engines
 +* the MediaWiki codebase does not always handle MyISAM as it should
 +
 +Your MySQL installation does not support InnoDB, maybe it's time for an upgrade.",
        'config-mysql-engine-help'        => "'''InnoDB''' is almost always the best option, since it has good concurrency support.
  
  '''MyISAM''' may be faster in single-user or read-only installations.
@@@ -558,6 -552,9 +558,9 @@@ When that has been done, you can '''[$
        'config-download-localsettings' => 'Download <code>LocalSettings.php</code>',
        'config-help' => 'help',
        'config-nofile'     => 'File "$1" could not be found. Has it been deleted?',
+       'config-extension-link' => 'Did you know that your wiki supports [//www.mediawiki.org/wiki/Manual:Extensions extensions]?
+ You can browse [//www.mediawiki.org/wiki/Category:Extensions_by_category extensions by category] or the [//www.mediawiki.org/wiki/Extension_Matrix Extension Matrix] to see the full list of extensions.',
        'mainpagetext'      => "'''MediaWiki has been successfully installed.'''",
        'mainpagedocfooter' => "Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.
  
@@@ -978,6 -975,7 +981,7 @@@ See also
  {{Identical|Help}}',
        'config-nofile' => 'Used as failure message. Parameters:
  * $1 - filename',
+       'config-extension-link' => 'Shown on last page of installation to inform about possible extensions.',
        'mainpagetext' => 'Along with {{msg-mw|mainpagedocfooter}}, the text you will see on the Main Page when your wiki is installed.',
        'mainpagedocfooter' => 'Along with {{msg-mw|mainpagetext}}, the text you will see on the Main Page when your wiki is installed.
  This might be a good place to put information about <nowiki>{{GRAMMAR:}}</nowiki>. See [[{{NAMESPACE}}:{{BASEPAGENAME}}/fi]] for an example. For languages having grammatical distinctions and not having an appropriate <nowiki>{{GRAMMAR:}}</nowiki> software available, a suggestion to check and possibly amend the messages having <nowiki>{{SITENAME}}</nowiki> may be valuable. See [[{{NAMESPACE}}:{{BASEPAGENAME}}/ksh]] for an example.',
@@@ -4210,12 -4208,6 +4214,12 @@@ Das hier angegebene Datenbankkonto mus
  
  Sofern die vorhandene MySQL-Installation die Speicher-Engine InnoDB unterstützt, wird deren Verwendung eindringlich empfohlen.
  Sofern sie sie nicht unterstützt, sollte eine entsprechende Aktualisierung nunmehr Erwägung gezogen werden.",
 +      'config-mysql-only-myisam-dep' => "'''Warnung:''' MyISAM ist die einzige verfügbare Speicher-Engine für MySQL, die nicht für die Verwendung mit MediaWiki empfohlen wird, da sie
 +* aufgrund von Tabellensperrungen kaum die nebenläufige Ausführung von Aktionen unterstützt,
 +* anfälliger für Datenprobleme ist und
 +* von MediaWiki nicht immer adäquat unterstützt wird.
 +
 +Deine MySQL-Installation unterstützt nicht InnoDB. Eventuell muss eine Aktualisierung durchgeführt werden.",
        'config-mysql-engine-help' => "'''InnoDB''' ist fast immer die bessere Wahl, da es gleichzeitige Zugriffe gut unterstützt.
  
  '''MyISAM''' ist in Einzelnutzerumgebungen sowie bei schreibgeschützten Wikis schneller.
@@@ -6012,12 -6004,6 +6016,12 @@@ Le compte que vous spécifiez ici doit 
   * il est plus sujet à la corruption que les autres moteurs
   * le codebase MediaWiki ne gère pas toujours MyISAM comme il se doit
  Si votre installation MySQL supporte InnoDB, il est fortement recommandé que vous le choisissez plutôt. Si votre installation MySQL ne supporte pas les tables InnoDB, il est peut-être temps de faire une mise à niveau.",
 +      'config-mysql-only-myisam-dep' => "'''Attention :''' MyISAM est le seul moteur de stockage disponible pour MySQL qui ne soit pas recommandé pour une utilsiation avec MédiaWiki, car :
 +* il supporte très peu les accès concurrents à cause du verrouillage des tables
 +* il est plus sujet à corruption que les autres moteurs
 +* le code de base de MédiaWiki ne gère pas toujours MyISAM comme il faudrait
 +
 +Votre installation MySQL ne supporte pas InnoDB ; il est peut-être temps de la mettre à jour.",
        'config-mysql-engine-help' => "'''InnoDB''' est presque toujours la meilleure option, car il supporte bien l'[http://fr.wikipedia.org/wiki/Ordonnancement_dans_les_syst%C3%A8mes_d%27exploitation ordonnancement].
  
  '''MyISAM''' peut être plus rapide dans les installations monoposte ou en lecture seule. Les bases de données MyISAM ont tendance à se corrompre plus souvent que celles d'InnoDB.",
@@@ -6835,12 -6821,6 +6839,12 @@@ A conta que se especifique aquí xa deb
  
  Se a súa instalación MySQL soporta InnoDB, recoméndase elixilo no canto de MyISAM.
  Se a súa instalación MySQL non soporta InnoDB, quizais sexa boa idea realizar unha actualización.",
 +      'config-mysql-only-myisam-dep' => "'''Atención:''' MyISAM é o único motor de almacenamento para MySQL, unha combinación non recomendada para MediaWiki, porque:
 +* practicamente non soporta os accesos simultáneos debido ao bloqueo de táboas
 +* é máis propenso a corromperse ca outros motores
 +* o código base de MediaWiki non sempre manexa o MyISAM como debera
 +
 +A súa instalación MySQL non soporta InnoDB, quizais sexa boa idea realizar unha actualización.",
        'config-mysql-engine-help' => "'''InnoDB''' é case sempre a mellor opción, dado que soporta ben os accesos simultáneos.
  
  '''MyISAM''' é máis rápido en instalacións de usuario único e de só lectura.
@@@ -12265,7 -12245,7 +12269,7 @@@ Dir kënnt elo déi Astellungen déi na
        'config-email-sender' => 'E-Mailadress fir Äntwerten:',
        'config-upload-settings' => 'Eropgeluede Biller a Fichieren',
        'config-upload-enable' => 'Eropluede vu Fichieren aschalten',
 -      'config-upload-deleted' => 'Repertoire fir geläschte Fichieren:',
 +      'config-upload-deleted' => 'Repertoire fir geläscht Fichieren:',
        'config-logo' => 'URL vum Logo:',
        'config-instantcommons' => '"Instant Commons" aktivéieren',
        'config-cc-again' => 'Nach eng kéier eraussichen...',
@@@ -12559,18 -12539,17 +12563,18 @@@ $messages['mhr'] = array
  );
  
  /** Minangkabau (Baso Minangkabau)
 + * @author Iwan Novirion
   * @author Luthfi94
   */
  $messages['min'] = array(
        'mainpagetext' => "'''MediaWiki alah tapasang jo sukses'''.",
 -      'mainpagedocfooter' => 'Silakan baco [//www.mediawiki.org/wiki/Help:Contents/id Panduan Pangguno] untuak caro panggunoan parangkaik lunak wiki iko.
 +      'mainpagedocfooter' => 'Konsultasian [//meta.wikimedia.org/wiki/Help:Contents/min Panduan Panggunoan] untuak informasi caro panggunoan parangkaik lunak wiki.
  
  == Mamulai panggunoan ==
 -
 -* [//www.mediawiki.org/wiki/Manual:Configuration_settings/id Dafta pangaturan konfigurasi]
 -* [//www.mediawiki.org/wiki/Manual:FAQ/id Dafta patanyoan nan acok diajukan manganai MediaWiki]
 -* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]',
 +* [//www.mediawiki.org/wiki/Manual:Configuration_settings/id Daftar pangaturan konfigurasi]
 +* [//www.mediawiki.org/wiki/Manual:FAQ/id Daftar patanyoan nan acok diajukan manganai MediaWiki]
 +* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]
 +* [//www.mediawiki.org/wiki/Localisation#Translation_resources Palokalan MediaWiki untuak bahaso Sanak]',
  );
  
  /** Macedonian (македонски)
@@@ -12897,11 -12876,6 +12901,11 @@@ chmod a+w $3</pre>'
  
  Ако вашата инсталација на MySQL поддржува InnoDB, тогаш сериозно препорачуваме да го користите него наместо MyISAM.
  Ако вашата инсталација на MySQL не поддржува InnoDB, веројатно дошло време за надградба.",
 +      'config-mysql-only-myisam-dep' => "'''Предупредување:''' MyISAM е единствениот достапен складишен погон за MySQL, што не се препорачува за употреба со МедијаВики, бидејќи:
 +* речиси не поддржува истовремено извршување на задачите поради заклучувањето на табелите
 +* поподложен е на расипувања од другите погони
 +* кодната база на МедијаВИки не секогаш работи исправно со MyISAM
 +Вашата инсталација на MySQL не поддржува InnoDB. Можеби е време да ја надградите.",
        'config-mysql-engine-help' => "'''InnoDB''' речиси секогаш е најдобар избор, бидејќи има добра поддршка за едновременост.
  
  '''MyISAM''' може да е побрз кај инсталациите наменети за само еден корисник или незаписни инсталации (само читање).
@@@ -14383,12 -14357,6 +14387,12 @@@ De gebruiker die u hier opgeeft moet a
  
  Als uw installatie van MySQL InnoDB ondersteunt, gebruik dat dan vooral.
  Als uw installatie van MySQL geen ondersteuning heeft voor InnoDB, denk dan na over upgraden.",
 +      'config-mysql-only-myisam-dep' => "'''Waarschuwing:''' MyISAM is enige beschikbare opslagmethode voor MySQL, en deze wordt niet aangeraden voor gebruik met MediaWiki, omdat:
 +* er nauwelijks ondersteuning is voor meerdere gelijktijdige transacties omdat tabellen op slot gezet worden;
 +* tabellen makkelijker stuk kunnen gaan;
 +* de code van MediaWiki niet altijd op de juiste wijze omgaat met MyISAM.
 +
 +Uw installatie van MySQL heeft geen ondersteuning voor InnoDB. We raden u aan om een meer recente versie te gebruiken.",
        'config-mysql-engine-help' => "'''InnoDB''' is vrijwel altijd de beste instelling, omdat deze goed omgaat met meerdere verzoeken tegelijkertijd.
  
  '''MyISAM''' is bij een zeer beperkt aantal gebruikers mogelijk sneller, of als de wiki alleen-lezen is.
@@@ -16152,7 -16120,6 +16156,7 @@@ $messages['ps'] = array
  /** Portuguese (português)
   * @author Crazymadlover
   * @author Hamilton Abreu
 + * @author Luckas
   * @author Mormegil
   * @author Platonides
   * @author SandroHc
@@@ -16492,7 -16459,7 +16496,7 @@@ mas não lhe permitirá armazenar carac
        'config-site-name-help' => 'Este nome aparecerá no título da janela do seu browser e em vários outros sítios.',
        'config-site-name-blank' => 'Introduza o nome do site.',
        'config-project-namespace' => 'Espaço nominal do projecto:',
 -      'config-ns-generic' => 'Projecto',
 +      'config-ns-generic' => 'Projeto',
        'config-ns-site-name' => 'O mesmo que o nome da wiki: $1',
        'config-ns-other' => 'Outro (especifique)',
        'config-ns-other-default' => 'AMinhaWiki',
@@@ -16597,7 -16564,7 +16601,7 @@@ O ideal é que este directório não po
        'config-logo-help' => 'O tema padrão do MediaWiki inclui espaço para um logótipo de 135x160 pixels acima do menu da barra lateral.
  Coloque na wiki uma imagem com estas dimensões e introduza aqui a URL dessa imagem.
  
 -Se não pretende usar um logótipo, deixe este campo em branco.',
 +Se não pretende usar um logótipo, deixe este campo em branco.', # Fuzzy
        'config-instantcommons' => 'Activar a funcionalidade Instant Commons',
        'config-instantcommons-help' => 'O [//www.mediawiki.org/wiki/InstantCommons Instant Commons] é uma funcionalidade que permite que as wikis usem imagens, áudio e outros ficheiros multimédia disponíveis no site [//commons.wikimedia.org/ Wikimedia Commons].
  Para poder usá-los, o MediaWiki necessita de acesso à internet.
@@@ -19841,12 -19808,6 +19845,12 @@@ $messages['ur'] = array
        'config-information' => 'معلومات',
        'config-git' => 'Git ورژن کنٹرول مصنع لطیف ملا: <code>$1</code> ۔',
        'config-git-bad' => 'GIT ورژن کنٹرول مصنع لطیف نہيں ملا ۔',
 +      'config-mysql-only-myisam-dep' => "' ' تنبیہ: ' '[[MyISAM|مائ اسام]] واحد دستیاب 'ذخیرہ جاتی انجن' ہے جو مائی ایس کیو ایل کے لیے ہے ، جو کہ ناموزوں ہے میڈیا وکی کے لیے ،کیوں کہ :
 +* یہ ہموار قطاروں کی سہولت بمشکل فراہم کرتا ہے 
 +* یہ دوسرے انجنوں کے مقابلے  زیادہ بگڑ جاتا ہے
 +* میڈیا وکی کوڈ بیس ہمیشہ سنبھال نہيں پاتا مائی اسام کو ۔ 
 +
 +آپ کا مائی ایس کیو ایل کا نصب ہمیشہ اننو ڈی بی کی سہولت نہيں دے سکتا ، ہو سکتا ہے یہ مزید ترقیاتی کام چاہے", # Fuzzy
        'config-profile-fishbowl' => 'صرف مجاز ایڈیٹرز',
        'config-license-pd' => 'پبلک ڈومین',
        'config-email-settings' => 'ای میل کی ترتیبات',
@@@ -20095,7 -20056,6 +20099,7 @@@ $messages['zea'] = array
  
  /** Simplified Chinese (中文(简体)‎)
   * @author Anthony Fok
 + * @author Cwek
   * @author Hydra
   * @author Hzy980512
   * @author Liangent
@@@ -20218,7 -20178,7 +20222,7 @@@ Object caching is not enabled."
        'config-no-cli-uploads-check' => "'''警告''':在CLI安装过程中,没有对您的默认上传目录(<code>$1</code>)进行执行任意脚本的漏洞检查。",
        'config-brokenlibxml' => '您的系统安装的PHP和libxml2版本组合存在故障,并可能在MediaWiki和其他web应用程序中造成隐藏的数据损坏。请将PHP升级到5.2.9或以上,libxml2升级到2.7.3或以上([//bugs.php.net/bug.php?id=45996 PHP的故障报告])。安装已中断。',
        'config-using531' => '由于函数<code>__call()</code>的引用参数存在故障,PHP $1和MediaWiki无法兼容。请升级到PHP 5.3.2或更高版本,或降级到PHP 5.3.0以修复该问题。安装已中断。',
 -      'config-suhosin-max-value-length' => 'Suhosin已经安装并将GET请求的参数长度限制在$1字节。MediaWiki的ResourceLoader部件可以在此限制下正常工作,但其性能会被降低。如果可能,请在<code>php.ini</code>中将<code>suhosin.get.max_value_length</code>设为1024或更高值,并在LocalSettings.php中将<code>$wgResourceLoaderMaxQueryLength</code>设为同一值。', # Fuzzy
 +      'config-suhosin-max-value-length' => 'Suhosin已经安装并将GET请求的参数长度限制在$1字节。MediaWiki的ResourceLoader部件可以在此限制下正常工作,但其性能会被降低。如果可能,请在<code>php.ini</code>中将<code>suhosin.get.max_value_length</code>设为1024或更高值,并在LocalSettings.php中将<code>$wgResourceLoaderMaxQueryLength</code>设为同一值。',
        'config-db-type' => '数据库类型:',
        'config-db-host' => '数据库主机:',
        'config-db-host-help' => '如果您的数据库在别的服务器上,请在这里输入它的域名或IP地址。
@@@ -20359,12 -20319,6 +20363,12 @@@ chmod a+w $3</pre>'
  
  如果您的MySQL程序支持InnoDB,我们高度推荐您使用该引擎替代MyISAM。
  如果您的MySQL程序不支持InnoDB,请考虑升级。",
 +      'config-mysql-only-myisam-dep' => "''''警告:'''MyISAM是MySQL唯一可用的存储引擎,但不适合用于MediaWiki,是由于:
 +*由于只支持表级锁定,几乎不支持并发。
 +*它比其他引擎更容易损坏。
 +*MediaWiki代码不能总是按照预设地操作MyISAM。
 +
 +你的MySQL不支持InnoDB,是时候升级了。",
        'config-mysql-engine-help' => "'''InnoDB'''通常是最佳选项,因为它对并发操作有着良好的支持。
  
  '''MyISAM'''在单用户或只读环境下可能会有更快的性能表现。但MyISAM数据库出错的概率一般要大于InnoDB数据库。",
@@@ -467,14 -467,7 +467,14 @@@ class WebInstaller_DBConnect extends We
                $this->addHTML( $this->parent->getInfoBox(
                        wfMessage( 'config-support-info', trim( $dbSupport ) )->text() ) );
  
 -              foreach ( $this->parent->getVar( '_CompiledDBs' ) as $type ) {
 +              // It's possible that the library for the default DB type is not compiled in.
 +              // In that case, instead select the first supported DB type in the list.
 +              $compiledDBs = $this->parent->getVar( '_CompiledDBs' );
 +              if ( !in_array( $defaultType, $compiledDBs ) ) {
 +                      $defaultType = $compiledDBs[0];
 +              }
 +
 +              foreach ( $compiledDBs as $type ) {
                        $installer = $this->parent->getDBInstaller( $type );
                        $types .=
                                '<li>' .
        public function submit() {
                $r = $this->parent->request;
                $type = $r->getVal( 'DBType' );
 +              if ( !$type ) {
 +                      return Status::newFatal( 'config-invalid-db-type' );
 +              }
                $this->setVar( 'wgDBtype', $type );
                $installer = $this->parent->getDBInstaller( $type );
                if ( !$installer ) {
@@@ -1275,6 -1265,9 +1275,9 @@@ class WebInstaller_Complete extends Web
                                )->plain(), 'tick-32.png'
                        )
                );
+               $this->addHTML( $this->parent->getInfoBox(
+                       wfMessage( 'config-extension-link' )->text() ) );
                $this->parent->restoreLinkPopups();
                $this->endForm( false, false );
        }