You are here

protected function i18n_path_breadcrumbs_object::build_properties in Path Breadcrumbs 7.3

Get object strings for translation.

Return value

mixed Translated properties.

Overrides i18n_string_object_wrapper::build_properties

File

path_breadcrumbs_i18n/path_breadcrumbs_i18n.inc, line 47
Internationalization (i18n) class.

Class

i18n_path_breadcrumbs_object
Path Breadcrumbs i18n object.

Code

protected function build_properties() {
  $properties = parent::build_properties();
  list($string_type, $object_id) = $this
    ->get_string_context();
  foreach ($this->object->titles as $key => $title) {
    $properties[$this
      ->get_textgroup()][$string_type][$object_id]['titles:' . $key] = array(
      'string' => $title,
      'title' => t('Title: @title (path: @path)', array(
        '@title' => $title,
        '@path' => $this->object->paths[$key],
      )),
    );
  }
  return $properties;
}