You are here

protected function InstallerExistingConfigSyncDirectoryMultilingualTest::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 InstallerExistingConfigSyncDirectoryMultilingualTest::getPo()
InstallerExistingConfigSyncDirectoryMultilingualTest::prepareEnvironment in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
Prepares the current environment for running the test.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php, line 196

Class

InstallerExistingConfigSyncDirectoryMultilingualTest
Verifies that installing from existing configuration works.

Namespace

Drupal\FunctionalTests\Installer

Code

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

msgid "Anonymous"
msgstr "Anonymous {<span class="php-variable">$langcode</span>}"

msgid "Apply"
msgstr "Aplicar"

ENDPO;
}