You are here

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

File

tests/src/Functional/ConfigInstallerFrTarballTest.php, line 56

Class

ConfigInstallerFrTarballTest
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;
}