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.15.2.24.2.9
diff -u -p -r1.1.2.15.2.24.2.9 export.inc
--- l10n_community/export.inc	18 May 2010 10:39:43 -0000	1.1.2.15.2.24.2.9
+++ l10n_community/export.inc	26 May 2010 12:53:17 -0000
@@ -143,7 +143,13 @@ function l10n_community_export_form(&$fo
     $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/6 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 @@ function _l10n_community_export_string_f
       }
     }
 
+    $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 */) {
@@ -389,8 +396,8 @@ function _l10n_community_export_string_f
  * @param $template
  *   TRUE if templates should be exported, FALSE if translations.
  * @param $version
- *   Version to export with: 'drupal-6', 'drupal-5', 'flat-package' and
- *   'all-in-one'. 'all-in-one' means one .po file, 'flat-package' means no
+ *   Version to export with: 'drupal-7', 'drupal-6', 'drupal-5', 'flat-package'
+ *   and 'all-in-one'. 'all-in-one' means one .po file, 'flat-package' means no
  *   directory structure generated, the others are suitable packages for the
  *   given Drupal version.
  * @param $compact
