Index: l10n_community/export.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/l10n_server/l10n_community/Attic/export.inc,v
retrieving revision 1.1.2.15.2.24.2.6
diff -u -r1.1.2.15.2.24.2.6 export.inc
--- l10n_community/export.inc	22 Mar 2010 09:28:21 -0000	1.1.2.15.2.24.2.6
+++ l10n_community/export.inc	22 Mar 2010 19:51:09 -0000
@@ -45,9 +45,9 @@
  */
 function l10n_community_export_form(&$form_state, $uri = NULL, $langcode = NULL) {
 
-  // When project was preset from path, disable the selector. 
+  // When project was preset from path, disable the selector.
   $hide_projects = isset($uri);
-  
+
   // Set initial form state, so we can consistently use that.
   $projects = l10n_community_get_projects();
   if (empty($form_state['values'])) {
@@ -56,7 +56,7 @@
       'release' => isset($_GET['release']) ? $_GET['release'] : 'all',
     );
   }
-  
+
   $form = array();
   $form['data'] = array(
     '#type' => 'fieldset',
@@ -143,7 +143,13 @@
     $form['format']['version'] = array(
       '#title' => t('Packaging'),
       '#type' => 'radios',
-      '#options' => array('drupal-6' => t('Drupal 6 core package format (translations directories)'), 'drupal-5' => t('Drupal 5 core package format (for autolocale module)'), 'flat-package' => t('Drupal 5/6 core flat package format (for CVS commit)'), 'all-in-one' => t('All in one file')),
+      '#options' => array(
+        'drupal-7' => t('Drupal 7 core package format (translations directories)'),
+        'drupal-6' => t('Drupal 6 core package format (translations directories)'),
+        'drupal-5' => t('Drupal 5 core package format (for autolocale module)'),
+        'flat-package' => t('Drupal 5-7 core flat package format (for CVS commit)'),
+        'all-in-one' => t('All in one file')
+      ),
       '#default_value' => 'drupal-6',
     );
     $form['format']['compact'] = array(
@@ -343,13 +349,14 @@
       }
     }
 
+    $profilename = ($version == 'drupal-7' ? 'standard' : 'default');
     $file_outputs = array($filename);
     if ($export_string['type'] != 2 /* POTX_STRING_RUNTIME */ && $version != 'all-in-one') {
       // Not runtime-only, so make sure we try to have an installer entry.
       $file_outputs[] = ($uri == 'drupal' ?
         (($version == 'flat-package') ?
           ('installer'. ($template ? '.pot' : '.po')) :
-          ('profiles/default/'. $po_folder .'/'. ($template ? 'installer.pot' : ($language->language .'.po')))) :
+          ('profiles/' . $profilename . '/'. $po_folder .'/'. ($template ? 'installer.pot' : ($language->language .'.po')))) :
         ($po_folder .'/installer'. ($template ? '.pot' : ('.'. $language->language .'.po')))
       );
       if ($export_string['type'] == 1 /* POTX_STRING_INSTALLER */) {
