You are here

public function i18n_translation_set::get_translations in Internationalization 7

Get translations, indexed by language

7 calls to i18n_translation_set::get_translations()
i18n_path_translation_set::save_translations in i18n_path/i18n_path.inc
Save all path translations
i18n_translation_set::add_item in i18n_translation/i18n_translation.inc
Add translation item
i18n_translation_set::clean_translations in i18n_translation/i18n_translation.inc
Clean all items in this translation set
i18n_translation_set::get_item in i18n_translation/i18n_translation.inc
Get item for language
i18n_translation_set::remove_language in i18n_translation/i18n_translation.inc
Remove language from translation set.

... See full list

File

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

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function get_translations() {
  $translations = array();
  foreach ($this
    ->get_objects() as $lang => $object) {
    $translations[$lang] = $object
      ->get_object();
  }
  return $translations;
}