From: Bradley Taylor Date: Tue, 12 Oct 2021 18:46:23 +0000 (+0100) Subject: Make hardcoded strings translatable. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3d40dbd3248c0aff1e19ffeadf0fff5b3ace3b19;p=civicrm-core.git Make hardcoded strings translatable. Wraps previously hardcoded strings in {ts} in Smarty .tpl files. --- diff --git a/templates/CRM/Activity/Form/Task/PickOption.tpl b/templates/CRM/Activity/Form/Task/PickOption.tpl index d9581ffedb..a2167dddca 100644 --- a/templates/CRM/Activity/Form/Task/PickOption.tpl +++ b/templates/CRM/Activity/Form/Task/PickOption.tpl @@ -9,7 +9,7 @@ *}
- Select Group of Contacts + {ts}Select Group of Contacts{/ts}
{include file="CRM/common/formButtons.tpl" location="top"}
diff --git a/templates/CRM/Admin/Page/JobLog.tpl b/templates/CRM/Admin/Page/JobLog.tpl index 4199bade94..41bf07769d 100644 --- a/templates/CRM/Admin/Page/JobLog.tpl +++ b/templates/CRM/Admin/Page/JobLog.tpl @@ -41,8 +41,8 @@ {/foreach} diff --git a/templates/CRM/Admin/Page/MessageTemplates.tpl b/templates/CRM/Admin/Page/MessageTemplates.tpl index 7bc7ac1e23..37b587d765 100644 --- a/templates/CRM/Admin/Page/MessageTemplates.tpl +++ b/templates/CRM/Admin/Page/MessageTemplates.tpl @@ -28,7 +28,7 @@
@@ -40,7 +40,7 @@
@@ -52,7 +52,7 @@
diff --git a/templates/CRM/Contact/Form/Task/ProximityCommon.tpl b/templates/CRM/Contact/Form/Task/ProximityCommon.tpl index bce164c9ff..246f94f941 100644 --- a/templates/CRM/Contact/Form/Task/ProximityCommon.tpl +++ b/templates/CRM/Contact/Form/Task/ProximityCommon.tpl @@ -11,7 +11,7 @@ {ts}By Distance from a Location{/ts}
{$row.name}
{$row.command}
- {if $row.description}
Summary
{$row.description}
{/if} - {if $row.data}
Details
{$row.data}
{/if} + {if $row.description}
{ts}Summary{/ts}
{$row.description}
{/if} + {if $row.data}
{ts}Details{/ts}
{$row.data}
{/if}
- + diff --git a/templates/CRM/Contact/Import/Form/Mapper.tpl b/templates/CRM/Contact/Import/Form/Mapper.tpl index e5529d9b7d..cc726d4496 100644 --- a/templates/CRM/Contact/Import/Form/Mapper.tpl +++ b/templates/CRM/Contact/Import/Form/Mapper.tpl @@ -9,7 +9,7 @@ *}
-

Mapper - 4 Selectors

+

{ts}Mapper - 4 Selectors{/ts}

diff --git a/templates/CRM/Contact/Page/View/Relationship.tpl b/templates/CRM/Contact/Page/View/Relationship.tpl index 395155e9fa..2cffd1e82f 100644 --- a/templates/CRM/Contact/Page/View/Relationship.tpl +++ b/templates/CRM/Contact/Page/View/Relationship.tpl @@ -21,7 +21,7 @@ {* display current relationships *}

{ts}Current Relationships{/ts}

- Permissioned Relationships: + {ts}Permissioned Relationships: {/ts} {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=1 afterText=true}
{include file="CRM/Contact/Page/View/RelationshipSelector.tpl" context="current"} diff --git a/templates/CRM/Contribute/Page/ContributionRecur.tpl b/templates/CRM/Contribute/Page/ContributionRecur.tpl index 7b2a6040fa..ae52293301 100644 --- a/templates/CRM/Contribute/Page/ContributionRecur.tpl +++ b/templates/CRM/Contribute/Page/ContributionRecur.tpl @@ -25,7 +25,7 @@ {else}
{/if} - + {if !empty($recur.installments)}{/if} diff --git a/templates/CRM/Event/Form/ParticipantFeeSelection.tpl b/templates/CRM/Event/Form/ParticipantFeeSelection.tpl index f91c883be3..5f89ee8a6d 100644 --- a/templates/CRM/Event/Form/ParticipantFeeSelection.tpl +++ b/templates/CRM/Event/Form/ParticipantFeeSelection.tpl @@ -81,7 +81,7 @@ CRM.$(function($) { {/literal} -

Change Registration Selections

+

{ts}Change Registration Selections{/ts}

{include file="CRM/common/formButtons.tpl" location="bottom"}
diff --git a/templates/CRM/Group/Form/Edit.tpl b/templates/CRM/Group/Form/Edit.tpl index 967498961e..52ca891e9d 100644 --- a/templates/CRM/Group/Form/Edit.tpl +++ b/templates/CRM/Group/Form/Edit.tpl @@ -31,7 +31,7 @@
- + diff --git a/templates/CRM/Mailing/Form/ForwardMailing.tpl b/templates/CRM/Mailing/Form/ForwardMailing.tpl index 4e7ba414cf..64a1979b99 100644 --- a/templates/CRM/Mailing/Form/ForwardMailing.tpl +++ b/templates/CRM/Mailing/Form/ForwardMailing.tpl @@ -9,7 +9,7 @@ *}
{$form.prox_distance.label}{$form.prox_distance.html|crmAddClass:four} {$form.prox_distance_unit.html}
FROM...
{ts}FROM...{/ts}
{$form.prox_street_address.label}{$form.prox_street_address.html}
{$form.prox_city.label}{$form.prox_city.html}
{$form.prox_postal_code.label}{$form.prox_postal_code.html}
{ts}Amount{/ts}{$recur.amount|crmMoney:$recur.currency}{if $is_test} ({ts}test{/ts}){/if}
{ts}Frequency{/ts}every {$recur.frequency_interval} {$recur.frequency_unit}
{ts}Frequency{/ts}{ts 1=$recur.frequency_interval 2=$recur.frequency_unit}every %1 %2{/ts}
{ts}Installments{/ts}{$recur.installments}
{ts}Status{/ts}{$recur.contribution_status}
{ts}Start Date{/ts}{$recur.start_date|crmDate}
{$form.description.html}
If either of the following fields are filled out they will be used instead of the title or description field in profiles and Mailing List Subscription/unsubscribe forms
{ts}If either of the following fields are filled out they will be used instead of the title or description field in profiles and Mailing List Subscription/unsubscribe forms{/ts}
{$form.frontend_title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_group' field='frontend_title' id=$group.id}{/if}
- + diff --git a/templates/CRM/Report/Page/InstanceList.tpl b/templates/CRM/Report/Page/InstanceList.tpl index 3618df6e0a..95d0be22ed 100644 --- a/templates/CRM/Report/Page/InstanceList.tpl +++ b/templates/CRM/Report/Page/InstanceList.tpl @@ -33,7 +33,7 @@
From{$fromEmail}
{ts}From{/ts}{$fromEmail}
{ts}Please enter up to 5 email addresses to receive the mailing.{/ts}
{$form.email_0.label}{$form.email_0.html}
{$form.email_1.label}{$form.email_1.html}
{$row.description} {ts}View Results{/ts} - more + {ts}more{/ts}
    {foreach from=$row.actions item=action key=action_name}
  • -
    Select HTML Code + {ts}Select HTML Code{/ts}