[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-808-g345f2de

Jesse Vincent jesse at bestpractical.com
Sat Sep 18 23:59:47 EDT 2010


The branch, 3.9-trunk has been updated
       via  345f2de95a359a60512f0353230608803d6178a6 (commit)
       via  22185aac32713f13afcdc67c6069f94fe2c38db1 (commit)
      from  b1bc85e9b10b24732feec2f2d232508f581a3144 (commit)

Summary of changes:
 lib/RT.pm.in        |    2 +-
 lib/RT/Test.pm      |    2 ++
 t/shredder/utils.pl |    1 +
 3 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 22185aac32713f13afcdc67c6069f94fe2c38db1
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Sep 19 00:01:45 2010 -0400

    shredder only needs the english I18N

diff --git a/t/shredder/utils.pl b/t/shredder/utils.pl
index b05b42a..3c15332 100644
--- a/t/shredder/utils.pl
+++ b/t/shredder/utils.pl
@@ -97,6 +97,7 @@ sub rewrite_rtconfig
     config_set( '$LogToFile'      , 'debug' );
     my $fname = File::Spec->catfile(create_tmpdir(), test_name() .".log");
     config_set( '$LogToFileNamed' , $fname );
+    config_set('@LexiconLanguages', qw(en));
 }
 
 =head3 config_set

commit 345f2de95a359a60512f0353230608803d6178a6
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Sep 19 00:02:20 2010 -0400

    Move our I18N from LoadConfig to Init time, so that it's easier to control and happens later

diff --git a/lib/RT.pm.in b/lib/RT.pm.in
index 05ca34a..b754a12 100755
--- a/lib/RT.pm.in
+++ b/lib/RT.pm.in
@@ -169,7 +169,6 @@ sub LoadConfig {
         $gpgopts->{homedir} = File::Spec->catfile( $BasePath, $gpgopts->{homedir} );
     }
     
-    RT::I18N->Init;
     return $Config;
 }
 
@@ -192,6 +191,7 @@ sub Init {
     InitClasses();
     InitLogging(); 
     InitPlugins();
+    RT::I18N->Init;
     RT->Config->PostLoadCheck;
 
 }
diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 1d6e1d4..89465ce 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -168,6 +168,8 @@ sub import {
     $class->bootstrap_plugins( %args );
 
     RT::InitPlugins();
+    
+    RT::I18N->Init();
     RT->Config->PostLoadCheck;
 
     $class->set_config_wrapper;

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


More information about the Rt-commit mailing list