function LocaleLocaleLookupTest::providerTestFixOldPluralStyle

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

Provides data for testFixOldPluralStyle().

Return value

array An array of test data:

  • translation value
  • expected result

File

core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php, line 98

Class

LocaleLocaleLookupTest
Tests LocaleLookup.

Namespace

Drupal\Tests\locale\Functional

Code

public function providerTestFixOldPluralStyle() {
    return [
        'non-plural translation' => [
            '@count[2] non-plural test',
            '@count[2] non-plural test',
        ],
        'plural translation' => [
            '@count[2] plural test' . PoItem::DELIMITER,
            '@count plural test',
        ],
    ];
}

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