[Rt-commit] rt branch, 4.0/po-local-override, created. rt-4.0.0rc4-80-g73dc2d4
Emannuel Lacour
elacour at bestpractical.com
Mon Feb 14 04:28:07 EST 2011
The branch, 4.0/po-local-override has been created
at 73dc2d415fe0219452b09bb9d074686ca5a57080 (commit)
- Log -----------------------------------------------------------------
commit 73dc2d415fe0219452b09bb9d074686ca5a57080
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