diff --git a/importexport/inc/class.importexport_export_csv.inc.php b/importexport/inc/class.importexport_export_csv.inc.php index 04707f7a9a..5ca87e22cc 100644 --- a/importexport/inc/class.importexport_export_csv.inc.php +++ b/importexport/inc/class.importexport_export_csv.inc.php @@ -130,6 +130,10 @@ class importexport_export_csv implements importexport_iface_export_record // begin with fieldnames ? if ($this->num_of_records == 0 && $this->csv_options['begin_with_fieldnames'] ) { if($this->csv_options['begin_with_fieldnames'] == 'label') { + // Load translations for app + list($appname, $part2) = explode('_', get_class($_record)); + if(!$GLOBALS['egw_info']['apps'][$appname]) $appname .= $part2; // Handle apps with _ in the name + translation::add_app($appname); foreach($this->mapping as $field => &$label) { $label = lang($label); } diff --git a/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php b/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php index 784a00d101..f796765a6a 100644 --- a/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php +++ b/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php @@ -59,6 +59,9 @@ class importexport_wizard_basic_export_csv 'wizard_step30' => lang('Choose fields to export'), 'wizard_step40' => lang('Choose seperator and charset'), ); + list($appname, $part2) = explode('_', get_class($this)); + if(!$GLOBALS['egw_info']['apps'][$appname]) $appname .= $part2; // Handle apps with _ in the name + translation::add_app($appname); } /**