[Solved] Different locale settings for root and guest

Post here if you are a new Porteus member and you're looking for some help.
tome
Contributor
Contributor
Posts: 675
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

[Solved] Different locale settings for root and guest

Post#1 by tome » 12 Dec 2014, 15:45

Does anyone know how to set one locale/language for guest and another one for root? :Search:

EDIT:
Solved.
For graphical apps:
Create .profile file in guest or root, then add

Code: Select all

export LANG=pl_PL.utf8
to it or execute

Code: Select all

echo "export LANG=pl_PL.utf8" >> $HOME/.profile
For terminal - shell commands: edit .bashrc, for example import settings from .profile:

Code: Select all

echo "source ~/.profile">>~/.bashrc
You have mind and feelings. Be wise and clever.