Skip to content

Commit

Permalink
Added ts() for VAT (exempt).
Browse files Browse the repository at this point in the history
  • Loading branch information
dpradeep committed Jun 19, 2014
1 parent 9d1c915 commit 57e3be5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CRM/Price/BAO/PriceField.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public static function addQuickFormElement(&$qf,
else {
$opt['label'] = '<span class="crm-price-amount-amount">' . CRM_Utils_Money::format($opt[$valueFieldName]) . '</span> <span class="crm-price-amount-label">' . $opt['label'] . '</span>';
if (isset($opt['tax_amount']) && $displayOpt != 'Do_not_show') {
$opt['label'] .= '<span class="crm-price-amount-label"> VAT (exempt)</span>';
$opt['label'] .= '<span class="crm-price-amount-label">'. ts(' VAT (exempt)') .'</span>';
}
}
}
Expand Down Expand Up @@ -458,7 +458,7 @@ public static function addQuickFormElement(&$qf,
else {
$opt['label'] .= CRM_Utils_Money::format($opt[$valueFieldName]);
if (isset($opt['tax_amount']) && $displayOpt != 'Do_not_show') {
$opt['label'] .= '<span class="crm-price-amount-label"> VAT (exempt)</span>';
$opt['label'] .= '<span class="crm-price-amount-label">'. ts(' VAT (exempt)') .'</span>';
}
}
}
Expand Down Expand Up @@ -502,7 +502,7 @@ public static function addQuickFormElement(&$qf,
else {
$opt['label'] .= CRM_Utils_Money::format($opt[$valueFieldName]);
if (isset($opt['tax_amount']) && $displayOpt != 'Do_not_show') {
$opt['label'] .= '<span class="crm-price-amount-label"> VAT (exempt)</span>';
$opt['label'] .= '<span class="crm-price-amount-label">'. ts(' VAT (exempt)') .'</span>';
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Price/Form/PriceSet.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
{else}
{$option.amount|crmMoney}
{if $option.tax_amount == "0" && $displayOpt != 'Do_not_show'}
<span class='crm-price-amount-label'> VAT (exempt)</span>
<span class='crm-price-amount-label'>{ts} VAT (exempt){/ts}</span>
{/if}
{/if}
{/foreach}
Expand Down

0 comments on commit 57e3be5

Please sign in to comment.