Code Duplication    Length = 21-21 lines in 3 locations

addressbook/inc/class.addressbook_merge.inc.php 1 location

@@ 191-211 (lines=21) @@
188
		}
189
190
		echo '<tr><td colspan="4"><h3>'.lang('General fields:')."</h3></td></tr>";
191
		foreach(array(
192
			'link' => lang('HTML link to the current record'),
193
			'links' => lang('Titles of any entries linked to the current record, excluding attached files'),
194
 			'attachments' => lang('List of files linked to the current record'),
195
			'links_attachments' => lang('Links and attached files'),
196
			'links/[appname]' => lang('Links to specified application.  Example: {{links/infolog}}'),
197
			'date' => lang('Date'),
198
			'user/n_fn' => lang('Name of current user, all other contact fields are valid too'),
199
			'user/account_lid' => lang('Username'),
200
			'pagerepeat' => lang('For serial letter use this tag. Put the content, you want to repeat between two Tags.'),
201
			'label' => lang('Use this tag for addresslabels. Put the content, you want to repeat, between two tags.'),
202
			'labelplacement' => lang('Tag to mark positions for address labels'),
203
			'IF fieldname' => lang('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.'),
204
			'NELF' => lang('Example {{NELF role}} - if field role is not empty, you will get a new line with the value of field role'),
205
			'NENVLF' => lang('Example {{NELFNV role}} - if field role is not empty, set a LF without any value of the field'),
206
			'LETTERPREFIX' => lang('Example {{LETTERPREFIX}} - Gives a letter prefix without double spaces, if the title is empty for example'),
207
			'LETTERPREFIXCUSTOM' => lang('Example {{LETTERPREFIXCUSTOM n_prefix title n_family}} - Example: Mr Dr. James Miller'),
208
			) as $name => $label)
209
		{
210
			echo '<tr><td>{{'.$name.'}}</td><td colspan="3">'.$label."</td></tr>\n";
211
		}
212
213
		$GLOBALS['egw']->translation->add_app('calendar');
214
		echo '<tr><td colspan="4"><h3>'.lang('Calendar fields:')." # = 1, 2, ..., 20, -1</h3></td></tr>";

calendar/inc/class.calendar_merge.inc.php 1 location

@@ 683-703 (lines=21) @@
680
		echo '<tr><td>{{day/name}}</td><td colspan="3">'.lang('Name of the week (ex: Monday), available for the first entry inside each day of week or daily table inside the selected range.').'</td></tr>';
681
682
		echo '<tr><td colspan="4"><h3>'.lang('General fields:')."</h3></td></tr>";
683
		foreach(array(
684
			'link' => lang('HTML link to the current record'),
685
			'links' => lang('Titles of any entries linked to the current record, excluding attached files'),
686
			'attachments' => lang('List of files linked to the current record'),
687
			'links_attachments' => lang('Links and attached files'),
688
			'links/[appname]' => lang('Links to specified application.  Example: {{links/infolog}}'),
689
			'date' => lang('Date'),
690
			'user/n_fn' => lang('Name of current user, all other contact fields are valid too'),
691
			'user/account_lid' => lang('Username'),
692
			'pagerepeat' => lang('For serial letter use this tag. Put the content, you want to repeat between two Tags.'),
693
			'label' => lang('Use this tag for addresslabels. Put the content, you want to repeat, between two tags.'),
694
			'labelplacement' => lang('Tag to mark positions for address labels'),
695
			'IF fieldname' => lang('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.'),
696
			'NELF' => lang('Example {{NELF role}} - if field role is not empty, you will get a new line with the value of field role'),
697
			'NENVLF' => lang('Example {{NELFNV role}} - if field role is not empty, set a LF without any value of the field'),
698
			'LETTERPREFIX' => lang('Example {{LETTERPREFIX}} - Gives a letter prefix without double spaces, if the title is emty for  example'),
699
			'LETTERPREFIXCUSTOM' => lang('Example {{LETTERPREFIXCUSTOM n_prefix title n_family}} - Example: Mr Dr. James Miller'),
700
			) as $name => $label)
701
		{
702
			echo '<tr><td>{{'.$name.'}}</td><td colspan="3">'.$label."</td></tr>\n";
703
		}
704
705
		echo "</table>\n";
706

timesheet/inc/class.timesheet_merge.inc.php 1 location

@@ 202-222 (lines=21) @@
199
		}
200
201
		echo '<tr><td colspan="4"><h3>'.lang('General fields:')."</h3></td></tr>";
202
		foreach(array(
203
			'link' => lang('HTML link to the current record'),
204
			'links' => lang('Titles of any entries linked to the current record, excluding attached files'),
205
 			'attachments' => lang('List of files linked to the current record'),
206
			'links_attachments' => lang('Links and attached files'),
207
			'links/[appname]' => lang('Links to specified application.  Example: {{links/infolog}}'),
208
			'date' => lang('Date'),
209
			'user/n_fn' => lang('Name of current user, all other contact fields are valid too'),
210
			'user/account_lid' => lang('Username'),
211
			'pagerepeat' => lang('For serial letter use this tag. Put the content, you want to repeat between two Tags.'),
212
			'label' => lang('Use this tag for addresslabels. Put the content, you want to repeat, between two tags.'),
213
			'labelplacement' => lang('Tag to mark positions for address labels'),
214
			'IF fieldname' => lang('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.'),
215
			'NELF' => lang('Example {{NELF role}} - if field role is not empty, you will get a new line with the value of field role'),
216
			'NENVLF' => lang('Example {{NELFNV role}} - if field role is not empty, set a LF without any value of the field'),
217
			'LETTERPREFIX' => lang('Example {{LETTERPREFIX}} - Gives a letter prefix without double spaces, if the title is empty for example'),
218
			'LETTERPREFIXCUSTOM' => lang('Example {{LETTERPREFIXCUSTOM n_prefix title n_family}} - Example: Mr Dr. James Miller'),
219
			) as $name => $label)
220
		{
221
			echo '<tr><td>{{'.$name.'}}</td><td colspan="3">'.$label."</td></tr>\n";
222
		}
223
224
		echo "</table>\n";
225