summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main.cgi
diff options
context:
space:
mode:
authorivan <ivan>2002-10-12 13:46:16 +0000
committerivan <ivan>2002-10-12 13:46:16 +0000
commitac96a7afbae06cc3b594b3e461bec8a34d65cfe5 (patch)
tree69adb82e4554dc256b10b8f91501ba123abaa34f /httemplate/view/cust_main.cgi
parent6f8a6c416174bcf8095c959085d14ba820425aad (diff)
dayphone/nightphone as customizable labels, closes: Bug#464
Diffstat (limited to 'httemplate/view/cust_main.cgi')
-rwxr-xr-xhttemplate/view/cust_main.cgi10
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index f7906cfa3..d157be397 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -83,9 +83,11 @@ print '</TR>',
$cust_main->country,
'</TD></TR>',
;
- print '<TR><TD ALIGN="right">Day Phone</TD><TD COLSPAN=5 BGCOLOR="#ffffff">',
+ my $daytime_label = gettext('daytime') || 'Day Phone';
+ my $night_label = gettext('night') || 'Night Phone';
+ print '<TR><TD ALIGN="right">$daytime_label</TD><TD COLSPAN=5 BGCOLOR="#ffffff">',
$cust_main->daytime || '&nbsp', '</TD></TR>',
- '<TR><TD ALIGN="right">Night Phone</TD><TD COLSPAN=5 BGCOLOR="#ffffff">',
+ '<TR><TD ALIGN="right">$night_label</TD><TD COLSPAN=5 BGCOLOR="#ffffff">',
$cust_main->night || '&nbsp', '</TD></TR>',
'<TR><TD ALIGN="right">Fax</TD><TD COLSPAN=5 BGCOLOR="#ffffff">',
$cust_main->fax || '&nbsp', '</TD></TR>',
@@ -122,10 +124,10 @@ print '</TR>',
$cust_main->get("${pre}country"),
'</TD></TR>',
;
- print '<TR><TD ALIGN="right">Day Phone</TD>',
+ print '<TR><TD ALIGN="right">$daytime_label</TD>',
'<TD COLSPAN=5 BGCOLOR="#ffffff">',
$cust_main->get("${pre}daytime") || '&nbsp', '</TD></TR>',
- '<TR><TD ALIGN="right">Night Phone</TD>'.
+ '<TR><TD ALIGN="right">$night_label</TD>'.
'<TD COLSPAN=5 BGCOLOR="#ffffff">',
$cust_main->get("${pre}night") || '&nbsp', '</TD></TR>',
'<TR><TD ALIGN="right">Fax</TD><TD COLSPAN=5 BGCOLOR="#ffffff">',