[vdr] improving i18n-to-gettext.pl

Anssi Hannula anssi.hannula at gmail.com
Sat Aug 18 14:36:31 CEST 2007


Matthias Schwarzott wrote:
> Regarding the english name of the associated language:
> locale -a -v
> will not only print the list of locales,  but also a lot of detail info. This 
> info should also be available via some API.
> But searching did not produce any API to query this.

nl_langinfo(_NL_IDENTIFICATION_LANGUAGE);
nl_langinfo(_NL_IDENTIFICATION_TERRITORY);

etc etc

But I do not see how these could be used.

> Some cut out example:
> # locale -a -v
> ...
> locale: de_DE.utf8      directory: /usr/lib/locale/de_DE.utf8
> -------------------------------------------------------------------------------
>     title | German locale for Germany
>    source | Free Software Foundation, Inc.
>   address | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
>     email | bug-glibc-locales at gnu.org
>  language | German
> territory | Germany
>  revision | 1.0
>      date | 2000-06-24
>   codeset | UTF-8
> 
> locale: en_GB           directory: /usr/lib/locale/en_GB
> -------------------------------------------------------------------------------
>     title | English locale for Britain
>    source | RAP
>   address | Sankt J�rgens Alle 8, DK-1615 K�benhavn V, Danmark
>   contact | Keld Simonsen
>     email | bug-glibc-locales at gnu.org
>  language | English
> territory | Great Britain
>  revision | 1.0
>      date | 2000-06-28
>   codeset | ISO-8859-1
> ...
> 
> 
> Matthias
> 


-- 
Anssi Hannula



More information about the vdr mailing list