You are here

public function i18n_translation_set::reset_translations in Internationalization 7

Reset translations, set empty array or new array of translations.

Parameters

$translations array: Array of langcode => item

File

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

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function reset_translations($translations = array()) {
  $this->translations = array();
  $this
    ->add_translations($translations);
  return $this;
}