protected function UmamiMultilingualInstallTest::getPo in Drupal 9
Same name and namespace in other branches
- 8 core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::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 UmamiMultilingualInstallTest::getPo()
- UmamiMultilingualInstallTest::setUpLanguage in core/
profiles/ demo_umami/ tests/ src/ Functional/ UmamiMultilingualInstallTest.php - Installer step: Select language.
File
- core/
profiles/ demo_umami/ tests/ src/ Functional/ UmamiMultilingualInstallTest.php, line 54
Class
- UmamiMultilingualInstallTest
- Tests the multilingual installer installing the Umami profile.
Namespace
Drupal\Tests\demo_umami\FunctionalCode
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;
}