From 9d53c0186c495c008b10c11d4a98429c45b11018 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Tue, 3 Apr 2018 21:59:23 -0400 Subject: [PATCH] Phone: standardize appearance and translation of extension label --- templates/CRM/Contact/Form/Edit/Phone.tpl | 3 +-- templates/CRM/Contact/Form/Inline/Phone.tpl | 2 +- templates/CRM/Event/Form/ManageEvent/Location.tpl | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/CRM/Contact/Form/Edit/Phone.tpl b/templates/CRM/Contact/Form/Edit/Phone.tpl index 184c0a4608..91b4923fab 100644 --- a/templates/CRM/Contact/Form/Edit/Phone.tpl +++ b/templates/CRM/Contact/Form/Edit/Phone.tpl @@ -40,7 +40,7 @@ {/if} - {$form.phone.$blockId.phone.html}  {ts}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  + {$form.phone.$blockId.phone.html} {ts context="phone_ext"}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  {if $className eq 'CRM_Contact_Form_Contact'} {$form.phone.$blockId.location_type_id.html} {/if} @@ -60,4 +60,3 @@ {/if} - diff --git a/templates/CRM/Contact/Form/Inline/Phone.tpl b/templates/CRM/Contact/Form/Inline/Phone.tpl index 074c9afee7..16cec53a76 100644 --- a/templates/CRM/Contact/Form/Inline/Phone.tpl +++ b/templates/CRM/Contact/Form/Inline/Phone.tpl @@ -47,7 +47,7 @@ {section name='i' start=1 loop=$totalBlocks} {assign var='blockId' value=$smarty.section.i.index} - {$form.phone.$blockId.phone.html}  {ts}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  + {$form.phone.$blockId.phone.html} {ts context="phone_ext"}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  {$form.phone.$blockId.location_type_id.html} {$form.phone.$blockId.phone_type_id.html} {$form.phone.$blockId.is_primary.1.html} diff --git a/templates/CRM/Event/Form/ManageEvent/Location.tpl b/templates/CRM/Event/Form/ManageEvent/Location.tpl index 23833b625a..628c6f92a7 100644 --- a/templates/CRM/Event/Form/ManageEvent/Location.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Location.tpl @@ -71,11 +71,11 @@ - {$form.phone.1.phone.html|crmAddClass:phone} x {$form.phone.1.phone_ext.html|crmAddClass:four} {$form.phone.1.phone_type_id.html} + {$form.phone.1.phone.html|crmAddClass:phone} {ts context="phone_ext"}ext.{/ts} {$form.phone.1.phone_ext.html|crmAddClass:four} {$form.phone.1.phone_type_id.html} - {$form.phone.2.phone.html|crmAddClass:phone} x {$form.phone.2.phone_ext.html|crmAddClass:four} {$form.phone.2.phone_type_id.html} + {$form.phone.2.phone.html|crmAddClass:phone} {ts context="phone_ext"}ext.{/ts} {$form.phone.2.phone_ext.html|crmAddClass:four} {$form.phone.2.phone_type_id.html} @@ -166,4 +166,3 @@ {/literal} {/if} - -- 2.25.1