function UmamiMultilingualInstallTest::getPo

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

Class

UmamiMultilingualInstallTest
Tests the multilingual installer installing the Umami profile.

Namespace

Drupal\Tests\demo_umami\Functional

Code

protected function getPo($langcode) {
  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.