How to change the language system wide?

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Post Reply
Message
Author
williamdosa
Posts: 1
Joined: Sat Oct 13, 2018 4:28 am

How to change the language system wide?

#1 Post by williamdosa »

Hello i installed MX Linux 17.1 for a friend in English just for me to understand things when i tweak. Now though, he needs Turkish. I can't find from where to change from English to Turkish for the death of me... MX Tweak tool? Nothing


I can see language packs for individual programs like Firefox, Thunderbird but how on earth can i change system wide language? Through a terminal? He's also a Linux newcomer and if similar changes are this "hidden" i don't know... :/

Thanks in advance!
Last edited by williamdosa on Sat Oct 13, 2018 2:54 pm, edited 1 time in total.

User avatar
fehlix
Developer
Posts: 10310
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to change the language system wide?

#2 Post by fehlix »

Run this from the command line:

Code: Select all

sudo dpkg-reconfigure locales
and navigate to Turkish locale "tr_TR.UTF-8" with arrow key
and press space-bar to select,
press tab-key -> OK
and select default locale "tr_TR.UTF-8" Turkish.
Logout/login to take effect.

Welcome to the forum :exclamation:
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: How to change the language system wide?

#3 Post by Jerry3904 »

There may be other changes you will want or need to make. Check Section 3.7.2 of the Users Manual, where fehlix's solution is described, for other similar
items to look at.

You don't have to know already that it is there, use Ctrl-F and search on "language", then go down a few hits until you get there.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
fehlix
Developer
Posts: 10310
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to change the language system wide?

#4 Post by fehlix »

fehlix wrote: Sat Oct 13, 2018 6:17 am Run this from the command line:

Code: Select all

sudo dpkg-reconfigure locales
and navigate to Turkish locale "tr_TR.UTF-8" with arrow key
and press space-bar to select,
press tab-key -> OK
and select default locale "tr_TR.UTF-8" Turkish.
Logout/login to take effect.

Welcome to the forum :exclamation:
:puppy:
Alternatively to the above manual selection procedure here a quick-fix for changing the default system locale.
You can set system language with this one-liner; as an example : to set to Turkish tr_TR and a 2nd availble locale to en_US:
( copy and paste into terminal command line this ugly long one-liner quick-fix locale changer :alien: )

Code: Select all

SET_LOCALE="tr_TR en_US"; sudo -k; set -x; sudo sed -i -E  "/^$/b; /(${SET_LOCALE// /|}).UTF-8 UTF-8/{s/^#*\s*//;b};  /^[^#]/s/^/# /;"  /etc/locale.gen;  grep -v '^#' /etc/locale.gen; sudo locale-gen ; sudo LANG="${SET_LOCALE%% *}.UTF-8" update-locale LANG="${SET_LOCALE%% *}.UTF-8"; cat /etc/default/locale ; grep -v '^#' /etc/locale.gen  ;  set +x
Adjust SET_LOCALE="tr_TR en_US" and change SET_LOCALE quoted string
to a space-separted list with all locales you want to be available with the system.
The first with the string will become the default system-locale.
examples:
SET_LOCALE="tr_TR de_DE fr_FR en_US"
SET_LOCALE="fr_FR en_US"
SET_LOCALE="es_AR es_ES en_US"
SET_LOCALE="es_AR es_ES es_MX en_US"
SET_LOCALE="nl_NL en_US de_DE"

:puppy:
EDIT: fixed set +/-x
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: How to change the language system wide?

#5 Post by skidoo »

What's up with the "downloader.vip" spam links within the OP's posts, both here and same (spam links) in OP's other posted topic?

User avatar
Gordon Cooper
Posts: 965
Joined: Mon Nov 21, 2011 5:50 pm

Re: How to change the language system wide?

#6 Post by Gordon Cooper »

Welcome, williamdosa. In recent months there have been several users from Turkey downloading MX. Hopefully one may read this forum thread and
be able to provide more language help.
Backup: Dell9010, MX-19_B2, Win7, 120 SSD, WD 232GIB HD, 4GB RAM
Primary :Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
MX-18.2 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.

User avatar
Utopia
Administrator
Posts: 3245
Joined: Sun Apr 29, 2007 11:53 am

Re: How to change the language system wide?

#7 Post by Utopia »

Spam links deleted.
Henry

User avatar
D800
Posts: 38
Joined: Fri Dec 29, 2017 6:41 pm

Re: How to change the language system wide?

#8 Post by D800 »

fehlix wrote: Sat Oct 13, 2018 6:17 am Run this from the command line:

Code: Select all

sudo dpkg-reconfigure locales
and navigate to Turkish locale "tr_TR.UTF-8" with arrow key
and press space-bar to select,
press tab-key -> OK
and select default locale "tr_TR.UTF-8" Turkish.
Logout/login to take effect.

Welcome to the forum :exclamation:
:puppy:
Almost a three year old post and it saved me a lot of trouble. My son has a way of monkeying around with my MX Linux distro to make things more difficult for me.
However, that simple command line entry got my machine back to English so I can operate again.
Thank you Fehlix and the MX Linux community.

Post Reply

Return to “MX Help”