Changeset 31087 in osm for applications/editors/josm/i18n


Ignore:
Timestamp:
2015-04-18T22:40:18+02:00 (9 years ago)
Author:
stoecker
Message:

see #josm11148 - fix dialects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/i18n.pl

    r31086 r31087  
    88my $waswarn = 0;
    99my $maxcount = 0;
    10 my $lang_pattern = '(.._..|...?|ca\@valencia)';
     10my $lang_pattern = '([a-z]{2}_[A-Z]{2}|[a-z]{2,3}|[a-z]{2}\@[a-z]+)';
    1111
    1212main();
     
    3636      my %postate = (last => "", type => "");
    3737      my $linenum = 0;
    38       print "Reading file $file\n";
     38      print "Reading file $file (lang $l)\n";
    3939      while(<FILE>)
    4040      {
     
    262262    my $la;
    263263    my $cnt = 0;
    264     if($file =~ /[-_]$lang_pattern\.lang$/ || $file =~ /^(?:.*\/)?$lang_pattern\.lang$/)
     264    if($file =~ /^(?:.*\/)?$lang_pattern\.lang$/)
    265265    {
    266266      $la = $1;
Note: See TracChangeset for help on using the changeset viewer.