[freeside-commits] branch FREESIDE_3_BRANCH updated. 3893d4aa23fe206ed319389617c798c053692b78

Ivan ivan at 420.am
Mon Mar 21 13:39:12 PDT 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  3893d4aa23fe206ed319389617c798c053692b78 (commit)
      from  0386bd107898cbfc728454d99e98db48ce15ace5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3893d4aa23fe206ed319389617c798c053692b78
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Mar 21 13:39:11 2016 -0700

    optimize customer list, RT#20173

diff --git a/FS/FS/Msgcat.pm b/FS/FS/Msgcat.pm
index ce0fa78..1978aa7 100644
--- a/FS/FS/Msgcat.pm
+++ b/FS/FS/Msgcat.pm
@@ -1,7 +1,7 @@
 package FS::Msgcat;
 
 use strict;
-use vars qw( @ISA @EXPORT_OK $conf $def_locale $debug );
+use vars qw( @ISA @EXPORT_OK $conf $def_locale $debug @translate_auto_insert );
 use Exporter;
 use FS::UID;
 #use FS::Record qw( qsearchs ); # wtf?  won't import...
@@ -17,7 +17,8 @@ FS::UID->install_callback( sub {
   die $@ if $@;
   $conf = new FS::Conf;
   $def_locale = $conf->config('locale') || 'en_US';
-  $debug = $conf->exists('show-msgcat-codes')
+  $debug = $conf->exists('show-msgcat-codes');
+  @translate_auto_insert = $conf->config('translate-auto-insert');
 });
 
 =head1 NAME
@@ -77,7 +78,6 @@ sub _gettext {
       unless $locale eq 'en_US';
     $cache{$locale}->{$msgcode} = $msgcode;
 
-    my @translate_auto_insert = $conf->config('translate-auto-insert');
     if ( $locale ne 'en_US' && grep { $_ eq $locale } @translate_auto_insert ) {
 
         # :(

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Msgcat.pm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list