From cf56c281cb5054022e986de58ca288c71f939474 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 17 Nov 2007 16:50:02 +0100 Subject: [PATCH] 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. --- lib/Packages/Page.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2