/**
  * Convert the source file to the destination file.
  *
  * @param XLiffFile  $src The source XLIFF file.
  *
  * @param ContaoFile $dst The destination Contao file.
  *
  * @return bool
  */
 protected function convert(XLiffFile $src, ContaoFile $dst)
 {
     $changed = false;
     foreach ($src->getKeys() as $key) {
         if (($value = $src->getTarget($key)) !== null) {
             if ($dst->getValue($key) != $value) {
                 $changed = true;
                 $dst->setValue($key, $value);
             }
         } else {
             if ($dst->getValue($key) !== null) {
                 $changed = true;
                 $dst->removeValue($key);
             }
         }
     }
     return $changed;
 }
 /**
  * Set the value.
  *
  * @param string $value The value to set.
  *
  * @return TranslationEntry
  */
 public function setValue($value)
 {
     $this->doc->setValue($this->getKey(), $value);
     return $this;
 }