Bugzilla – Attachment 177699 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.25 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-02-10 14:42:35 UTC
(
hide
)
Description:
Bug 39077: Do not complain about obsolete translations
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-02-10 14:42:35 UTC
Size:
1.25 KB
patch
obsolete
>From bfce367e2b35cd70df6b9b8dbfa35e342150ade1 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 > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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.48.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