protected function ConfigTranslationInstallTest::setUpLanguage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationInstallTest::setUpLanguage()
Installer step: Select language.
Overrides InstallerTestBase::setUpLanguage
See also
\Drupal\Core\Installer\Form\SelectLanguageForm
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\FunctionalCode
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';
}