1 package Packages::I18N::Locale;
6 use base 'Locale::Maketext';
7 use Locale::Maketext::Lexicon {
8 'en' => [Gettext => "%TOPDIR%/po/pdo.pot",
9 Gettext => "%TOPDIR%/po/templates.pot",
10 Gettext => "%TOPDIR%/po/langs.pot",
11 Gettext => "%TOPDIR%/po/sections.pot",
12 Gettext => "%TOPDIR%/po/debtags.pot"],
13 '*' => [Gettext => "%TOPDIR%/po/pdo.*.po",
14 Gettext => "%TOPDIR%/po/templates.*.po",
15 Gettext => "%TOPDIR%/po/langs.*.po",
16 Gettext => "%TOPDIR%/po/sections.*.po",
17 Gettext => "%TOPDIR%/po/debtags.*.po"],
24 our @EXPORT = qw( N_ );
26 sub N_ { return $_[0]; }
29 my ($self, $format, @args) = @_;
30 my $result = $self->maketext($format, @args);
31 return sprintf($result, @args) if $result =~ /%[su]/o;