From 09a39ee5d830aa05d4b6526c74f61dd956b04215 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 3 Oct 2008 12:03:15 +0200 Subject: [PATCH] Packages::Template::languages(): Do not die if no language name is defined --- lib/Packages/Template.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Packages/Template.pm b/lib/Packages/Template.pm index b48e690..1a6aa0c 100644 --- a/lib/Packages/Template.pm +++ b/lib/Packages/Template.pm @@ -128,7 +128,8 @@ sub languages { my @printed_langs = (); foreach (@used_langs) { next if $_ eq $skip_lang; # Don't print the current language - unless (get_selfname($_)) { warn "missing language $_"; next } #DEBUG + unless (get_selfname($_)) { warn "missing language selfname $_"; next } #DEBUG + unless (get_language_name($_)) { warn "missing language name $_"; next } #DEBUG push @printed_langs, $_; } return [] unless scalar @printed_langs; -- 2.39.2