You are here

public function i18n_taxonomy_term::get_translate_mode in Internationalization 7

Translation mode for object

Overrides i18n_string_object_wrapper::get_translate_mode

File

i18n_taxonomy/i18n_taxonomy.inc, line 37
Internationalization (i18n) module - Translation set

Class

i18n_taxonomy_term
Taxonomy textgroup handler

Code

public function get_translate_mode() {
  $mode = i18n_taxonomy_vocabulary_mode($this->object->vid);
  if ($this
    ->get_langcode()) {
    return $mode & I18N_MODE_TRANSLATE;
  }
  else {
    return $mode & I18N_MODE_LOCALIZE;
  }
}