function InstallerTranslationQueryTest::getPo

Same name and namespace in other branches
  1. 11.x 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.

File

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.