Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Post how to find the operating system language(English, french, german)

    how i can find out compile time that which language(english, german, french. etc) operating system is installed in my computer..

    thanks & regards :

    sunil kumar maurya

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Env variables.
    In decreasing priority:
    - LC_ALL
    - LC_xxx, according to selected locale category
    - LANG
    Source: GNU `gettext' utilities

    But I would argue, that determining the language for a binary at compile time is a design flaw.
    a) The compile machine is most probably not the machine where the enduser runs the binary. So the env and language preference can be different.
    b) You need the language for your tool configurable anyway. So let your tool make use of configuration.
    Preferably via env variables, but a dedicated config file is also possible.
    You must always face the curtain with a bow.

Posting Permissions

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