You are here

public function PluralizationRulesTest::successLangcodes in Plug 7

This array should contain all currently known langcodes.

As it is impossible to have this ever complete we should try as hard as possible to have it almost complete.

Return value

array

File

lib/Symfony/translation/Tests/PluralizationRulesTest.php, line 60

Class

PluralizationRulesTest
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\Component\Translation\Tests

Code

public function successLangcodes() {
  return array(
    array(
      '1',
      array(
        'ay',
        'bo',
        'cgg',
        'dz',
        'id',
        'ja',
        'jbo',
        'ka',
        'kk',
        'km',
        'ko',
        'ky',
      ),
    ),
    array(
      '2',
      array(
        'nl',
        'fr',
        'en',
        'de',
        'de_GE',
      ),
    ),
    array(
      '3',
      array(
        'be',
        'bs',
        'cs',
        'hr',
      ),
    ),
    array(
      '4',
      array(
        'cy',
        'mt',
        'sl',
      ),
    ),
    array(
      '5',
      array(),
    ),
    array(
      '6',
      array(
        'ar',
      ),
    ),
  );
}