You are here

protected function i18n_path_metatags_object::build_properties in Path metatags 7

Get object strings for translation.

Return value

mixed Translated properties.

Overrides i18n_string_object_wrapper::build_properties

File

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

Class

i18n_path_metatags_object
Path metatags i18n object.

Code

protected function build_properties() {
  $properties = parent::build_properties();
  list($string_type, $object_id) = $this
    ->get_string_context();
  foreach ($this->object->metatags_values as $key => $metatag_value) {
    $properties[$this
      ->get_textgroup()][$string_type][$object_id][$key] = array(
      'string' => $metatag_value,
      'title' => t("Metatag: @metatag!brOriginal value: @value", array(
        '@value' => $metatag_value,
        '@metatag' => $this->object->metatags[$key],
        '!br' => '<br/>',
      )),
    );
  }
  return $properties;
}