From: jeff Date: Fri, 27 Apr 2007 22:56:24 +0000 (+0000) Subject: adjust default labelling (backport) X-Git-Tag: freeside_1_7_3rc1~458 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=1a4615c5b473900e810154473f5e964e0b1ae8ea;p=freeside.git adjust default labelling (backport) --- diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index 024222d3a..ac0debd12 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -150,10 +150,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!* !;