Siduction Forum

Siduction Forum => Software - Support => Topic started by: michaa7 on 2013/06/04, 16:57:59

Title: change (apt-) language *temporarily*
Post by: michaa7 on 2013/06/04, 16:57:59
I think I saw it here in the forum several times that there is a way to force apt to *talk* en instead of the language configured through the locale environment (here "de").

How can I do this?
Title: change (apt-) language *temporarily*
Post by: joogi on 2013/06/04, 17:12:59
You can use the LANGUAGE variable in your shell.

eg.

german: LANGUAGE="de_de.UTF-8" apt-get help
english: LANGUAGE="en_us.UTF-8" apt-get help


joogi@siductionbox:~# LANGUAGE="de_de.UTF-8" apt-get help
apt 0.9.8 für amd64, kompiliert am May  8 2013 18:45:41
Aufruf: apt-get [Optionen] befehl
       apt-get [Optionen] install|remove paket1 [paket2 ...]
       apt-get [Optionen] source paket1 [paket2 ...]

apt-get ist ein einfaches Befehlszeilenwerkzeug zum Herunterladen
und Installieren von Paketen. Die am häufigsten benutzten Befehle
sind update und install.

Befehle:
 update          – neue Paketinformationen holen
 upgrade         – Upgrade (Paketaktualisierung) durchführen
 install         – neue Pakete installieren (paket ist libc6, nicht libc6.deb)
 remove          – Pakete entfernen
..


If you want to change the time format, too: Checkout the LC_ variables :)
Title: RE: change (apt-) language *temporarily*
Post by: brummer on 2013/06/04, 17:27:57
or if you would change it for a terminal session, you can use
export LANG=en_GB.utf8
for English, for example, you get a list with your installed languages with
locale-a
Title: RE: change (apt-) language *temporarily*
Post by: michaa7 on 2013/06/04, 17:35:44
Thanks to both of you!
Title: RE: change (apt-) language *temporarily*
Post by: towo on 2013/06/04, 18:00:57
or
LANG=C apt-get foo bar
will talk in en.
Title: RE: change (apt-) language *temporarily*
Post by: michaa7 on 2013/06/04, 18:38:29
Thanks towo, that's the one I remember and couldn't recall.