Skip to content
Snippets Groups Projects
Commit 9286e7ce authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3088012 by alexpott, mikelutz, Wim Leers, Berdir:...

Issue #3088012 by alexpott, mikelutz, Wim Leers, Berdir: InstallerExistingConfigTest shouldn't download translations from l.d.o

(cherry picked from commit 48cfce30)
parent 39aa2148
No related branches found
No related tags found
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
...@@ -12,12 +12,22 @@ class InstallerExistingConfigTest extends InstallerExistingConfigTestBase { ...@@ -12,12 +12,22 @@ class InstallerExistingConfigTest extends InstallerExistingConfigTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function setUpSite() { protected function setUpLanguage() {
// Place a custom local translation in the translations directory.
mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.fr.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Enregistrer et continuer\"");
parent::setUpLanguage();
}
/**
* {@inheritdoc}
*/
public function setUpSettings() {
// The configuration is from a site installed in French. // The configuration is from a site installed in French.
// So after selecting the profile the installer detects that the site must // So after selecting the profile the installer detects that the site must
// be installed in French, thus we change the button translation. // be installed in French, thus we change the button translation.
$this->translations['Save and continue'] = 'Enregistrer et continuer'; $this->translations['Save and continue'] = 'Enregistrer et continuer';
parent::setUpSite(); parent::setUpSettings();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment