You are here

protected function ConfigTranslationInstallTest::getPo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config_translation/src/Tests/ConfigTranslationInstallTest.php \Drupal\config_translation\Tests\ConfigTranslationInstallTest::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 ConfigTranslationInstallTest::getPo()
ConfigTranslationInstallTest::setUpLanguage in core/modules/config_translation/src/Tests/ConfigTranslationInstallTest.php
Installer step: Select language.

File

core/modules/config_translation/src/Tests/ConfigTranslationInstallTest.php, line 50
Contains \Drupal\config_translation\Tests\ConfigTranslationInstallTest.

Class

ConfigTranslationInstallTest
Installs the config translation module on a site installed in non english.

Namespace

Drupal\config_translation\Tests

Code

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>}"
ENDPO;
}