summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_pay.cgi
diff options
context:
space:
mode:
authorlevinse <levinse>2011-05-22 22:09:09 +0000
committerlevinse <levinse>2011-05-22 22:09:09 +0000
commitdf4c3a581b4e37920a144dee8342f296405d7946 (patch)
treeff7e1eae40135d380231ed682418ec53447a848b /httemplate/edit/cust_pay.cgi
parentf1802f4b19c6741b50007b56bbac13af61012fe5 (diff)
internationalization/localization, RT12515
Diffstat (limited to 'httemplate/edit/cust_pay.cgi')
-rwxr-xr-xhttemplate/edit/cust_pay.cgi44
1 files changed, 21 insertions, 23 deletions
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi
index 638679a46..353a04106 100755
--- a/httemplate/edit/cust_pay.cgi
+++ b/httemplate/edit/cust_pay.cgi
@@ -1,12 +1,12 @@
% if ( $link eq 'popup' ) {
- <% include('/elements/header-popup.html', $title ) %>
+ <& /elements/header-popup.html, $title &>
% } else {
- <% include("/elements/header.html", $title, '') %>
+ <& /elements/header.html, $title, '' &>
% }
-<% include('/elements/init_calendar.html') %>
+<& /elements/init_calendar.html &>
-<% include('/elements/error.html') %>
+<& /elements/error.html &>
% unless ( $link eq 'popup' ) {
<% small_custview($custnum, $conf->config('countrydefault')) %>
@@ -20,14 +20,14 @@
<BR><BR>
-Payment
+<% mt('Payment') |h %>
<% ntable("#cccccc", 2) %>
<TR>
- <TD ALIGN="right">Date</TD>
+ <TD ALIGN="right"><% mt('Date') |h %></TD>
<TD COLSPAN=2>
<INPUT TYPE="text" NAME="_date" ID="_date_text" VALUE="<% time2str($date_format.' %r',$_date) %>">
- <IMG SRC="../images/calendar.png" ID="_date_button" STYLE="cursor: pointer" TITLE="Select date">
+ <IMG SRC="../images/calendar.png" ID="_date_button" STYLE="cursor: pointer" TITLE="<% mt('Select date') |h %>">
</TD>
</TR>
@@ -41,20 +41,19 @@ Payment
</SCRIPT>
<TR>
- <TD ALIGN="right">Amount</TD>
+ <TD ALIGN="right"><% mt('Amount') |h %></TD>
<TD BGCOLOR="#ffffff" ALIGN="right"><% $money_char %></TD>
<TD><INPUT TYPE="text" NAME="paid" VALUE="<% $paid %>" SIZE=8 MAXLENGTH=9> by <B><% FS::payby->payname($payby) %></B></TD>
</TR>
- <% include('/elements/tr-select-discount_term.html',
+ <& /elements/tr-select-discount_term.html,
'custnum' => $custnum,
'cgi' => $cgi
- )
- %>
+ &>
% if ( $payby eq 'BILL' ) {
<TR>
- <TD ALIGN="right">Check #</TD>
+ <TD ALIGN="right"><% mt('Check #') |h %></TD>
<TD COLSPAN=2><INPUT TYPE="text" NAME="payinfo" VALUE="<% $payinfo %>" SIZE=10></TD>
</TR>
% }
@@ -62,16 +61,16 @@ Payment
<TR>
% if ( $link eq 'custnum' || $link eq 'popup' ) {
- <TD ALIGN="right">Auto-apply<BR>to invoices</TD>
+ <TD ALIGN="right"><% mt('Auto-apply to invoices') |h %></TD>
<TD COLSPAN=2>
<SELECT NAME="apply">
- <OPTION VALUE="yes" SELECTED>yes
- <OPTION>no</SELECT>
+ <OPTION VALUE="yes" SELECTED><% mt('yes') |h %>
+ <OPTION><% mt('no') |h %></SELECT>
</TD>
% } elsif ( $link eq 'invnum' ) {
- <TD ALIGN="right">Apply to</TD>
+ <TD ALIGN="right"><% mt('Apply to') |h %></TD>
<TD COLSPAN=2 BGCOLOR="#ffffff">Invoice #<B><% $linknum %></B> only</TD>
<INPUT TYPE="hidden" NAME="apply" VALUE="no">
@@ -79,11 +78,10 @@ Payment
</TR>
% if ( $conf->exists('pkg-balances') ) {
- <% include('/elements/tr-select-cust_pkg-balances.html',
+ <& /elements/tr-select-cust_pkg-balances.html,
'custnum' => $custnum,
'cgi' => $cgi
- )
- %>
+ &>
% } else {
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="">
% }
@@ -91,7 +89,7 @@ Payment
</TABLE>
<BR>
-<INPUT TYPE="submit" VALUE="Post payment">
+<INPUT TYPE="submit" VALUE="<% mt('Post payment') |h %>">
</FORM>
@@ -99,7 +97,7 @@ Payment
</BODY>
</HTML>
% } else {
- <% include('/elements/footer.html') %>
+ <& /elements/footer.html &>
% }
<%init>
@@ -144,8 +142,8 @@ die "access denied"
my $paybatch = "webui-$_date-$$-". rand() * 2**32;
-my $title = 'Post '. FS::payby->payname($payby). ' payment';
-$title .= " against Invoice #$linknum" if $link eq 'invnum';
+my $title = emt('Post '. FS::payby->payname($payby). ' payment');
+$title .= emt(" against Invoice #[_1]",$linknum) if $link eq 'invnum';
my $custnum;
if ( $link eq 'invnum' ) {