Changeset 45c9d00 in git


Ignore:
Timestamp:
19/01/14 00:52:23 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
e521b8e0
Parents:
d752afd
Message:

lib/po-to-msg.pl: Fix menu shortcut check to allow for non-ASCII
shortcuts. Remove code to check for menu shortcuts marked with '@'
as we no longer do that.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rd752afd r45c9d00  
     1Sun Jan 19 00:51:33 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * lib/po-to-msg.pl: Fix menu shortcut check to allow for non-ASCII
     4          shortcuts.  Remove code to check for menu shortcuts marked with '@'
     5          as we no longer do that.
     6
    17Sat Jan 18 23:24:47 GMT 2014  Olly Betts <olly@survex.com>
    28
  • lib/po-to-msg.pl

    rd752afd r45c9d00  
    176176   }
    177177
    178    # Check for missing (or added) menu shortcut (@)
    179    if ($msg =~ /\@[A-Za-z]/ && $orig !~ /\@[A-Za-z]/) {
     178   # Check for missing (or added) menu shortcut (&)
     179   if ($msg =~ /\&[A-Za-z\xc2-\xf4]/ && $orig !~ /\&[A-Za-z]/) {
    180180       print STDERR "Warning: $where has menu shortcut but original doesn't\n";
    181    } elsif ($msg !~ /\@[A-Za-z]/ && $orig =~ /\@[A-Za-z]/) {
    182        print STDERR "Warning: $where is missing menu shortcut\n";
    183    }
    184 
    185    # Check for missing (or added) menu shortcut (&)
    186    if ($msg =~ /\&[A-Za-z]/ && $orig !~ /\&[A-Za-z]/) {
    187        print STDERR "Warning: $where has menu shortcut but original doesn't\n";
    188    } elsif ($msg !~ /\&[A-Za-z]/ && $orig =~ /\&[A-Za-z]/) {
     181   } elsif ($msg !~ /\&[A-Za-z\xc2-\xf4]/ && $orig =~ /\&[A-Za-z]/) {
    189182       print STDERR "Warning: $where is missing menu shortcut\n";
    190183   }
Note: See TracChangeset for help on using the changeset viewer.