[freeside-commits] freeside/httemplate/edit/cust_main contact.html, 1.6.2.1, 1.6.2.2

Jeff Finucane,420,, jeff at wavetail.420.am
Fri Apr 27 15:56:26 PDT 2007


Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main
In directory wavetail:/tmp/cvs-serv28940

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	contact.html 
Log Message:
adjust default labelling (backport)

Index: contact.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/contact.html,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -d -r1.6.2.1 -r1.6.2.2
--- contact.html	24 Apr 2007 22:36:24 -0000	1.6.2.1
+++ contact.html	27 Apr 2007 22:56:24 -0000	1.6.2.2
@@ -150,10 +150,18 @@
                        );
 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>&nbsp;!;
 



More information about the freeside-commits mailing list