protected function CustomStrings::loadLanguage

Add translations for new language.

Parameters

string $langcode: The langcode of the language.

Overrides StaticTranslation::loadLanguage

File

drupal/core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php, line 21
Contains \Drupal\Core\StringTranslation\Translator\CustomStrings.

Class

CustomStrings
String translator using overrides from variables.

Namespace

Drupal\Core\StringTranslation\Translator

Code

protected function loadLanguage($langcode) {
  return variable_get('locale_custom_strings_' . $langcode, array());
}