function InstallerTranslationMultipleLanguageTest::getPo
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationMultipleLanguageTest::getPo()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationMultipleLanguageTest::getPo()
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationMultipleLanguageTest::getPo()
Returns the string for the test .po file.
Parameters
string $langcode: The language code.
Return value
string Contents for the test .po file.
1 call to InstallerTranslationMultipleLanguageTest::getPo()
- InstallerTranslationMultipleLanguageTest::setUpLanguage in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationMultipleLanguageTest.php - Installer step: Select language.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationMultipleLanguageTest.php, line 45
Class
- InstallerTranslationMultipleLanguageTest
- Tests translation files for multiple languages get imported during install.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function getPo($langcode) {
return <<<ENDPO
msgid ""
msgstr ""
msgid "Save and continue"
msgstr "Save and continue {<span class="php-variable">$langcode</span>}"
msgid "Anonymous"
msgstr "Anonymous {<span class="php-variable">$langcode</span>}"
msgid "Language"
msgstr "Language {<span class="php-variable">$langcode</span>}"
#: Testing site name configuration during the installer.
msgid "Drupal"
msgstr "Drupal"
ENDPO;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.