Fix missing translations in export

This commit is contained in:
Nathan Gray 2012-04-23 19:42:59 +00:00
parent e895274d69
commit e3ef32aa08
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class infolog_egw_record implements importexport_iface_egw_record
// Used in conversions // Used in conversions
static $types = array( static $types = array(
'select-account' => array('info_owner','info_responsible','modifier'), 'select-account' => array('info_owner','info_responsible','modifier'),
'select' => array('info_priority', 'info_type', 'info_status'), 'select' => array('info_priority', 'info_type', 'info_status','info_pricelist'),
'date-time' => array('info_startdate', 'info_enddate','info_datecompleted', 'info_datemodified','created','last_event','next_event'), 'date-time' => array('info_startdate', 'info_enddate','info_datecompleted', 'info_datemodified','created','last_event','next_event'),
'select-cat' => array('info_cat', 'cat_id'), 'select-cat' => array('info_cat', 'cat_id'),
'links' => array('info_link_id'), 'links' => array('info_link_id'),

View File

@ -25,6 +25,7 @@ class infolog_export_csv implements importexport_iface_export_plugin {
public function export( $_stream, importexport_definition $_definition) { public function export( $_stream, importexport_definition $_definition) {
$options = $_definition->plugin_options; $options = $_definition->plugin_options;
translation::add_app('infolog');
$bo = new infolog_bo(); $bo = new infolog_bo();
$selection = array(); $selection = array();
$query = array(); $query = array();
@ -111,6 +112,7 @@ class infolog_export_csv implements importexport_iface_export_plugin {
if(!is_array($selection[$id])) break; if(!is_array($selection[$id])) break;
$selection[$id]['pm_id'] = current($links); $selection[$id]['pm_id'] = current($links);
$selection[$id]['project'] = egw_link::title('projectmanager', $selection[$id]['pm_id']); $selection[$id]['project'] = egw_link::title('projectmanager', $selection[$id]['pm_id']);
$this->selects['info_pricelist'] = ExecMethod('projectmanager.projectmanager_pricelist_bo.pricelist',$selection[$id]['pm_id']);
} }
} }