You are here

public function i18n_translation_set::get_translations_keys in Internationalization 7

Get translations keys, indexed by language

1 call to i18n_translation_set::get_translations_keys()
i18n_translation_set::save_translations in i18n_translation/i18n_translation.inc
Save translations in this translation set

File

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

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function get_translations_keys() {
  $keys = array();
  foreach ($this
    ->get_objects() as $lang => $object) {
    if ($id = $object
      ->get_key()) {
      $keys[$lang] = $id;
    }
  }
  return array_filter($keys);
}