function LocaleLocaleLookupTest::providerTestFixOldPluralStyle
Same name in other branches
- 9 core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::providerTestFixOldPluralStyle()
- 10 core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::providerTestFixOldPluralStyle()
- 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\FunctionalCode
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.