Articles taggués ‘locale’

How to Set Locales (i18n) On a Linux or Unix

19/10/2015 Comments off

Source: nixCraft

What is a « locale » on a Linux operating system? How do I set or get locals (i18n) values on a Linux operating system?

Locales defines language and country specific setting for your programs and shell session. You can use locales to see date, time, number, currency and other values formatted as per your country or language on a Linux or Unix-like system.

To set system’s locale you need use shell variable. For example, LANG variable can be used to set en_US (English US) language.

How do I show current locale settings on a Linux or Unix?

The syntax is:

locale name
locale [options] name


Simply type the following command:

 $ locale 


Lire la suite…

Categories: Système Tags: , ,

HowTo : Change Locale (Language and Character Set) in Linux

05/10/2014 Comments off

Locales are used in Linux to define which language and character set (encoding) the user uses.

In this article, I’ll show you how to :

  • Check the Current Locale
  • Get the List of Available Locales
  • Add a New Locale
  • Change the Locale for Current Session
  • Change the Locale Permanently
  • Change the Default System’s Locale

Lire la suite…

Categories: Système, Tutoriel Tags: ,