Changeset 26344 in osm


Ignore:
Timestamp:
2011-07-16T18:28:37+02:00 (13 years ago)
Author:
stoecker
Message:

improve checks

File:
1 edited

Legend:

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

    r26340 r26344  
    213213  my $v = $tr;
    214214  $v =~ s/''//g; # replace all twice occuring single quotes
     215  $v =~ s/'[{}]'//g; # replace all bracketquoting single quotes
    215216  if($v =~ /'/)#&& $la ne "en")
    216217  {
     
    223224  my $fmte;
    224225  my $fmte1 = "";
    225   while($tr =~ /\{(.*?)\}/g) {push @fmt,$1}; $fmt = join("_", sort @fmt); @fmt = ();
    226   while($en =~ /\{(.*?)\}/g) {push @fmt,$1}; $fmte = join("_", sort @fmt); @fmt = ();
    227   if($en1) {while($en1 =~ /\{(.*?)\}/g) {push @fmt,$1}; $fmte1 = join("_", sort @fmt);}
     226  my $trt = $tr; $trt =~ s/'[{}]'//g;
     227  while($trt =~ /\{(.*?)\}/g) {push @fmt,$1}; $fmt = join("_", sort @fmt); @fmt = ();
     228  my $ent = $en; $ent =~ s/'[{}]'//g;
     229  while($ent =~ /\{(.*?)\}/g) {push @fmt,$1}; $fmte = join("_", sort @fmt); @fmt = ();
     230  if($en1)
     231  {
     232     my $en1t = $en1; $en1t =~ s/'[{}]'//g;
     233     while($en1t =~ /\{(.*?)\}/g) {push @fmt,$1}; $fmte1 = join("_", sort @fmt);
     234  }
    228235  if($fmt ne $fmte && $fmt ne $fmte1)
    229236  {
Note: See TracChangeset for help on using the changeset viewer.