[freeside-commits] freeside/httemplate/search/elements cust_main_dayranges.html, 1.12, 1.13 cust_pay_or_refund.html, 1.13, 1.14 report_cust_pay_or_refund.html, 1.3, 1.4
Erik Levinson
levinse at wavetail.420.am
Sat May 21 11:24:22 PDT 2011
- Previous message: [freeside-commits] freeside/httemplate/search report_cust_bill.html, 1.12, 1.13 report_cust_main.html, 1.18, 1.19
- Next message: [freeside-commits] freeside/httemplate/search cust_pay_void.html, 1.1, 1.2 cust_pkg.cgi, 1.70, 1.71 report_receivables.html, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv7960/search/elements
Modified Files:
cust_main_dayranges.html cust_pay_or_refund.html
report_cust_pay_or_refund.html
Log Message:
internationalization/localization, RT12515
Index: report_cust_pay_or_refund.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/report_cust_pay_or_refund.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- report_cust_pay_or_refund.html 22 Sep 2010 00:08:30 -0000 1.3
+++ report_cust_pay_or_refund.html 21 May 2011 18:24:20 -0000 1.4
@@ -13,7 +13,7 @@
)
</%doc>
-<% include('/elements/header.html', $title ) %>
+<& /elements/header.html, emt($title) &>
<FORM ACTION="<% $table %>.html" METHOD="GET">
<INPUT TYPE="hidden" NAME="magic" VALUE="_date">
@@ -23,7 +23,7 @@
<TR>
<TH CLASS="background" COLSPAN=2 ALIGN="left">
- <FONT SIZE="+1">Search options</FONT>
+ <FONT SIZE="+1"><% mt('Search options') |h %></FONT>
</TH>
</TR>
@@ -31,18 +31,18 @@
<TD ALIGN="right"><% ucfirst(PL($name_singular)) %> of type: </TD>
<TD>
<SELECT NAME="payby" onChange="payby_changed(this)">
- <OPTION VALUE="">all</OPTION>
- <OPTION VALUE="CARD">credit card (all)</OPTION>
- <OPTION VALUE="CARD-VisaMC">credit card (Visa/MasterCard)</OPTION>
- <OPTION VALUE="CARD-Amex">credit card (American Express)</OPTION>
- <OPTION VALUE="CARD-Discover">credit card (Discover)</OPTION>
- <OPTION VALUE="CARD-Maestro">credit card (Maestro/Switch/Solo)</OPTION>
- <OPTION VALUE="CHEK">electronic check / ACH</OPTION>
- <OPTION VALUE="BILL">check</OPTION>
- <OPTION VALUE="PREP">prepaid card</OPTION>
- <OPTION VALUE="CASH">cash</OPTION>
- <OPTION VALUE="WEST">Western Union</OPTION>
- <OPTION VALUE="MCRD">manual credit card</OPTION>
+ <OPTION VALUE=""><% mt('all') |h %></OPTION>
+ <OPTION VALUE="CARD"><% mt('credit card (all)') |h %></OPTION>
+ <OPTION VALUE="CARD-VisaMC"><% mt('credit card (Visa/MasterCard)') |h %></OPTION>
+ <OPTION VALUE="CARD-Amex"><% mt('credit card (American Express)') |h %></OPTION>
+ <OPTION VALUE="CARD-Discover"><% mt('credit card (Discover)') |h %></OPTION>
+ <OPTION VALUE="CARD-Maestro"><% mt('credit card (Maestro/Switch/Solo)') |h %></OPTION>
+ <OPTION VALUE="CHEK"><% mt('electronic check / ACH') |h %></OPTION>
+ <OPTION VALUE="BILL"><% mt('check') |h %></OPTION>
+ <OPTION VALUE="PREP"><% mt('prepaid card') |h %></OPTION>
+ <OPTION VALUE="CASH"><% mt('cash') |h %></OPTION>
+ <OPTION VALUE="WEST"><% mt('Western Union') |h %></OPTION>
+ <OPTION VALUE="MCRD"><% mt('manual credit card') |h %></OPTION>
</SELECT>
</TD>
</TR>
@@ -64,71 +64,66 @@
</SCRIPT>
<TR>
- <TD ALIGN="right"><FONT ID="checkno_caption" COLOR="#bbbbbb">Check #: </FONT></TD>
+ <TD ALIGN="right"><FONT ID="checkno_caption" COLOR="#bbbbbb"><% mt('Check #:') |h %> </FONT></TD>
<TD>
<INPUT TYPE="text" NAME="payinfo" DISABLED STYLE="background-color: #dddddd">
</TD>
</TR>
- <% include( '/elements/tr-select-agent.html',
+ <& /elements/tr-select-agent.html,
'curr_value' => scalar($cgi->param('agentnum')),
- 'label' => 'for agent: ',
+ 'label' => emt('for agent: '),
'disable_empty' => 0,
- )
- %>
+ &>
- <% include( '/elements/tr-select-user.html' ) %>
+ <& /elements/tr-select-user.html &>
<TR>
- <TD ALIGN="right" VALIGN="center">Payment</TD>
+ <TD ALIGN="right" VALIGN="center"><% mt('Payment') |h %></TD>
<TD>
<TABLE>
- <% include( '/elements/tr-input-beginning_ending.html',
+ <& /elements/tr-input-beginning_ending.html,
layout => 'horiz',
- )
- %>
+ &>
</TABLE>
</TD>
</TR>
% if ( $void ) {
<TR>
- <TD ALIGN="right" VALIGN="center">Voided</TD>
+ <TD ALIGN="right" VALIGN="center"><% mt('Voided') |h %></TD>
<TD>
<TABLE>
- <% include( '/elements/tr-input-beginning_ending.html',
+ <& /elements/tr-input-beginning_ending.html,
prefix => 'void',
layout => 'horiz',
- )
- %>
+ &>
</TABLE>
</TD>
</TR>
% }
- <% include( '/elements/tr-input-lessthan_greaterthan.html',
- 'label' => 'Amount',
+ <& /elements/tr-input-lessthan_greaterthan.html,
+ 'label' => emt('Amount'),
'field' => 'paid',
- )
- %>
+ &>
% if ( $table eq 'cust_pay' ) {
- <% include( '/elements/tr-checkbox.html',
- 'label' => 'Include tax names',
+ <& /elements/tr-checkbox.html,
+ 'label' => emt('Include tax names'),
'field' => 'tax_names',
'value' => 1,
- )
- %>
+ &>
% }
</TABLE>
<BR>
-<INPUT TYPE="submit" VALUE="Get Report">
+<INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
</FORM>
-<% include('/elements/footer.html') %>
+<& /elements/footer.html &>
<%init>
my %opt = @_;
Index: cust_main_dayranges.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/cust_main_dayranges.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- cust_main_dayranges.html 7 Sep 2010 23:31:14 -0000 1.12
+++ cust_main_dayranges.html 21 May 2011 18:24:20 -0000 1.13
@@ -15,7 +15,7 @@
};
</%doc>
-<% include( 'search.html',
+<& search.html,
'name' => 'customers',
'query' => $sql_query,
'count_query' => $count_sql,
@@ -25,7 +25,7 @@
'30-60',
'60-90',
'90+',
- 'Total',
+ emt('Total'),
@pay_head,
],
'footer' => [
@@ -68,12 +68,9 @@
'',
@pay_links,
],
- #'align' => 'rlccrrrrr',
'align' => FS::UI::Web::cust_aligns().
'rrrrr'.
('c' x @pay_labels),
- #'size' => [ '', '', '-1', '-1', '', '', '', '', '', ],
- #'style' => [ '', '', 'b', 'b', '', '', '', '', 'b', ],
'size' => [ ( map '', FS::UI::Web::cust_header() ),
#'-1', '', '', '', '', '', ],
'', '', '', '', '', '',
@@ -95,8 +92,7 @@
( map '', @pay_labels ),
],
%opt,
- )
-%>
+&>
<%init>
my %opt = @_;
@@ -118,7 +114,6 @@
$opt{'title'} .= ' ('.$cgi->param('as_of').')' if $offset > 0;
}
-#my $range_cols = join(',', map &{$range_sub}( @$_ ), @ranges );
my $range_cols = join(',', map call_range_sub($range_sub, @$_, 'offset' => $offset ), @$ranges );
my $select_count_pkgs = FS::cust_main->select_count_pkgs_sql;
@@ -163,7 +158,6 @@
#prospect active inactive suspended cancelled
if ( grep { $cgi->param('status') eq $_ } FS::cust_main->statuses() ) {
my $method = $cgi->param('status'). '_sql';
- #push @where, $class->$method();
push @where, FS::cust_main->$method();
}
@@ -222,7 +216,7 @@
@pay_labels = (map { my $payby = $_;
my $label = $label{$payby};
- sub {($payby eq $_[0]->payby) ? "<b>$label (on file)</b>" : $label}
+ sub {($payby eq $_[0]->payby) ? "<b>".emt("$label (on file)")."</b>" : emt($label)}
} @payby );
@pay_links = (map { [ "${p}misc/payment.cgi?payby=$_;custnum=", 'custnum' ] }
Index: cust_pay_or_refund.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/cust_pay_or_refund.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -d -r1.13 -r1.14
--- cust_pay_or_refund.html 11 Nov 2010 01:44:43 -0000 1.13
+++ cust_pay_or_refund.html 21 May 2011 18:24:20 -0000 1.14
@@ -39,8 +39,8 @@
)
</%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 @@
'links' => \@links,
'color' => \@color,
'style' => \@style,
- )
-%>
+&>
<%init>
my %opt = @_;
@@ -158,21 +157,21 @@
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 @@
}
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 }
- Previous message: [freeside-commits] freeside/httemplate/search report_cust_bill.html, 1.12, 1.13 report_cust_main.html, 1.18, 1.19
- Next message: [freeside-commits] freeside/httemplate/search cust_pay_void.html, 1.1, 1.2 cust_pkg.cgi, 1.70, 1.71 report_receivables.html, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list