Changeset 19356 in osm for applications/editors/josm
- Timestamp:
- 2010-01-10T12:02:30+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/i18n.pl
r19334 r19356 187 187 } 188 188 189 sub makestring($) 190 { 191 my ($str) = @_; 192 $str =~ s/\\"/"/g; 193 $str =~ s/\\n/\n/g; 194 $str = encode("utf8", $str); 195 return pack("n",length($str)).$str; 196 } 197 189 198 sub createlang($@) 190 199 { … … 221 230 $val = "" if($ennoctx eq $val); 222 231 } 223 $val = encode("utf8", $val); 224 print FILE pack("n",length($val)).$val; 232 print FILE makestring($val); 225 233 } 226 234 print FILE pack "n",0xFFFF; … … 252 260 if($num) 253 261 { 254 $val = encode("utf8", $val); 255 print FILE pack("n",length($val)).$val; 262 print FILE makestring($val); 256 263 for($num = 1; exists($data->{$en}{"$la.$num"}); ++$num) 257 264 { 258 $val = encode("utf8", $data->{$en}{"$la.$num"}); 259 print FILE pack("n",length($val)).$val; 265 print FILE makestring($data->{$en}{"$la.$num"}); 260 266 } 261 267 }
Note:
See TracChangeset
for help on using the changeset viewer.