Changeset 26340 in osm


Ignore:
Timestamp:
2011-07-15T23:37:26+02:00 (13 years ago)
Author:
stoecker
Message:

minor fix

File:
1 edited

Legend:

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

    r26339 r26340  
    206206  $tr = makestring($tr);
    207207  $en = makestring($en);
     208  $cnt = $cnt || 0;
    208209  $en1 = makestring($en1) if defined($en1);
    209210  my $error = 0;
     
    212213  my $v = $tr;
    213214  $v =~ s/''//g; # replace all twice occuring single quotes
    214   if($v =~ /'/)
    215   {
    216     warn "JAVA translation issue for language $la: Mismatching single quotes:\nTranslated text: $tr\n";
     215  if($v =~ /'/)#&& $la ne "en")
     216  {
     217    warn "JAVA translation issue for language $la: Mismatching single quotes:\nTranslated text: $tr\nOriginal text: $en\n";
    217218    $error = 1;
    218219  }
     
    229230    if(!($fmte eq '0' && $fmt eq "" && $cnt == 1)) # Don't warn when a single value is left for first multi-translation
    230231    {
    231       $cnt == $cnt || 0;
    232232      warn "JAVA translation issue for language $la ($cnt): Mismatching format entries:\nTranslated text: $tr\nOriginal text: $en\n";
    233233      $error = 1;
Note: See TracChangeset for help on using the changeset viewer.