function LocaleExportTest::getUntranslatedString

Same name in other branches
  1. 8.9.x core/modules/locale/tests/src/Functional/LocaleExportTest.php \Drupal\Tests\locale\Functional\LocaleExportTest::getUntranslatedString()
  2. 10 core/modules/locale/tests/src/Functional/LocaleExportTest.php \Drupal\Tests\locale\Functional\LocaleExportTest::getUntranslatedString()
  3. 11.x core/modules/locale/tests/src/Functional/LocaleExportTest.php \Drupal\Tests\locale\Functional\LocaleExportTest::getUntranslatedString()

Returns a .po file fragment with an untranslated string.

Return value

string A .po file fragment with an untranslated string.

1 call to LocaleExportTest::getUntranslatedString()
LocaleExportTest::testExportTranslation in core/modules/locale/tests/src/Functional/LocaleExportTest.php
Tests exportation of translations.

File

core/modules/locale/tests/src/Functional/LocaleExportTest.php, line 183

Class

LocaleExportTest
Tests the exportation of locale files.

Namespace

Drupal\Tests\locale\Functional

Code

public function getUntranslatedString() {
    return <<<EOF
msgid "February"
msgstr ""
EOF;
}

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