[`Merge contacts`]

[`Choose a master contact that will be retained after merging.`] [`Other contacts will be deleted during this merging operation.`] [`Contact info from the contacts to be deleted, except unique fields, will be added to master contact.`] [`Links to deleted contacts from other applications will be updated to link to master contact.`]

{foreach $contacts as $c}

{if $c.master_only} {/if} {$c.name} — [`selected as a master contact`]

{if $c.master_only}

{$c.master_only}

{/if} {foreach $fields as $field_id => $field_name} {if !empty($c[$field_id])}

{$field_name|escape}: {$c[$field_id]}

{/if} {/foreach}
[`ID`]: {$c.id} [`Added`]: {if !empty($c.author.name)}{$c.author.name|escape} {/if}{$c.create_datetime|wa_datetime:'datetime'} [`Method`]: {if $c.create_method}{$c.create_method} ({$c.create_app_id}){else}{$c.create_app_id}{/if}
{sprintf('[`%s has been selected as a master contact.`]', sprintf('%s', $c.name))} {$slaves_num = count($slave_ids)} {if !$c.master_only} {$slaves_num = $slaves_num - 1} {/if} {if $slaves_num > 0} {sprintf(_w('%d other contact will be merged with %%s.', '%d other contacts will be merged with %%s.', $slaves_num), $c.name)} {$unable_to_merge_num = count($contacts) - $slaves_num - 1} {if $unable_to_merge_num > 0} {_w('%d contact will not be merged by the reasons designated above.', '%d contacts will not be merged by the reasons designated above.', $unable_to_merge_num)} {/if} {else} {sprintf('[`However, there are no contacts to be merged with %s, by the reasons designated above.`]', $c.name)} {/if}
{/foreach}
[`or`] [`cancel`]