You are here

protected function InstallerTranslationMultipleLanguageTest::getPo in Zircon Profile 8

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

File

core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php, line 46
Contains \Drupal\system\Tests\Installer\InstallerTranslationMultipleLanguageTest.

Class

InstallerTranslationMultipleLanguageTest
Tests translation files for multiple languages get imported during install.

Namespace

Drupal\system\Tests\Installer

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