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 | [EMAIL PROTECTED] > 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 | [EMAIL PROTECTED] > language | English > territory | Great Britain > revision | 1.0 > date | 2000-06-28 > codeset | ISO-8859-1 > ... > > > Matthias > -- Anssi Hannula _______________________________________________ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr