[Rt-commit] rt branch, 4.0/po-local-override, created. rt-4.0.0rc4-54-g25e298a

Alex Vandiver alexmv at bestpractical.com
Tue Feb 15 14:18:40 EST 2011


The branch, 4.0/po-local-override has been created
        at  25e298a83136ab488e3f88d31fdff16e3b833cfa (commit)

- Log -----------------------------------------------------------------
commit 25e298a83136ab488e3f88d31fdff16e3b833cfa
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date:   Mon Feb 14 10:26:56 2011 +0100

    Load "local" po files after plugins po files so it's possible to override those last ones

diff --git a/lib/RT/I18N.pm b/lib/RT/I18N.pm
index fd8ef11..3e53054 100644
--- a/lib/RT/I18N.pm
+++ b/lib/RT/I18N.pm
@@ -117,10 +117,10 @@ sub Init {
     foreach my $l ( @lang ) {
         $import{$l} = [
             Gettext => $RT::LexiconPath."/$l.po",
-            Gettext => $RT::LocalLexiconPath."/*/$l.po",
-            Gettext => $RT::LocalLexiconPath."/$l.po",
         ];
         push @{ $import{$l} }, map {(Gettext => "$_/$l.po")} RT->PluginDirs('po');
+        push @{ $import{$l} }, (Gettext => $RT::LocalLexiconPath."/*/$l.po",
+                                Gettext => $RT::LocalLexiconPath."/$l.po");
     }
 
     # Acquire all .po files and iterate them into lexicons

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


More information about the Rt-commit mailing list