mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* pocheck.pl: re-introduce check for '|' shortcuts
which are not only used by the former xforms frontend but also in the menus git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14484 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d889b1cebf
commit
66662d3f26
@ -81,9 +81,18 @@ foreach $pofilename ( @ARGV )
|
||||
$warn++;
|
||||
}
|
||||
|
||||
# Check for "|..." shortcuts
|
||||
if ( ( $msgid =~ m/\|[^ ]/ ) != ( $msgstr =~ m/\|[^ ]/ ) ) {
|
||||
print( "Missing or unexpected menu shortcut:\n" );
|
||||
print( " '$msgid' => '$msgstr'\n" );
|
||||
$warn++;
|
||||
}
|
||||
|
||||
$msgid_clean = lc($msgid);
|
||||
$msgstr_clean = lc($msgstr);
|
||||
|
||||
$msgid_clean =~ s/(.*)\|.*?$/$1/; # strip menu shortcuts
|
||||
$msgstr_clean =~ s/(.*)\|.*?$/$1/;
|
||||
$msgid_clean =~ s/&([^ ])/$1/; # strip Qt shortcuts
|
||||
$msgstr_clean =~ s/&([^ ])/$1/;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user