You are here

public static function i18n_string_textgroup_cached_logged::load_translation in Internationalization 7

Load translation from db

@todo Optimize when we've already got the source string

Overrides i18n_string_textgroup_default::load_translation

File

tests/i18n_test.module, line 95
Helper module for testing i18n

Class

i18n_string_textgroup_cached_logged

Code

public static function load_translation($i18nstring, $langcode) {
  $strings = variable_get('i18n_loaded_translations', array());
  $strings[$i18nstring
    ->get_name()] = true;
  variable_set('i18n_loaded_translations', $strings);
  parent::load_translation($i18nstring, $langcode);
}