From: Frank Lichtenheld Date: Sat, 17 Nov 2007 15:50:02 +0000 (+0100) Subject: Packages::Page: How to translate a single string? X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=cf56c281cb5054022e986de58ca288c71f939474;p=deb%2Fpackages.git Packages::Page: How to translate a single string? I have no idea how to get a Locale::Maketext object here but the string is not that important anyway. Marked it N_ to keep existing translations around but don't translate it for now. --- diff --git a/lib/Packages/Page.pm b/lib/Packages/Page.pm index 946a5a4..92242f3 100644 --- a/lib/Packages/Page.pm +++ b/lib/Packages/Page.pm @@ -5,9 +5,9 @@ use warnings; use Data::Dumper; use Exporter; -use Locale::gettext; use Deb::Versions; use Packages::CGI; +use Packages::I18N::Locale; our @ISA = qw( Exporter ); our @EXPORT_OK = qw( split_name_mail parse_deps ); @@ -44,7 +44,7 @@ sub split_name_mail { $name = $string; $email = $string; } else { - $name = gettext( 'package has bad maintainer field' ); + $name = N_( 'package has bad maintainer field' ); $email = ''; } $name =~ s/\s+$//o;