protected function InstallerTranslationMultipleLanguageNonInteractiveTest::getPo in Drupal 10
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 InstallerTranslationMultipleLanguageNonInteractiveTest::getPo()
- InstallerTranslationMultipleLanguageNonInteractiveTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationMultipleLanguageNonInteractiveTest.php - Prepares the current environment for running the test.
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationMultipleLanguageNonInteractiveTest.php, line 46
Class
- InstallerTranslationMultipleLanguageNonInteractiveTest
- 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;
}