/**
  * Update locales array
  *
  * @return void
  */
 function updateTranslation()
 {
     $items = $this->getRealListOwner()->getItemNames();
     $ex_class = $this->loadRefExClass();
     $key = ".{$this->name}";
     $_class_name = $ex_class->getExClassName();
     CAppUI::addLocale($_class_name, "{$key}.", CAppUI::tr("Undefined"));
     foreach ($items as $_id => $_item) {
         CAppUI::addLocale($_class_name, "{$key}.{$_id}", $_item);
     }
     $trans = null;
     $local_key = "{$key}-{$this->name}";
     if (isset(CAppUI::$locales[$_class_name][$local_key])) {
         $this->_locale = CAppUI::$locales[$_class_name][$local_key];
     } else {
         $trans = $trans ? $trans : $this->loadRefTranslation();
         $this->_locale = $trans->std;
     }
     $local_key = "{$key}-{$this->name}-desc";
     if (isset(CAppUI::$locales[$_class_name][$local_key])) {
         $this->_locale_desc = CAppUI::$locales[$_class_name][$local_key];
     } else {
         $trans = $trans ? $trans : $this->loadRefTranslation();
         $this->_locale_desc = $trans->desc;
     }
     $local_key = "{$key}-{$this->name}-court";
     if (isset(CAppUI::$locales[$_class_name][$local_key])) {
         $this->_locale_court = CAppUI::$locales[$_class_name][$local_key];
     } else {
         $trans = $trans ? $trans : $this->loadRefTranslation();
         $this->_locale_court = $trans->court;
     }
     $this->_view = $this->_locale;
 }
 function updateLocales(CExClassField $base = null)
 {
     list($prefix, $key) = $this->getKey($base);
     CAppUI::addLocale($prefix, $key, $this->value);
     $this->_view = $this->value;
 }