From: Kornel Benko Date: Thu, 21 Dec 2017 11:01:14 +0000 (+0100) Subject: pocheck.pl: checking for shortcuts using '&' X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4162 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a012e415498c354b753e3be7a84af5144dbeab2d;p=lyx.git pocheck.pl: checking for shortcuts using '&' '&&' is not a shorcut --- diff --git a/po/pocheck.pl b/po/pocheck.pl index 44d077d6ca..d1bd5231bb 100755 --- a/po/pocheck.pl +++ b/po/pocheck.pl @@ -175,7 +175,7 @@ foreach my $pofilename ( @ARGV ) { if ($check_qt) { # Check for "&" shortcuts - if ( ( $msgid =~ m/&[^ ]/ ) != ( $msgstr =~ m/&[^ ]/ ) ) { + if ( ( $msgid =~ m/&[^ &]/ ) != ( $msgstr =~ m/&[^ &]/ ) ) { print "Line $linenum: Missing or unexpected Qt shortcut:\n '$msgid' => '$msgstr'\n" unless $only_total; ++$bad{"Bad Qt shortcuts"};