Index: l10n_community/export.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/export.inc,v
retrieving revision 1.1.2.11
diff -u -p -r1.1.2.11 export.inc
--- l10n_community/export.inc	31 Jan 2008 22:16:14 -0000	1.1.2.11
+++ l10n_community/export.inc	23 Feb 2008 11:42:39 -0000
@@ -177,8 +177,8 @@ function l10n_community_export_form_subm
   // This was validated to work in the validation code.
   $uri = l10n_community_project_uri_by_title($form_values['project']);
 
-  // Generate tarball and get file name.
-  list($file_name, $serve_name) = l10n_community_export(
+  // Generate tarball or PO file and get file name.
+  list($mime_type, $file_name, $serve_name) = l10n_community_export(
     $uri,
     ($form_values['release'] == 'all' ? NULL : $form_values['release']),
     $language,
@@ -188,7 +188,7 @@ function l10n_community_export_form_subm
   
   // Return compressed archive to user.
   header('Content-Disposition: attachment; filename='. $serve_name);
-  header('Content-Type: application/x-compressed');
+  header('Content-Type: '. $mime_type);
   echo file_get_contents($file_name);
   unlink($file_name);
   die();
@@ -467,11 +467,11 @@ function l10n_community_export($uri, $re
 
   if ($version == 'all-in-one') {
     // Output a single PO(T) file in this case.
-    return array($tempfile, $uri .'-'. (isset($release) ? $release->title : 'all') . (isset($language) ? '-'. $language->locale : '') . ($template ? '.pot' : '.po'));
+    return array('text/plain', $tempfile, $uri .'-'. (isset($release) ? $release->title : 'all') . (isset($language) ? '-'. $language->locale : '') . ($template ? '.pot' : '.po'));
   }
   else {
     // Output a package in this case.
-    return array($tempfile, $uri .'-'. (isset($release) ? $release->title : 'all') . (isset($language) ? '-'. $language->locale : '') . ($template ? '-templates' : '-translations') .'.tgz');
+    return array('application/x-compressed', $tempfile, $uri .'-'. (isset($release) ? $release->title : 'all') . (isset($language) ? '-'. $language->locale : '') . ($template ? '-templates' : '-translations') .'.tgz');
   }
 }
 
