/**
  * Create a copy of the language
  * @param   string  $src    Source language ISO name
  * @param   string  $dst    Destination language ISO name
  * @return  boolean TRUE on success or FALSE on error
  */
 function copyLanguage($from = '', $to = '')
 {
     $result = false;
     if ($from != '' && $to != '' && $this->_db_getList('id', 'iso_name = ' . $from, 1)) {
         $src_id = $this->_db_list[0]['id'];
         $this->_db_freeList();
         $this->id = 0;
         $this->iso_name = strtolower($to);
         $this->name = substr(constant('PCPIN_ISO_LNG_' . strtoupper($to)), 3);
         $this->local_name = $this->name;
         $this->active = 'n';
         if ($this->_db_insertObj()) {
             $result = true;
             $this->id = $this->_db_lastInsertID();
             // Copy language expressions
             _pcpin_loadClass('language_expression');
             $language_expression = new PCPIN_Language_Expression($this);
             $language_expression->_db_getList('language_id = ' . $src_id);
             $expressions = $language_expression->_db_list;
             $language_expression->_db_freeList();
             foreach ($expressions as $expr) {
                 $language_expression = new PCPIN_Language_Expression($this);
                 $language_expression->_db_setObject($expr);
                 $language_expression->language_id = $this->id;
                 $language_expression->_db_insertObj();
             }
         }
     }
     return $result;
 }