function DistributionProfileTranslationTest::getPo

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationTest::getPo()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationTest::getPo()
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationTest::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 DistributionProfileTranslationTest::getPo()
DistributionProfileTranslationTest::prepareEnvironment in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php
Prepares the current environment for running the test.

File

core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php, line 126

Class

DistributionProfileTranslationTest
Tests distribution profile support.

Namespace

Drupal\FunctionalTests\Installer

Code

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

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

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