diff --git a/calendar/inc/class.calendar_hooks.inc.php b/calendar/inc/class.calendar_hooks.inc.php index 0aec202e32..a7c1375c32 100644 --- a/calendar/inc/class.calendar_hooks.inc.php +++ b/calendar/inc/class.calendar_hooks.inc.php @@ -604,9 +604,9 @@ class calendar_hooks 'size' => 60, 'label' => 'Directory with documents to insert entries', 'name' => 'document_dir', - 'help' => lang('If you specify a directory (full vfs path) here, %1 displays an action for each document. That action allows to download the specified document with the infolog data inserted.',lang('calendar')).' '. - lang('The document can contain placeholder like {{calendar_title}}, to be replaced with the contact data (%1full list of placeholder names%2).','','').' '. - lang('At the moment the following document-types are supported:'). implode(',',bo_merge::get_file_extensions()), + 'help' => lang('If you specify a directory (full vfs path) here, %1 displays an action for each document. That action allows to download the specified document with the data inserted.',lang('calendar')).' '. + lang('The document can contain placeholder like {{%3}}, to be replaced with the data (%1full list of placeholder names%2).','','','calendar_title').' '. + lang('The following document-types are supported:'). implode(',',bo_merge::get_file_extensions()), 'run_lang' => false, 'xmlrpc' => True, 'admin' => False, diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index cf76a229cd..3b85d98953 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -63,7 +63,11 @@ abstract class bo_merge */ function __construct() { + // Common messages are in preferences + translation::add_app('preferences'); + // All contact fields are in addressbook translation::add_app('addressbook'); + $this->contacts = new addressbook_bo(); $this->datetime_format = $GLOBALS['egw_info']['user']['preferences']['common']['dateformat'].' '. diff --git a/etemplate/lang/egw_en.lang b/etemplate/lang/egw_en.lang index 4bc077b489..4cfcc47c52 100644 --- a/etemplate/lang/egw_en.lang +++ b/etemplate/lang/egw_en.lang @@ -170,6 +170,7 @@ etemplate editor etemplate en eTemplate editor etemplate reference etemplate en eTemplate reference etemplate tutorial etemplate en eTemplate tutorial example {{if n_prefix~mr~hello mr.~hello ms.}} - search the field "n_prefix", for "mr", if found, write hello mr., else write hello ms. preferences en Example {{IF n_prefix~Mr~Hello Mr.~Hello Ms.}} - search the field "n_prefix", for "Mr", if found, write Hello Mr., else write Hello Ms. +example {{letterprefix}} - gives a letter prefix without double spaces, if the title is empty for example preferences en Example {{LETTERPREFIX}} - Gives a letter prefix without double spaces, if the title is empty for example example {{nelf role}} - if field role is not empty, you will get a new line with the value of field role preferences en Example {{NELF role}} - if field role is not empty, you will get a new line with the value of field role example {{nelfnv role}} - if field role is not empty, set a lf without any value of the field preferences en Example {{NELFNV role}} - if field role is not empty, set a LF without any value of the field exchange this row with the one above etemplate en Exchange this row with the one above diff --git a/timesheet/inc/class.timesheet_merge.inc.php b/timesheet/inc/class.timesheet_merge.inc.php index cf3d53bf56..a78398fe2b 100644 --- a/timesheet/inc/class.timesheet_merge.inc.php +++ b/timesheet/inc/class.timesheet_merge.inc.php @@ -158,7 +158,7 @@ class timesheet_merge extends bo_merge $n++; } if (!($n&1)) echo '