Source: iso-codes
Version: 3.40-1
Usertags: i18nspector

Something very bad happened to encoding of iso_4217/mn.po. For example, translation of "Afghani" is:

"Ð<90>Ñ<84>гаМ"

(Yes, these are literal less-than and greater-than signs.)

Fortunately, it looks like it's possible to recover the correct encoding automatically, with help of the attached script:

$ LC_ALL=C.UTF-8 msgfilter ./recover-mn-encoding < mn.po > mn.po.new

I attached the resulting file for your convenience. It would be good if it could be double-checked by someone who actually knows Mongolian. :)

--
Jakub Wilk
#!/usr/bin/perl -pn
use strict;
use warnings;
use Encode;
$_ = decode('utf-8', $_);
$_ = encode('iso-8859-15', $_);
s/<([0-9a-f]{2})>/chr(hex($1))/eg;

Attachment: mn.po.gz
Description: Binary data

Reply via email to