protected function CustomStrings::getLanguage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php \Drupal\Core\StringTranslation\Translator\CustomStrings::getLanguage()
Add translations for new language.
Parameters
string $langcode: The langcode of the language.
Overrides StaticTranslation::getLanguage
File
- core/
lib/ Drupal/ Core/ StringTranslation/ Translator/ CustomStrings.php, line 41 - Contains \Drupal\Core\StringTranslation\Translator\CustomStrings.
Class
- CustomStrings
- String translator using overrides from variables.
Namespace
Drupal\Core\StringTranslation\TranslatorCode
protected function getLanguage($langcode) {
return $this->settings
->get('locale_custom_strings_' . $langcode, array());
}