diff options
author | ivan <ivan> | 2002-10-12 13:46:16 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-10-12 13:46:16 +0000 |
commit | ac96a7afbae06cc3b594b3e461bec8a34d65cfe5 (patch) | |
tree | 69adb82e4554dc256b10b8f91501ba123abaa34f /httemplate/view/cust_main.cgi | |
parent | 6f8a6c416174bcf8095c959085d14ba820425aad (diff) |
dayphone/nightphone as customizable labels, closes: Bug#464
Diffstat (limited to 'httemplate/view/cust_main.cgi')
-rwxr-xr-x | httemplate/view/cust_main.cgi | 10 |
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 || ' ', '</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 || ' ', '</TD></TR>', '<TR><TD ALIGN="right">Fax</TD><TD COLSPAN=5 BGCOLOR="#ffffff">', $cust_main->fax || ' ', '</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") || ' ', '</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") || ' ', '</TD></TR>', '<TR><TD ALIGN="right">Fax</TD><TD COLSPAN=5 BGCOLOR="#ffffff">', |