Fine grained locale customization

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
deuce63

Fine grained locale customization

Post by deuce63 »

I recently had an issue after installing Petra, but it seems like this issue has been around for quite some time.

The problem I had was that the date locale on my system always seemed to display in the wrong language, no matter how many times I set my system locale through the system Regional and Language settings. Here's how I solved that.

Open up ~/.profile in your home folder

Code: Select all

~ $ gedit ~/.profile
Add the following line to the bottom:

Code: Select all

export LC_TIME=en_US.UTF-8
A list of envars you can use for customizing locales follows (copy pasta from http://publib.boulder.ibm.com/infocente ... 19494_.htm):

LC_ALL
Overrides all LC_* environment variables with the given value
LC_CTYPE
Character classification and case conversion
LC_COLLATE
Collation (sort) order
LC_TIME
Date and time formats
LC_NUMERIC
Non-monetary numeric formats
LC_MONETARY
Monetary formats
LC_MESSAGES
Formats of informative and diagnostic messages, and of interactive responses
LC_PAPER
Paper size
LC_NAME
Name formats
LC_ADDRESS
Address formats and location information
LC_TELEPHONE
Telephone number formats
LC_MEASUREMENT
Measurement units (Metric or Other)
LC_IDENTIFICATION
Metadata about the locale information
LANG
The default value, which is used when either LC_ALL is not set, or an applicable value for LC_* is not set
NLSPATH
Delimited list of paths to search for message catalogs
TZ
Time zone
Post Reply

Return to “Tutorials”