You are here

protected function ConfigTranslationInstallTest::setUpLanguage in Zircon Profile 8

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

Installer step: Select language.

Overrides InstallerTestBase::setUpLanguage

File

core/modules/config_translation/src/Tests/ConfigTranslationInstallTest.php, line 32
Contains \Drupal\config_translation\Tests\ConfigTranslationInstallTest.

Class

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

Namespace

Drupal\config_translation\Tests

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';
}