You are here

public function i18n_translation_set::get_title in Internationalization 7

Get title for this set

File

i18n_translation/i18n_translation.inc, line 342
Internationalization (i18n) module - Translation set

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function get_title() {
  if (!empty($this->title)) {
    return $this->title;
  }
  elseif ($translations = $this
    ->get_objects()) {
    foreach ($translations as $object) {
      $names[] = $object
        ->get_title();
    }
    return implode(' / ', $names);
  }
  else {
    return t('Undefined');
  }
}