[freeside-commits] branch master updated. 0e56763a6b3898632d6f0c20c454eed9b0169342
Ivan
ivan at 420.am
Mon Mar 21 13:39:10 PDT 2016
The branch, master has been updated
via 0e56763a6b3898632d6f0c20c454eed9b0169342 (commit)
from 65dd57a36ff200b942f9c45176ea50e185020a74 (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 0e56763a6b3898632d6f0c20c454eed9b0169342
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Mar 21 13:39:09 2016 -0700
optimize customer list, RT#20173
diff --git a/FS/FS/Msgcat.pm b/FS/FS/Msgcat.pm
index b6f36bf..e1bde8b 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