You are here

public function i18n_menu_link::get_translate_mode in Internationalization 7

Translation mode for object

Overrides i18n_string_object_wrapper::get_translate_mode

File

i18n_menu/i18n_menu.inc, line 60
Internationalization (i18n) module - Translation set

Class

i18n_menu_link
Menu link object

Code

public function get_translate_mode() {
  $mode = i18n_menu_mode($this->object['menu_name']);
  if ($this
    ->get_langcode()) {
    return $mode & I18N_MODE_TRANSLATE;
  }
  elseif (!empty($this->object['customized'])) {
    return $mode & I18N_MODE_LOCALIZE;
  }
  else {
    return I18N_MODE_NONE;
  }
}