Ignore:
Timestamp:
2015-05-02T15:15:29+02:00 (11 years ago)
Author:
stoecker
Message:

major speedup of i18n process, add some new features, split core translations into two parts

File:
1 edited

Legend:

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

    r31076 r31111  
    140140    # display_values / values
    141141    my $sp = ($line =~ /delimiter="(.*?)"/) ? $1 : ($type eq "combo" ? ",":";");
    142     my $vals = ($line =~ /display_values="(.*?)"/) ? $1 : ($line =~ /values="(.*?)"/) ? $1 : undef;
     142    my $vals = ($line =~ / display_values="(.*?)"/) ? $1 : ($line =~ /values="(.*?)"/) ? $1 : undef;
    143143    if($vals)
    144144    {
     
    184184    print "\n";
    185185  }
    186   elsif($line =~ /<\/combo/)
     186  elsif($line =~ /<\/(combo|multiselect)/)
    187187  {
    188188    $combo_n = "";
     
    212212     || $comment)
    213213  {
    214     print "// $line\n";
     214    $line =~ s/[ \t]+((?:short)?description) *= *"([^"]+)/*\/ \/* $1 *\/ tr("$2"); \/*/g;
     215    print "/* $line */\n";
    215216  }
    216217  else
Note: See TracChangeset for help on using the changeset viewer.