05-16-2008
Displaying the available locales in english
Hi,
I am developing a program that would ask the user to set the locale.
For that, I need to display them to user in plain english.
like
English(US)
English (Uk)
depending on the user selection I need to set the locale.
Is there a command in redhat linux that would display locales in more friendly mamner rather than like this "en-US.UTF-8"
Thanks,
sunny.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anyone tell me the difference between the 2 Locales:
North American Partial Locales
en_US.ISO8859-1
en_US.ISO8859-15
Does it matter which one to use?
What are the differences?
Thanks.
-I have found the below info but I don't know what it means(Also no RFC# for 8859-15):
... (2 Replies)
Discussion started by: finster
2 Replies
2. AIX
Currently we have the following locales installed on two of our servers
SERVER-1
$ locale -a
C
POSIX
en_US
en_US.8859-15
en_US.ISO8859-1
EN_US
EN_US.UTF-8
ZH_CN
ZH_CN.UTF-8
HI_IN
HI_IN.UTF-8
ko_KR
ko_KR.IBM-eucKR
zh_TW
zh_TW.IBM-eucTW
SERVER-2 (0 Replies)
Discussion started by: voorkey
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to know
1.the usage of LC_TIME with setlocale().
2.the usage of getdate() utility
I read that date formatting for different languages needs
1.user-supplied template file and
2.DATEMSK environment variable set to path of the template fie.
Can anyone pls tell... (2 Replies)
Discussion started by: Aeon
2 Replies
4. Ubuntu
On Ubuntu 7.04, why would the "C" LANG parameter not be English:
$ LANG=C locale
LANG=C
LANGUAGE=he_IL:he:en_GB:en
LC_CTYPE="he_IL.utf8"
LC_NUMERIC="he_IL.utf8"
LC_TIME="he_IL.utf8"
LC_COLLATE="he_IL.utf8"
LC_MONETARY="he_IL.utf8"
LC_MESSAGES="he_IL.utf8"
LC_PAPER="he_IL.utf8"... (4 Replies)
Discussion started by: dotancohen
4 Replies
5. HP-UX
On our system a user successfully ran the only application on the system this morning. When they tried to login a bit later they could not. The Admin tried to reboot the server and it seemed to reboot ok. When logged in the admin tried to change directories and gets the below message (note they... (1 Reply)
Discussion started by: jmdzied
1 Replies
6. Web Development
We have a Java app that renders Localized text on user's browser session based upon browser language settings. The app reads the browser language settings and prepares the localized text. But recently we faced issues for Mozilla 5.0 version browser. Note our code works fine in IE. Taking an... (1 Reply)
Discussion started by: uunniixx
1 Replies
7. AIX
Hello,
my program running on AIX receives a message (from MQ) which is in CCSID 870 (LATIN-2 EBCDIC). It needs to convert it to CCSID 912 (ISO-8859-2). For this conversion, it uses the Websphere MQ functionality, but which, according to the manual, uses AIX's system conversion tables. (Btw - it... (1 Reply)
Discussion started by: Adamm
1 Replies
8. Shell Programming and Scripting
I'm having a problem with my locale setting.
Essentially, when using Xmgrace or Awk, all . are replaced with ,
leading to wrong arithmetic.
Here is an explanation of the problem:
awk printing thousands with commas. see LC_ALL=en_US.UTF-8
How can I permanently set the locale... (1 Reply)
Discussion started by: chrisjorg
1 Replies
9. Debian
Hello,
I'm facing a strange problem in one of my Debian server, what is happening right now it that I have runned dpkg-reconfigure locales to set en_US UTF-8 so in that way I could use accentuation in my system.
# locale -a
C
en_US.utf8
POSIX
pt_BR.utf8
However, when I create a new... (12 Replies)
Discussion started by: pxb368@motorola
12 Replies
LEARN ABOUT HPUX
geocustoms
geocustoms(1M) geocustoms(1M)
NAME
geocustoms - configure system language on multi-language systems
SYNOPSIS
locale]
DESCRIPTION
The command manages default selection of multiple languages installed on "ignited" (Instant Ignition) systems. In subsequent sessions,
invoking the command starts When invoked with no options, runs interactively with a terminal interface.
Options
Non-interactively set the
parameter. To view all locales available on the system, run If the locale argument is not a valid option for the sys-
tem, an error message is issued and the terminal user interface (also known as TUI or UI) appears, as if the option were
not used.
If the argument to the option is locale parameters are set to by default. A null locale causes programs to execute without using localized
message catalogs, which can increase system performance. All HP-UX messages appear in English if the locale is set to
The command must be invoked by a user with appropriate privilege.
If is invoked directly by the user, it might be necessary to log out and login again for language changes to take effect.
RETURN VALUE
Successful completion and/or clean exit from command.
Command unable to complete all objectives.
DIAGNOSTICS
Standard Output
The non-interactive command does not write to
EXAMPLES
To set the default system language non-interactively to German:
DEPENDENCIES
Limitations
The command does not do the following:
o Manage languages at the codeset level.
o Manage keyboard selection.
o Create or remove locale definitions.
o Provide a special interface for restoring or adding languages to the system from depots or media.
FILES
The command itself.
System configuration files modified by
AUTHOR
The command was developed by HP.
SEE ALSO
locale(1), setlocale(3C).
STANDARDS CONFORMANCE
(SPEC1170 and XPG4).
geocustoms(1M)