SLES12 - Where is the locale formats config file

Hello,
I have set locale formats using GNOME Region & Language.
It shown on ENV | grep LC_, but I want to know where is the config. file for LC_?

regards,
wiwat w.

On 26/06/2015 09:04, wiwatw wrote:
[color=blue]

I have set locale formats using GNOME Region & Language.
It shown on ENV | grep LC_, but I want to know where is the config.
file for LC_
?[/color]

If I’ve understood your question correctly I think you’re looking for
the files within the sub-directories at /usr/share/locale/ and/or
/usr/lib/locale/.

Note you can find LC_* files on your SLES12 server by using “find /
-iname ‘LC_*’” command (without the double quotes - keep the single quotes).

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

[QUOTE=smflood;28547]On 26/06/2015 09:04, wiwatw wrote:
[color=blue]

I have set locale formats using GNOME Region & Language.
It shown on ENV | grep LC_, but I want to know where is the config.
file for LC_
?[/color]

If I’ve understood your question correctly I think you’re looking for
the files within the sub-directories at /usr/share/locale/ and/or
/usr/lib/locale/.

Note you can find LC_* files on your SLES12 server by using “find /
-iname ‘LC_*’” command (without the double quotes - keep the single quotes).

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------[/QUOTE]

Or maybe he’s looking for /etc/sysconfig/language

Thomas

If I set locale formats to fr_FR.utf8 (using GNOME Region & Language).
Where LC_*=fr_FR.utf8 saved to?
regards
wiwat w.

On 30/06/2015 09:04, wiwatw wrote:
[color=blue]

If I set locale formats to fr_FR.utf8 (using GNOME Region & Language).
Where LC_*=fr_FR.utf8 saved to?[/color]

Are you setting this as a regular user or as root? If root then check
the value of RC_LANG in /etc/sysconfig/language.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

[QUOTE=wiwatw;28578]If I set locale formats to fr_FR.utf8 (using GNOME Region & Language).
Where LC_*=fr_FR.utf8 saved to?
regards
wiwat w.[/QUOTE]

I believe into the user’s dconf org.gnome.system.locale region value

https://lists.fedoraproject.org/pipermail/users/2014-December/455809.html

Thomas

I have found my solution, dconf file in GNOME.

For system-wide override:
/etc/dconf/db/.d
https://help.gnome.org/admin/system-admin-guide/3.10/dconf-custom-default-values.html.en

For user override:
~/.config/dconf/user

All dconf files are binary format, need GUI editor (dconf-editor) or commands line.

Related commands line:
gsettings list-schemas | grep locale
gsettings list-keys org.gnome.system.locale ← display parameters
gsettings get org.gnome.system.locale region ← display specific parm
gsettings set org.gnome.system.locale region ← update specific parm
dconf update ← regenerate config file

wiwat w.

On 02/07/2015 10:24, wiwatw wrote:
[color=blue]

I have found my solution, dconf file in GNOME.

For system-wide override:
/etc/dconf/db/.d
https://help.gnome.org/admin/system-admin-guide/3.10/dconf-custom-default-values.html.en

For user override:
~/.config/dconf/user

All dconf files are binary format, need GUI editor (dconf-editor) or
commands line.

Related commands line:
gsettings list-schemas | grep locale
gsettings list-keys org.gnome.system.locale ← display parameters
gsettings get org.gnome.system.locale region ← display specific parm
gsettings set org.gnome.system.locale region ← update
specific parm
dconf update ← regenerate config file[/color]

Glad to hear you’ve found a solution. Thanks for taking the time to
report back.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.