Changeset 31088 in osm for applications/editors


Ignore:
Timestamp:
2015-04-18T23:37:12+02:00 (10 years ago)
Author:
stoecker
Message:

see #josm11148 - fix dialects

File:
1 edited

Legend:

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

    r31087 r31088  
    99my $maxcount = 0;
    1010my $lang_pattern = '([a-z]{2}_[A-Z]{2}|[a-z]{2,3}|[a-z]{2}\@[a-z]+)';
     11my $lang_pattern_file = '([a-z]{2}_[A-Z]{2}|[a-z]{2,3}|[a-z]{2}-[a-z]+)';
    1112
    1213main();
     
    262263    my $la;
    263264    my $cnt = 0;
    264     if($file =~ /^(?:.*\/)?$lang_pattern\.lang$/)
     265    if($file =~ /^(?:.*\/)?$lang_pattern_file\.lang$/)
    265266    {
    266267      $la = $1;
     268      $la =~ s/-/\@/;
    267269    }
    268270    else
     
    370372  foreach my $la (sort keys %lang)
    371373  {
     374    $la =~ s/\@/-/;
    372375    push(@clang, "${basename}$la.lang");
    373376  }
Note: See TracChangeset for help on using the changeset viewer.