public function i18n_translation_set::remove_language in Internationalization 7
Remove language from translation set.
Parameters
$langcode: Language to remove from this translation set.
File
- i18n_translation/
i18n_translation.inc, line 443 - Internationalization (i18n) module - Translation set
Class
- i18n_translation_set
- @file Internationalization (i18n) module - Translation set
Code
public function remove_language($langcode) {
$this
->get_translations();
if (isset($this->translations[$langcode])) {
$this
->remove_object($this->translations[$langcode]);
}
return $this;
}