PDA

View Full Version : SLES12 - Where is the locale formats config file



wiwatw
26-Jun-2015, 09:02
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.

smflood
26-Jun-2015, 10:53
On 26/06/2015 09:04, wiwatw wrote:

> 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_*?

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.
------------------------------------------------------------------------

thsundel
26-Jun-2015, 11:29
On 26/06/2015 09:04, wiwatw wrote:

> 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_*?

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.
------------------------------------------------------------------------

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

Thomas

wiwatw
30-Jun-2015, 08:56
If I set locale formats to fr_FR.utf8 (using GNOME Region & Language).
Where LC_*=fr_FR.utf8 saved to?
regards
wiwat w.

smflood
30-Jun-2015, 10:39
On 30/06/2015 09:04, wiwatw wrote:

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

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.
------------------------------------------------------------------------

thsundel
30-Jun-2015, 11:24
If I set locale formats to fr_FR.utf8 (using GNOME Region & Language).
Where LC_*=fr_FR.utf8 saved to?
regards
wiwat w.

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

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

Thomas

wiwatw
02-Jul-2015, 10:18
I have found my solution, dconf file in GNOME.

For system-wide override:
/etc/dconf/db/<file>.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 <your-locale> <-- update specific parm
dconf update <-- regenerate config file

wiwat w.

smflood
02-Jul-2015, 11:11
On 02/07/2015 10:24, wiwatw wrote:

> I have found my solution, dconf file in GNOME.
>
> For system-wide override:
> /etc/dconf/db/<file>.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 <your-locale> <-- update
> specific parm
> dconf update <-- regenerate config file

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.
------------------------------------------------------------------------