summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/cust_pay_or_refund.html
diff options
context:
space:
mode:
authorlevinse <levinse>2011-05-21 18:24:20 +0000
committerlevinse <levinse>2011-05-21 18:24:20 +0000
commit2db5d3e1c4d5a48ad15b59efd2f66957937421aa (patch)
tree69922bb7273212dd4c7aa6fd806732cc1c4f5b14 /httemplate/search/elements/cust_pay_or_refund.html
parentddde2be8e3d2cd0e61da2f68d4c06a6b31c50562 (diff)
internationalization/localization, RT12515
Diffstat (limited to 'httemplate/search/elements/cust_pay_or_refund.html')
-rwxr-xr-xhttemplate/search/elements/cust_pay_or_refund.html15
1 files changed, 7 insertions, 8 deletions
diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html
index fccb9eef7..8c32b79bd 100755
--- a/httemplate/search/elements/cust_pay_or_refund.html
+++ b/httemplate/search/elements/cust_pay_or_refund.html
@@ -39,8 +39,8 @@ Examples:
)
</%doc>
-<% include( 'search.html',
- 'title' => $title,
+<& search.html,
+ 'title' => $title, # XXX: translate
'name_singular' => $name_singular,
'query' => $sql_query,
'count_query' => $count_query,
@@ -53,8 +53,7 @@ Examples:
'links' => \@links,
'color' => \@color,
'style' => \@style,
- )
-%>
+&>
<%init>
my %opt = @_;
@@ -158,21 +157,21 @@ push @fields, 'payby_payinfo_pretty',
push @sort_fields, '', $amount_field;
if ( $unapplied ) {
- push @header, 'Unapplied';
+ push @header, emt('Unapplied');
$align .= 'r';
push @links, '';
push @fields, sub { sprintf('$%.2f', shift->unapplied_amount) };
push @sort_fields, '';
}
-push @header, 'Date';
+push @header, emt('Date');
$align .= 'r';
push @links, '';
push @fields, sub { time2str('%b %d %Y', shift->_date ) };
push @sort_fields, '_date';
unless ( $opt{'disable_by'} ) {
- push @header, 'By';
+ push @header, emt('By');
$align .= 'c';
push @links, '';
push @fields, sub { my $o = shift->otaker;
@@ -183,7 +182,7 @@ unless ( $opt{'disable_by'} ) {
}
if ( $tax_names ) {
- push @header, ('Tax names', 'Tax province');
+ push @header, (emt('Tax names'), emt('Tax province'));
$align .= 'cc';
push @links, ('','');
push @fields, sub { join (' + ', map { /^(.*?)(, \w\w)?$/; $1 }