Bugzilla – Attachment 47461 Details for
Bug 15687
Syntax errors in misc/translator/xgettext.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15687: Fix xgettext.pl syntax errors
Bug-15687-Fix-xgettextpl-syntax-errors.patch (text/plain), 1.51 KB, created by
Kyle M Hall (khall)
on 2016-01-29 12:03:37 UTC
(
hide
)
Description:
Bug 15687: Fix xgettext.pl syntax errors
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-01-29 12:03:37 UTC
Size:
1.51 KB
patch
obsolete
>From d2ff6dc6f401e17386bad3d7c852346e14f5fdae Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 28 Jan 2016 09:32:11 +0100 >Subject: [PATCH] Bug 15687: Fix xgettext.pl syntax errors > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/translator/xgettext.pl | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > >diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl >index 504dc9f..0b5e6d8 100755 >--- a/misc/translator/xgettext.pl >+++ b/misc/translator/xgettext.pl >@@ -48,14 +48,14 @@ sub token_negligible_p { > my($x) = @_; > my $t = $x->type; > return !$extract_all_p && ( >- $t == C4::TmplTokenType::TEXT? string_negligible_p( $x->string ): >- $t == C4::TmplTokenType::DIRECTIVE? 1: >- $t == C4::TmplTokenType::TEXT_PARAMETRIZED >+ $t == C4::TmplTokenType::TEXT() ? string_negligible_p( $x->string ) : >+ $t == C4::TmplTokenType::DIRECTIVE() ? 1 : >+ $t == C4::TmplTokenType::TEXT_PARAMETRIZED() > && join( '', map { my $t = $_->type; >- $t == C4::TmplTokenType::DIRECTIVE? >- '1': $t == C4::TmplTokenType::TAG? >- '': token_negligible_p( $_ )? >- '': '1' } @{$x->children} ) eq '' ); >+ $t == C4::TmplTokenType::DIRECTIVE() ? >+ '1' : $t == C4::TmplTokenType::TAG() ? >+ '' : token_negligible_p( $_ ) ? >+ '' : '1' } @{$x->children} ) eq '' ); > } > > ############################################################################### >-- >2.1.4
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 15687
:
47370
|
47381
| 47461 |
47462