You are here

public function i18n_string_object_wrapper::get_translate_mode in Internationalization 7

Translation mode for object

Overrides i18n_object_wrapper::get_translate_mode

3 methods override i18n_string_object_wrapper::get_translate_mode()
i18n_block_object::get_translate_mode in i18n_block/i18n_block.inc
Translation mode for object
i18n_menu_link::get_translate_mode in i18n_menu/i18n_menu.inc
Translation mode for object
i18n_taxonomy_term::get_translate_mode in i18n_taxonomy/i18n_taxonomy.inc
Translation mode for object

File

i18n_string/i18n_string.inc, line 1223
API for internationalization strings

Class

i18n_string_object_wrapper
String object wrapper

Code

public function get_translate_mode() {
  return !$this
    ->get_langcode() ? I18N_MODE_LOCALIZE : I18N_MODE_NONE;
}