Questions tagged [locale]

A locale is a set of parameters that defines the user's language, country and any special variant preferences that the user wants to see in their user interface.

Further reading:

518 questions
36
votes
2 answers

What is the difference between LANG=C and LC_ALL=C?

I like to disable all locale specific differences in shell scripts. What is the preferred way to do it? LANG=C or LC_ALL=C
ceving
  • 3,579
  • 5
  • 24
  • 30
25
votes
1 answer

What should I set my locale to and what are the implications of doing so?

This question was stimulated by asking the question Chromium browser does not allow setting the default paper size for "Print to File", and also by a conversation with @Gilles on chat. As pointed out by @don_crissti, and as verified by me, changing…
Faheem Mitha
  • 35,108
24
votes
2 answers

Reload /etc/default/locale without reboot?

After making changes to /etc/default/locale, is it possible to reload/active the new settings without a reboot?
ohho
  • 343
19
votes
4 answers

How to have console messages in English?

I am French and use my Debian system in French. However, I would like to have error messages in terminal in English. It allows me to post them on English speaking websites. How can I change my locale to do so? I precise I don't want to have all my…
ppr
  • 1,907
  • 7
  • 23
  • 40
16
votes
1 answer

Using localectl on Arch, Failed to issue method call: Invalid Locale data

Using Arch. $ localectl status System Locale: n/a VC Keymap: n/a X11 Layout: n/a Okay cool, so I just do set locale, right? $ localectl list-locales en_US.utf8 ...cool, I'll use en_US.utf8 localectl set-locale en_US.utf8 Failed to issue…
robert
  • 556
8
votes
1 answer

making a new locale file for Linux, and getting it accepted as a standard

I am wanting to set up a new locale for "Indonesian English" (en_ID) for Linux systems. While English is not widely spoken in Indonesia, it is still used widely in business and the professions. I have made a new locale file using en_SG as a…
5
votes
1 answer

How to (easily) be able to use a new en_** locale?

I want to use an en_IL.UTF-8 locale - but I can't locale-gen it. I can choose this value in /etc/default/locale but that's apparently not enough for all apps. It seems like I need to get locale-gen to generate some files for en_IL.UTF-8 ... How do I…
einpoklum
  • 9,515
5
votes
1 answer

How to actually test locale

So I know what locale does. Sets the output format of certain programs depending on what country/language you're in, for example 1000000 can be formatted like 1,000,000.00 1 000 000.00 1.000.000,00 and a variety of others on output. But is there a…
user63658
  • 101
5
votes
1 answer

What is the relevance of 'en_AU' in 'LC_CTYPE'? and what is `locale LC_CTYPE` output all about?

First off: Although I can understand the relevance of geographic-region detail for LC_TIME, LC_NUMERIC, and most other LC_* vars, I don't quite see how 'en_AU' relates to LC_CTYPE... Isn't UTF-8 (and other encodings) enough of a definition in…
Peter.O
  • 32,916
3
votes
1 answer

How do LC_ variables work?

There are a lot of questions here about how to set these variables but none about how they work. If I type locale in a terminal it shows me a bunch of variables: LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" However, these don't exist on the…
3
votes
1 answer

How to change locale to English?

I have message from bash and it's localized, I want English message, my locale is: $…
jcubic
  • 9,932
2
votes
1 answer

change locale grouping

I use el_GR.UTF-8 which does not group thousands. I changed /usr/share/i18n/locales/el_GR, updated: sudo locale-gen el_GR sudo locale-gen el_GR.UTF-8 sudo update-locale LANG=el_GR.UTF-8 but still printf "%'.1f\n" 1000 produces 1000,0 instead of…
2
votes
1 answer

Why does `date` print date with wrong word order when localized?

I'm using Kubuntu 14.04.2 LTS. I set the locale environment with the following command: export LANG=ru_RU.utf8 LANGUAGE=ru_RU.utf8 LC_ALL=ru_RU.utf8 so that locale now says all entries are ru_RU.utf8. But when I issue date, I get the following: Чт.…
Ruslan
  • 3,370
1
vote
0 answers

Error of custom en_US-based locale compilation

While in /usr/share/i18n/locales I execute the following (the first line is because I do not want en_US to be messed up): cp ./en_US ./en_SN sudo localedef -i en_SN -f UTF-8 -vc ./en_SN.UTF-8 The output is as follows (after two or three…
S. N.
  • 287
1
vote
0 answers

Custom locale does not apply date format in at least one application

Potentially this is not an OS problem, but a problem with the specific application (LibreOffice Calc). I have created and compiled a custom locale: $ set |grep LANG= LANG=en_XX.UTF-8 $ cat /usr/share/i18n/locales/en_XX comment_char % escape_char…
v010dya
  • 543
  • 5
  • 11
1
2