]> git.lyx.org Git - features.git/blobdiff - po/pocheck.pl
pocheck.pl: checking for shortcuts using '&'
[features.git] / po / pocheck.pl
index 44d077d6ca50f6cb5711f4523ec0f2c265d643dc..d1bd5231bb2b3c324bbf7dcb69605a114cefbac9 100755 (executable)
@@ -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"};