Bugzilla – Attachment 177696 Details for
Bug 39077
Translation script raises warnings for obsolete translations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39077: Do not complain about obsolete translations
Bug-39077-Do-not-complain-about-obsolete-translati.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2025-02-10 14:17:41 UTC
(
hide
)
Description:
Bug 39077: Do not complain about obsolete translations
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-02-10 14:17:41 UTC
Size:
1.19 KB
patch
obsolete
>From 9046a17534b0cc868e147b1287a720d69d4440e2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39077
:
177696
|
177699