Skip to content

Commit

Permalink
Wrap another set of hardcoded strings in {ts}
Browse files Browse the repository at this point in the history
  • Loading branch information
braders committed Dec 23, 2021
1 parent 16332a7 commit 9d4c648
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CRM/PCP/BAO/PCP.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public static function setIsActive($id, $is_active) {
CRM_Core_Session::setStatus(ts("%1 status has been updated to %2.", [
1 => $pcpTitle,
2 => $pcpStatus,
]), 'Status Updated', 'success');
]), ts('Status Updated'), 'success');

// send status change mail
$result = self::sendStatusUpdate($id, $is_active, FALSE, $pcpPageType);
Expand Down
2 changes: 1 addition & 1 deletion CRM/Pledge/Form/Pledge.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function buildQuickForm() {
$defaults = [];

$paneNames = [
'Payment Reminders' => 'PaymentReminders',
ts('Payment Reminders') => 'PaymentReminders',
];
foreach ($paneNames as $name => $type) {
$urlParams = "snippet=4&formType={$type}";
Expand Down
2 changes: 1 addition & 1 deletion CRM/Report/Form/Contribute/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ protected function calculateMode($sql) {
$mode[] = CRM_Utils_Money::format($modeDAO->amount, $modeDAO->currency);
}
else {
$mode[] = 'N/A';
$mode[] = ts('N/A');
}
}
return $mode;
Expand Down
4 changes: 3 additions & 1 deletion CRM/UF/Form/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ public function buildQuickForm() {
// is this group active ?
$this->addElement('checkbox', 'is_active', ts('Is this CiviCRM Profile active?'));

$paneNames = ['Advanced Settings' => 'buildAdvanceSetting'];
$paneNames = [
ts('Advanced Settings') => 'buildAdvanceSetting',
];

foreach ($paneNames as $name => $type) {
if ($this->_id) {
Expand Down
6 changes: 3 additions & 3 deletions templates/CRM/Contact/Form/Merge.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<th>{$otherContactTypeIcon} <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$other_cid"}">{$other_name|escape}</a> ({ts}duplicate{/ts})</th>
<th>{ts}Mark All{/ts}<br />=={$form.toggleSelect.html} ==&gt;</th>
<th>{$mainContactTypeIcon}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$main_cid"}">{$main_name|escape}</a></th>
<th width="300">Add/overwrite?</th>
<th width="300">{ts}Add/overwrite?{/ts}</th>
</tr>


Expand Down Expand Up @@ -155,7 +155,7 @@
<span id="main_{$blockName}_{$blockId}_overwrite" class="location_block_controls">

<span class="location_primary">
{if $row.main && $row.main_is_primary == "1"}Primary{/if}
{if $row.main && $row.main_is_primary == "1"}{ts}Primary{/ts}{/if}
</span>

<span class="location_block_controls_options">
Expand Down Expand Up @@ -283,7 +283,7 @@
// Update primary label
if (mainBlock != false && mainBlock['is_primary'] == '1') {
this_controls.find(".location_primary").text('Primary');
this_controls.find(".location_primary").text('{/literal}{ts}Primary{/ts}{literal}');
}
else {
this_controls.find(".location_primary").text('');
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contact/Page/DedupeException.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</td>
<td class="crm-contact-form-block-search">
<label>&nbsp;</label><br />
<button type="submit" class="button crm-button filtercontacts"><span><i class="crm-i fa-search" aria-hidden="true"></i> Find Contacts</span></button>
<button type="submit" class="button crm-button filtercontacts"><span><i class="crm-i fa-search" aria-hidden="true"></i> {ts}Find Contacts{/ts}</span></button>
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Mailing/Page/Report.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
<td>{if $row.unique > 0}<a href="{$row.link_unique}">{$row.unique}</a>{else}{$row.unique}{/if}</td>
<td>{$row.rate|string_format:"%0.2f"}%</td>
<td><a href="{$row.url}">{$row.url}</a></td>
<td><a href="{$row.report}">Report</a></td>
<td><a href="{$row.report}">{ts}Report{/ts}</a></td>
</tr>
{/foreach}
</table>
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Member/Form/MembershipView.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<tr>
<td class="label">{ts}Recurring Contribution{/ts}</td>
<td>
<a class="crm-hover-button action-item" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$contribution_recur_id`&cid=`$contactId`&context=contribution"}'>View Recurring Contribution</a>
<a class="crm-hover-button action-item" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$contribution_recur_id`&cid=`$contactId`&context=contribution"}'>{ts}View Recurring Contribution{/ts}</a>
</td>
</tr>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/UF/Form/AdvanceSetting.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*}
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">
Advanced Settings
{ts}Advanced Settings{/ts}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div class="crm-block crm-form-block crm-uf-advancesetting-form-block">
Expand Down

0 comments on commit 9d4c648

Please sign in to comment.