diff options
-rwxr-xr-x | bin/populate-msgcat | 8 | ||||
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 11 | ||||
-rwxr-xr-x | httemplate/view/cust_main.cgi | 10 |
3 files changed, 21 insertions, 8 deletions
diff --git a/bin/populate-msgcat b/bin/populate-msgcat index 3b198f718..719d33046 100755 --- a/bin/populate-msgcat +++ b/bin/populate-msgcat @@ -110,6 +110,14 @@ sub messages { 'en_US' => 'Expired card', }, + 'daytime' => { + 'en_US' => 'Day Phone', + }, + + 'night' => { + 'en_US' => 'Night Phone', + }, + ); } diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 9e62b00ef..d99b54aed 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -195,10 +195,13 @@ my($daytime,$night,$fax)=( $cust_main->fax, ); +my $daytime_label = gettext('daytime') || 'Day Phone'; +my $night_label = gettext('night') || 'Night Phone'; + print <<END; <TR><TH ALIGN="right">${r}Country</TH><TD>$country_html</TD></TR> -<TR><TD ALIGN="right">Day Phone</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="daytime" VALUE="$daytime" SIZE=18></TD></TR> -<TR><TD ALIGN="right">Night Phone</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="night" VALUE="$night" SIZE=18></TD></TR> +<TR><TD ALIGN="right">$daytime_label</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="daytime" VALUE="$daytime" SIZE=18></TD></TR> +<TR><TD ALIGN="right">$night_label</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="night" VALUE="$night" SIZE=18></TD></TR> <TR><TD ALIGN="right">Fax</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="fax" VALUE="$fax" SIZE=12></TD></TR> END @@ -294,8 +297,8 @@ END print <<END; <TR><TH ALIGN="right">${r}Country</TH><TD>$ship_country_html</TD></TR> - <TR><TD ALIGN="right">Day Phone</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="ship_daytime" VALUE="$ship_daytime" SIZE=18 onChange="changed(this)"></TD></TR> - <TR><TD ALIGN="right">Night Phone</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="ship_night" VALUE="$ship_night" SIZE=18 onChange="changed(this)"></TD></TR> + <TR><TD ALIGN="right">$daytime_label</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="ship_daytime" VALUE="$ship_daytime" SIZE=18 onChange="changed(this)"></TD></TR> + <TR><TD ALIGN="right">$night_label</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="ship_night" VALUE="$ship_night" SIZE=18 onChange="changed(this)"></TD></TR> <TR><TD ALIGN="right">Fax</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="ship_fax" VALUE="$ship_fax" SIZE=12 onChange="changed(this)"></TD></TR> END 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">', |