Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] change (apt-) language *temporarily*  (Read 1965 times)

Offline michaa7

  • User
  • Posts: 2.319
[EN] change (apt-) language *temporarily*
« 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?
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

joogi

  • Guest
change (apt-) language *temporarily*
« Reply #1 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

Code: [Select]

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 :)

Offline brummer

  • User
  • Posts: 276
    • http://guitarix.sourceforge.net/
RE: change (apt-) language *temporarily*
« Reply #2 on: 2013/06/04, 17:27:57 »
or if you would change it for a terminal session, you can use
Code: [Select]
export LANG=en_GB.utf8
for English, for example, you get a list with your installed languages with
Code: [Select]
locale-a

Offline michaa7

  • User
  • Posts: 2.319
RE: change (apt-) language *temporarily*
« Reply #3 on: 2013/06/04, 17:35:44 »
Thanks to both of you!
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.948
RE: change (apt-) language *temporarily*
« Reply #4 on: 2013/06/04, 18:00:57 »
or
LANG=C apt-get foo bar
will talk in en.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline michaa7

  • User
  • Posts: 2.319
RE: change (apt-) language *temporarily*
« Reply #5 on: 2013/06/04, 18:38:29 »
Thanks towo, that's the one I remember and couldn't recall.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake