function LocalePluralFormatTest::getPoFileWithMissingPlural

Returns a .po file with a missing plural formula.

1 call to LocalePluralFormatTest::getPoFileWithMissingPlural()
LocalePluralFormatTest::testGetPluralFormat in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocalePluralFormatTest.php
Tests locale_get_plural() and format_plural() functionality.

File

drupal/core/modules/locale/lib/Drupal/locale/Tests/LocalePluralFormatTest.php, line 326
Definition of Drupal\locale\Tests\LocalePluralFormatTest.

Class

LocalePluralFormatTest
Tests plural format handling functionality.

Namespace

Drupal\locale\Tests

Code

function getPoFileWithMissingPlural() {
  return <<<EOF
msgid ""
msgstr ""
"Project-Id-Version: Drupal 8\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=UTF-8\\n"
"Content-Transfer-Encoding: 8bit\\n"

msgid "Monday"
msgstr "lundi"
EOF;
}