Mailinglist Archive: opensuse-factory (341 mails)

< Previous Next >
Re: [opensuse-factory] latest factory update
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Tue, 17 Feb 2009 14:38:04 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.0902171429330.27904@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Tuesday, 2009-02-17 at 14:24 +0100, Oddball wrote:

For example:

LANG=en_US.UTF-8 zypper dup

Provided you want to do a dup. If not, well, use up, patch, whatever
you want to do.

OK.

I thought it was to set all output to english ;)
I wouldn't mind, as it is my second language anyway...
Is there a way to do that? Saves me to remember doing that the whole
time.. ;(

Well... Typically, you do it in YaST, but the change applies to all users, I think.

You can simply:

# export LANG=en_US.UTF-8

then that xterm will be in English from then on. You can change more variables; I have a script to call programs in English:

cer@nimrodel:~> cat /usr/local/bin/ingles
#!/bin/sh
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 DICTIONARY=english KDE_LANG=en_US.UTF-8 $*


or in Spanish:


cer@nimrodel:~> cat /usr/local/bin/espaniol
#!/bin/sh
LANG=es_ES.UTF-8 LC_ALL=es_ES.UTF-8 DICTIONARY=espanol KDE_LANG=es_ES $*


You can also have a look at the output of "locale". The default for root is:

nimrodel:~ # locale
LANG=POSIX
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=


To change any user, even root's, you change its locale. I'm not sure of the locale command syntax. I think there is a setting in YaST for root's only, somewhere. I thought the default was always "posix".

- -- Cheers,
Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkmavb8ACgkQtTMYHG2NR9WOnQCfWlDS4ybT7GqXjllQDosJQlnb
bj8AnRG3HuBbEVCseq2/+jPk3u8L/UUY
=tgMI
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups