From 9046a17534b0cc868e147b1287a720d69d4440e2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 10 Feb 2025 15:17:24 +0100 Subject: [PATCH] Bug 39077: Do not complain about obsolete translations --- misc/translator/tmpl_process3.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl index 5e4865d6a9f..b1f7cff76f8 100755 --- a/misc/translator/tmpl_process3.pl +++ b/misc/translator/tmpl_process3.pl @@ -314,9 +314,11 @@ if (defined $href) { for my $msg ( values %$href ) { my $id_count = split(/%s/, $msg->{msgid}) - 1; my $str_count = split(/%s/, $msg->{msgstr}) - 1; - next if $id_count == $str_count || - $msg->{msgstr} eq '""' || - grep { /fuzzy/ } @{$msg->{_flags}}; + next + if $id_count == $str_count + || $msg->{msgstr} eq '""' + || $msg->{obsolete} + || grep { /fuzzy/ } @{ $msg->{_flags} }; warn_normal( "unconsistent %s count: ($id_count/$str_count):\n" . " line: " . $msg->{loaded_line_number} . "\n" . -- 2.34.1