Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TranslatorTest.php

function TranslatorTest::setUp

Overrides TestCase::setUp

File

vendor/symfony/translation-contracts/Test/TranslatorTest.php, line 35

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\Test

Code

protected function setUp() : void {
    $this->defaultLocale = \Locale::getDefault();
    \Locale::setDefault('en');
}
RSS feed
Powered by Drupal