[Rt-commit] r14535 - rt/3.8/trunk/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Fri Jul 25 19:56:57 EDT 2008
Author: ruz
Date: Fri Jul 25 19:56:57 2008
New Revision: 14535
Modified:
rt/3.8/trunk/lib/RT/I18N.pm
Log:
* fix po for plugins
Modified: rt/3.8/trunk/lib/RT/I18N.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/I18N.pm (original)
+++ rt/3.8/trunk/lib/RT/I18N.pm Fri Jul 25 19:56:57 2008
@@ -112,17 +112,18 @@
require $file;
}
+ my %import;
+ foreach my $l ( @lang ) {
+ $import{$l} = [
+ Gettext => (substr(__FILE__, 0, -3) . "/$l.po"),
+ Gettext => "$RT::LocalLexiconPath/*/$l.po",
+ Gettext => "$RT::LocalLexiconPath/$l.po",
+ ];
+ push @{ $import{$l} }, map {(Gettext => "$_/$l.po")} RT->PluginDirs('po');
+ }
+
# Acquire all .po files and iterate them into lexicons
- Locale::Maketext::Lexicon->import({
- _decode => 1,
- map {
- $_ => [
- Gettext => (substr(__FILE__, 0, -3) . "/$_.po"),
- Gettext => "$RT::LocalLexiconPath/*/$_.po",
- Gettext => "$RT::LocalLexiconPath/$_.po",
- ],
- } @lang
- });
+ Locale::Maketext::Lexicon->import({ _decode => 1, %import });
return 1;
}
More information about the Rt-commit
mailing list