thomascube
2012-01-18 7fe3811c65a7c63154f03610e289a6d196f3ae2e
bin/exportgettext.sh
@@ -106,7 +106,7 @@
   }
   else if (is_file($fn)) {
      include($fn);
      $texts = array_merge($texts, (array)$labels);
      $texts = array_merge($texts, (array)$labels, (array)$messages);
   }
   
   $GLOBALS['en_US'] = $texts;
@@ -175,7 +175,7 @@
   }
   include($fn);
   $texts = $labels ? $labels : $messages;
   $texts = array_merge($labels, $messages);
   
   // write header
   $header = <<<EOF
@@ -196,7 +196,7 @@
"Content-Transfer-Encoding: 8bit\\n"
EOF;
   
   $out = sprintf($header, $srcname, $product, $is_pot ? "POT-Creation-Date" : "PO-Revision-Date", date('c'), $lang);
   $out = sprintf($header, $srcname, $product, $is_pot ? "POT-Creation-Date" : "PO-Revision-Date", date('c'), $shortlang ? $shortlang : $lang);
   $out .= "\n";
   
   $messages = array();
@@ -232,4 +232,4 @@
   return rtrim($out);
}
?>
?>