You are here

protected function ConfigInstallerEnSecondTest::getPo in Configuration installer 8

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 ConfigInstallerEnSecondTest::getPo()
ConfigInstallerEnSecondTest::setUpLanguage in tests/src/Functional/ConfigInstallerEnSecondTest.php
Installer step: Select language.

File

tests/src/Functional/ConfigInstallerEnSecondTest.php, line 59

Class

ConfigInstallerEnSecondTest
Tests the config installer profile by uploading a tarball.

Namespace

Drupal\Tests\config_installer\Functional

Code

protected function getPo($langcode) {
  return <<<ENDPO
msgid ""
msgstr ""

msgid "Congratulations, you installed @drupal!"
msgstr "Congratulations, you installed @drupal {<span class="php-variable">$langcode</span>}!"
ENDPO;
}