You are here

public function i18n_translation_set::get_item in Internationalization 7

Get item for language

File

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

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function get_item($langcode) {
  if (($translations = $this
    ->get_translations()) && isset($translations[$langcode])) {
    return $translations[$langcode];
  }
  else {
    return NULL;
  }
}