function TranslatorTest::getNonMatchingMessages
File
-
vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php, line 193
Class
- TranslatorTest
- Test should cover all languages mentioned on http://translate.sourceforge.net/wiki/l10n/pluralforms and Plural forms mentioned on http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms.
Namespace
Symfony\Contracts\Translation\TestCode
public static function getNonMatchingMessages() {
return [
[
'{0} There are no apples|{1} There is one apple',
2,
],
[
'{1} There is one apple|]1,Inf] There are %count% apples',
0,
],
[
'{1} There is one apple|]2,Inf] There are %count% apples',
2,
],
[
'{0} There are no apples|There is one apple',
2,
],
];
}