Bugzilla – Attachment 176504 Details for
Bug 38871
sub string_list in misc/translator/xgettext.pl never used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38871: Remove sub string_list from misc/translator/xgettext.pl
Bug-38871-Remove-sub-stringlist-from-misctranslato.patch (text/plain), 1.45 KB, created by
Thibault Keromnès
on 2025-01-14 14:08:06 UTC
(
hide
)
Description:
Bug 38871: Remove sub string_list from misc/translator/xgettext.pl
Filename:
MIME Type:
Creator:
Thibault Keromnès
Created:
2025-01-14 14:08:06 UTC
Size:
1.45 KB
patch
obsolete
>From 91a58179a4908d66e4525d09d5aa830f1be03339 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 9 Jan 2025 22:38:50 +0100 >Subject: [PATCH] Bug 38871: Remove sub string_list from > misc/translator/xgettext.pl > >It is never used > >% git grep string_list >should not return anything > >Signed-off-by: Thibault Keromnes <thibault.keromnes@univ-paris8.fr> >--- > misc/translator/xgettext.pl | 17 ----------------- > 1 file changed, 17 deletions(-) > >diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl >index bcf6601967..1891c1bb23 100755 >--- a/misc/translator/xgettext.pl >+++ b/misc/translator/xgettext.pl >@@ -97,23 +97,6 @@ sub remember { > > ############################################################################### > >-sub string_list { >- my @t = keys %text; >- # The real gettext tools seems to sort case sensitively; I don't know why >- @t = sort { $a cmp $b } @t if $sort eq 's'; >- @t = sort { >- my @aa = sort { $a->pathname cmp $b->pathname >- || $a->line_number <=> $b->line_number } @{$text{$a}}; >- my @bb = sort { $a->pathname cmp $b->pathname >- || $a->line_number <=> $b->line_number } @{$text{$b}}; >- $aa[0]->pathname cmp $bb[0]->pathname >- || $aa[0]->line_number <=> $bb[0]->line_number; >- } @t if $sort eq 'F'; >- return @t; >-} >- >- ############################################################################### >- > sub text_extract { > my($h) = @_; > for (;;) { >-- >2.39.5
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 38871
:
176433
|
176504
|
176868