You are here

protected function ConfigTranslationInstallTest::setUpLanguage in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationInstallTest::setUpLanguage()

Installer step: Select language.

Overrides InstallerTestBase::setUpLanguage

File

core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php, line 27

Class

ConfigTranslationInstallTest
Installs the config translation module on a site installed in non english.

Namespace

Drupal\Tests\config_translation\Functional

Code

protected function setUpLanguage() {

  // Place custom local translations in the translations directory.
  mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
  file_put_contents(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.eo.po', $this
    ->getPo('eo'));
  parent::setUpLanguage();
  $this->translations['Save and continue'] = 'Save and continue eo';
}