You are here

protected function i18n_menu_link::build_properties in Internationalization 7

Get translatable properties.

Check whether title or description are to be translated by default menu system.

Overrides i18n_string_object_wrapper::build_properties

File

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

Class

i18n_menu_link
Menu link object

Code

protected function build_properties() {
  $properties = parent::build_properties();
  if ($properties) {
    $strings =& $properties['menu']['item'][$this
      ->get_key()];
    $localizable = _i18n_menu_link_localizable_properties($this->object);
    foreach ($strings as $key => $data) {
      if (!in_array($key, $localizable)) {
        unset($strings[$key]);
      }
    }
  }
  return $properties;
}