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> (cherry picked from commit70112cfb81) Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> (cherry picked from commitaf24e8ee01) Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
23716ebcc3
commit
eca6afb662
|
|
@ -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 '' );
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
|
|
|||
Loading…
Reference in New Issue