Bugzilla – Attachment 113258 Details for
Bug 25067
Move PO file manipulation code into gulp tasks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25067: Fix perlcritic errors
Bug-25067-Fix-perlcritic-errors.patch (text/plain), 1.93 KB, created by
Jonathan Druart
on 2020-11-06 16:07:05 UTC
(
hide
)
Description:
Bug 25067: Fix perlcritic errors
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-11-06 16:07:05 UTC
Size:
1.93 KB
patch
obsolete
>From 026beee0f75fcebb9bd4414d3ae541e22ac2145b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 6 Nov 2020 17:06:44 +0100 >Subject: [PATCH] Bug 25067: Fix perlcritic errors > >--- > misc/translator/xgettext-installer | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/misc/translator/xgettext-installer b/misc/translator/xgettext-installer >index fd9dc29c8e..79be95798c 100755 >--- a/misc/translator/xgettext-installer >+++ b/misc/translator/xgettext-installer >@@ -121,7 +121,7 @@ for my $file (@files) { > # discard non strings > next if ( $line =~ /^(\s|%s|-|[[:punct:]]|\(|\))*$/ or length($line) < 2 ); > if ( not $pot->{$line} ) { >- my $msg = new Locale::PO( >+ my $msg = Locale::PO->new( > -msgid => $line, > -msgstr => '', > -reference => "$file:$table_name:$tablec:row:$rowc:mul:$mulc" >@@ -130,7 +130,7 @@ for my $file (@files) { > } > } > } elsif (defined $row->{$field} && length($row->{$field}) > 1 && !$pot->{ $row->{$field} }) { >- my $msg = new Locale::PO( >+ my $msg = Locale::PO->new( > -msgid => $row->{$field}, > -msgstr => '', > -reference => "$file:$table_name:$tablec:row:$rowc" >@@ -145,7 +145,7 @@ for my $file (@files) { > for my $description ( @{ $yaml->{'description'} } ) { > $desccount++; > if ( length($description) > 1 and not $pot->{$description} ) { >- my $msg = new Locale::PO( >+ my $msg = Locale::PO->new( > -msgid => $description, > -msgstr => '', > -reference => "$file:description:$desccount" >-- >2.20.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 25067
:
102432
|
103383
|
103403
|
103404
|
103440
|
103557
|
103558
|
103562
|
103563
|
103564
|
103565
|
103566
|
106503
|
106504
|
106505
|
106506
|
106507
|
106807
|
109272
|
109273
|
109274
|
109275
|
109276
|
109277
|
109295
|
109296
|
109297
|
110011
|
110012
|
110013
|
110014
|
110015
|
110016
|
110017
|
110018
|
110019
|
110776
|
111642
|
111643
|
113252
|
113255
| 113258