[opensuse] How to set LC_MEASUREMENT system wide?
Hello: I would like to set LC_MEASUREMENT to hu_HU.UTF-8 systme wide. In /etc/sysconfig/language there is no LC_MEASUREMENT. How could I set it system wide then? Also openSUSE manual states: "SuSEconfig reads the variables in /etc/sysconfig/language and writes the necessary changes to /etc/SuSEconfig/profile and /etc/SuSEconfig/csh.cshrc." On my system there is neither /etc/SuSEconfig/profile nor /etc/SuSEconfig/csh.cshrc and they are not generated after changing /etc/sysconfig/language. But somehow the change still applied. What is the mechanism? Any hint? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Forgot to mention I tried the above in openSUSE 11.2. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2009-11-27 at 16:39 +0100, Istvan Gabor wrote:
Hello:
I would like to set LC_MEASUREMENT to hu_HU.UTF-8 systme wide. In /etc/sysconfig/language there is no LC_MEASUREMENT. How could I set it system wide then?
Also openSUSE manual states: "SuSEconfig reads the variables in /etc/sysconfig/language and writes the necessary changes to /etc/SuSEconfig/profile and /etc/SuSEconfig/csh.cshrc."
On my system there is neither /etc/SuSEconfig/profile nor /etc/SuSEconfig/csh.cshrc and they are not generated after changing /etc/sysconfig/language. But somehow the change still applied. What is the mechanism?
It seems the manual is a bit outdated, suseconfig isn't responsible for that anymore. Instead, /etc/sysconfig/language is read by /etc/profile.d/lang.sh and it exports the variables you set in that file. Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Also openSUSE manual states: "SuSEconfig reads the variables in /etc/sysconfig/language and writes the necessary changes to /etc/SuSEconfig/profile and /etc/SuSEconfig/csh.cshrc."
On my system there is neither /etc/SuSEconfig/profile nor /etc/SuSEconfig/csh.cshrc and they are not generated after changing /etc/sysconfig/language. But somehow the change still applied. What is the mechanism?
It seems the manual is a bit outdated, suseconfig isn't responsible for that anymore. Instead, /etc/sysconfig/language is read by /etc/profile.d/lang.sh and it exports the variables you set in that file.
OK, I see that. And what about the other question, seeting LC_MEASUREMENT system wide? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2009-11-27 at 17:10 +0100, Istvan Gabor wrote:
And what about the other question, seeting LC_MEASUREMENT system wide?
I misunderstood, I thought you already had that done ('But somehow the change is still applied') You can simply add a line to /etc/sysconfig/language RC_LC_MEASUREMENT="whatever" similar to the other LC settings in there, and it will get read and evaluated on login Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
And what about the other question, seeting LC_MEASUREMENT system wide?
I misunderstood, I thought you already had that done ('But somehow the change is still applied')
It regarded to LC_PAPER, I also have changed that.
You can simply add a line to /etc/sysconfig/language
RC_LC_MEASUREMENT="whatever"
similar to the other LC settings in there, and it will get read and evaluated on login
OK, I'll try it. Didn't know that I can add new properties to sysconfig files. Thanks a lot! Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Anders Johansson
-
Istvan Gabor