Results 1 to 2 of 2

Thread: Locale help

  1. #1
    Join Date
    Sep 2010
    Beans
    28

    Locale help

    HI...
    can anyone please tell me how to know the languages supported by CURRENT LOCALE.

    I m trying to convert some application in HINDI

  2. #2
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: Locale help

    There is an environment variable named "LANG" that the system uses.
    e.g. on my computer at the command prompt:

    Code:
    $> echo $LANG
    en_NZ.UTF-8
    so I'm apparently using New Zealand English with utf-8 character encoding.

    if I run my "hello world" application I get:
    Code:
    $> ./hello
    Hello, world!
    How are you?
    I can change my language from the command line... e.g.:
    Code:
    $> export LANG=fr_CA.utf-8
    $> ./hello
    Salût le Québec!
    Ça va, les gars?
    but I only get translated text for the applications that I installed French translations for. Otherwise it still comes out in English... or whatever was built into the application.

    You can download "internationalization.html" from http://code.google.com/p/speaknumber/downloads/list for some more explanations.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •