function UmamiMultilingualInstallTest::getPo

Same name in other branches
  1. 9 core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::getPo()
  2. 8.9.x core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::getPo()
  3. 10 core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::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 UmamiMultilingualInstallTest::getPo()
UmamiMultilingualInstallTest::setUpLanguage in core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php
Installer step: Select language.

File

core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php, line 57

Class

UmamiMultilingualInstallTest
Tests the multilingual installer installing the Umami profile.

Namespace

Drupal\Tests\demo_umami\Functional

Code

protected function getPo($langcode) : string {
    return <<<PO
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>}"

#: Testing site name configuration during the installer.
msgid "Drupal"
msgstr "Drupal"
PO;
}

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