function LocaleLocaleLookupTest::providerTestFixOldPluralStyle

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

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.