Changeset 30169 in osm


Ignore:
Timestamp:
2014-01-01T23:31:11+01:00 (11 years ago)
Author:
stoecker
Message:

fix perl deprecation warning

File:
1 edited

Legend:

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

    r28423 r30169  
    22
    33use utf8;
    4 use encoding "utf8";
    5 binmode STDERR, ":encoding(utf8)";
     4use open qw/:std :encoding(utf8)/;
    65use Term::ReadKey;
    76use Encode;
     
    217216  if($v =~ /'/)#&& $la ne "en")
    218217  {
    219     warn "JAVA translation issue for language $la: Mismatching single quotes:\nTranslated text: $tr\nOriginal text: $en\n";
     218    warn "JAVA translation issue for language $la: Mismatching single quotes:\nTranslated text: ".decode("utf8",$tr)."\nOriginal text: ".decode("utf8",$en)."\n";
    220219    $error = 1;
    221220  }
     
    238237    if(!($fmte eq '0' && $fmt eq "" && $cnt == 1)) # Don't warn when a single value is left for first multi-translation
    239238    {
    240       warn "JAVA translation issue for language $la ($cnt): Mismatching format entries:\nTranslated text: $tr\nOriginal text: $en\n";
     239      warn "JAVA translation issue for language $la ($cnt): Mismatching format entries:\nTranslated text: ".decode("utf8",$tr)."\nOriginal text: ".decode("utf8",$en)."\n";
    241240      $error = 1;
    242241    }
Note: See TracChangeset for help on using the changeset viewer.