diff options
author | jeff <jeff> | 2007-04-27 22:54:50 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-04-27 22:54:50 +0000 |
commit | ca87d33422b2d19d28773b6f2937cdb84863b124 (patch) | |
tree | 2907d7f8d53db080ec90ab671778675b14200131 /httemplate/edit/cust_main | |
parent | 905187f976c20e261b0b7dfdc6c6f30acbc12592 (diff) |
adjust default labelling
Diffstat (limited to 'httemplate/edit/cust_main')
-rw-r--r-- | httemplate/edit/cust_main/contact.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index 6efad4405..58fee3291 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -151,10 +151,18 @@ my @counties = counties( $cust_main->get($pre.'state'), ); my $county_style = scalar(@counties) > 1 ? '' : 'STYLE="visibility:hidden"'; -my $daytime_label = FS::Msgcat::_gettext('daytime') || 'Day Phone'; -my $night_label = FS::Msgcat::_gettext('night') || 'Night Phone'; -my $stateid_label = FS::Msgcat::_gettext('stateid') || 'Driver’s License'; -my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') || 'Driver’s License State'; +my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/ + ? 'Day Phone' + : FS::Msgcat::_gettext('daytime'); +my $night_label = FS::Msgcat::_gettext('night') =~/^(night)?$/ + ? 'Night Phone' + : FS::Msgcat::_gettext('night') || 'Night Phone'; +my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/ + ? 'Driver’s License' + : FS::Msgcat::_gettext('stateid') || 'Driver’s License'; +my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_state)?$/ + ? 'Driver’s License State' + : FS::Msgcat::_gettext('stateid_state') || 'Driver’s License State'; my $r = qq!<font color="#ff0000">*</font> !; |