From fbdef2da38ac1d458a535b207bfef432141010ce Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Wed, 25 Nov 2015 09:19:02 +0000 Subject: [PATCH] Fix string translations --- templates/CRM/Contact/Form/Merge.tpl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/CRM/Contact/Form/Merge.tpl b/templates/CRM/Contact/Form/Merge.tpl index 8ad08730a2..dd1041ef32 100644 --- a/templates/CRM/Contact/Form/Merge.tpl +++ b/templates/CRM/Contact/Form/Merge.tpl @@ -131,13 +131,13 @@ {* Display the overwrite/add/add new label *} {if $row.main} - (overwrite)  + ({ts}overwrite{/ts})  {if $blockName eq 'email' || $blockName eq 'phone' } {$form.location.$blockName.$blockId.operation.html}  {/if}
{else} - (add)  + ({ts}add{/ts})  {/if}
@@ -161,11 +161,11 @@ {if isset($row.main) || isset($row.other)} {if $row.main == $row.other} - (match)
+ ({ts}match{/ts})
{elseif $row.main} - (overwrite)
+ ({ts}overwrite{/ts})
{else} - (add) + ({ts}add{/ts}) {/if}
{/if} @@ -243,7 +243,7 @@ You will need to manually delete that user (click on the link to open Drupal Use // Create appropriate label / add new link after changing the block if (typeof block == 'undefined') { - label = '(add)'; + label = '({/literal}{ts}add{/ts}{literal})'; } else { @@ -252,10 +252,10 @@ You will need to manually delete that user (click on the link to open Drupal Use mainBlockId = block['id']; // Set label - var label = '(overwrite) '; + var label = '({/literal}{ts}overwrite{/ts}{literal}) '; if (blockname == 'email' || blockname == 'phone') { var opLabel = 'location[' + blockname + '][' + blockId + '][operation]'; - label += '
'; + label += '
'; } label += '
'; } @@ -271,10 +271,10 @@ You will need to manually delete that user (click on the link to open Drupal Use $('body').on('change', "input[id*='[operation]']", function() { var originalHtml = $(this).prevAll('span.action_label').html(); if ($(this).is(":checked")) { - $(this).prevAll('span.action_label').html(originalHtml.replace('(overwrite)', '(add new)')); + $(this).prevAll('span.action_label').html(originalHtml.replace('({/literal}{ts}overwrite{/ts}{literal})', '({/literal}{ts}add new{/ts}{literal})')); } else { - $(this).prevAll('span.action_label').html(originalHtml.replace('(add new)', '(overwrite)')); + $(this).prevAll('span.action_label').html(originalHtml.replace('({/literal}{ts}add new{/ts}{literal})', '({/literal}{ts}overwrite{/ts}{literal})')); } }); -- 2.25.1