You are here

protected function InstallerTranslationQueryTest::getPo in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationQueryTest::getPo()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationQueryTest::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 InstallerTranslationQueryTest::getPo()
InstallerTranslationQueryTest::visitInstaller in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php
Visits the interactive installer.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php, line 79

Class

InstallerTranslationQueryTest
Installs Drupal in German and checks resulting site.

Namespace

Drupal\FunctionalTests\Installer

Code

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

msgid "Save and continue"
msgstr "Save and continue {<span class="php-variable">$langcode</span>}"
ENDPO;
}