You are here

protected function RangeInternationalizationWebTestCase::addSecondaryLanguage in Range 7

Adds a secondary language.

1 call to RangeInternationalizationWebTestCase::addSecondaryLanguage()
RangeInternationalizationWebTestCase::setUp in tests/range.i18n.test
Sets up a Drupal site for running functional and integration tests.

File

tests/range.i18n.test, line 53
Contains range i18n tests.

Class

RangeInternationalizationWebTestCase
Tests translatability of range fields.

Code

protected function addSecondaryLanguage() {
  include_once DRUPAL_ROOT . '/includes/locale.inc';

  // Add secondary language.
  locale_add_language(static::SECONDARY_LANGUAGE);

  // Configure language negotiation.
  $negotiation = array(
    'locale-url' => array(),
  );
  language_negotiation_set(LANGUAGE_TYPE_INTERFACE, $negotiation);
}