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


Ignore:
Timestamp:
2011-08-28T14:46:27+02:00 (13 years ago)
Author:
stoecker
Message:

add identical marker for translation, so translation statistics can be extracted from data file

File:
1 edited

Legend:

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

    r26344 r26586  
    203203sub checkstring
    204204{
    205   my ($la, $tr, $en, $cnt, $en1) = @_;
     205  my ($la, $tr, $en, $cnt, $en1, $eq) = @_;
    206206  $tr = makestring($tr);
    207207  $en = makestring($en);
     
    243243
    244244  #$tr = "" if($error && $la ne "en");
     245  return pack("n",65534) if $eq;
    245246
    246247  return pack("n",length($tr)).$tr;
     
    275276      next if $data->{$en}{"en.1"};
    276277      my $val;
     278      my $eq;
    277279      if($la eq "en")
    278280      {
     
    287289        $val = (exists($data->{$en}{$la})) ? $data->{$en}{$la} : "";
    288290        ++$cnt if $val;
    289         $val = "" if($ennoctx eq $val);
    290       }
    291       print FILE checkstring($la, $val, $en);
     291        if($ennoctx eq $val)
     292        {
     293          $val = ""; $eq = 1;
     294        }
     295      }
     296      print FILE checkstring($la, $val, $en, undef, undef, $eq);
    292297    }
    293298    print FILE pack "n",0xFFFF;
Note: See TracChangeset for help on using the changeset viewer.