[freeside-commits] branch FREESIDE_4_BRANCH updated. 99907efacb1ef0da6125cc91db24dc48a347197d
Ivan
ivan at 420.am
Mon Mar 21 13:39:11 PDT 2016
The branch, FREESIDE_4_BRANCH has been updated
via 99907efacb1ef0da6125cc91db24dc48a347197d (commit)
from a4bdd078d5394aef60373f4a799aaaa24db688d3 (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 99907efacb1ef0da6125cc91db24dc48a347197d
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Mar 21 13:39:10 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