diff options
author | ivan <ivan> | 2002-10-12 14:21:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-10-12 14:21:17 +0000 |
commit | dcef219e16a1b4b6d552b8ea2ae17fd58fb2be3a (patch) | |
tree | ed705231d98f512ff5265315a63c7e399c5fe529 /httemplate | |
parent | ac96a7afbae06cc3b594b3e461bec8a34d65cfe5 (diff) |
fix dayphone/nightphone msgcat
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 4 | ||||
-rwxr-xr-x | httemplate/view/cust_main.cgi | 14 |
2 files changed, 10 insertions, 8 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index d99b54aed..8f2fe7cee 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -195,8 +195,8 @@ my($daytime,$night,$fax)=( $cust_main->fax, ); -my $daytime_label = gettext('daytime') || 'Day Phone'; -my $night_label = gettext('night') || 'Night Phone'; +my $daytime_label = FS::Msgcat::_gettext('daytime') || 'Day Phone'; +my $night_label = FS::Msgcat::_gettext('night') || 'Night Phone'; print <<END; <TR><TH ALIGN="right">${r}Country</TH><TD>$country_html</TD></TR> diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index d157be397..a1a47ea74 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -83,11 +83,13 @@ print '</TR>', $cust_main->country, '</TD></TR>', ; - 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">', + my $daytime_label = FS::Msgcat::_gettext('daytime') || 'Day Phone'; + my $night_label = FS::Msgcat::_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_label</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>', @@ -124,10 +126,10 @@ print '</TR>', $cust_main->get("${pre}country"), '</TD></TR>', ; - print '<TR><TD ALIGN="right">$daytime_label</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_label</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">', |