[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#282409: ITP: mozilla-firefox-locale-pt-br -- Firefox Localization Package to Brazilian Portuguese.



El Martes 23 Noviembre 2004 22:01, Aaron M. Ucko escribió:
> Cesar Martinez Izquierdo <listas@ono.com> writes:
> > * It only shows the locale code in the description, not the name of the
> > language (eg. it shows zh-TW and not Chinese). I thing it's not the best
> > way, but I don't see any automatic way of doing it. I can, however, add
> > the names by hand before uploading to the archive.
>
> Perhaps you can make use of iso-codes in conjunction with
> libxml-xpath-perl or the like:
>
> $ xpath -q -e '//*[@iso_639_1_code="zh"]/@name'
> /usr/share/xml/iso-codes/iso_639.xml name="Chinese"
> $ xpath -q -e '//*[@alpha_2_code="TW"]/@name'
> /usr/share/xml/iso-codes/iso_3166.xml name="Taiwan, Province of China"

Thanks, it's what I was searching for.

 César



Reply to: