SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-11-23 17:46:37

tty-tourist
#! CrunchBangian
From: within the swirl
Registered: 2013-05-26
Posts: 281

Languages and "apt-cache" [solved]

So I finally got around to changing the language of my system. This is nice because having chosen Danish as system language upon installation of #! gives me a quite confusing mixture of English and at times pretty poor Danish.

To do this I:
- uncommented "en_DK.UTF-8" in /etc/locale.gen
- ran "sudo locale-gen"
- ran "sudo dpkg-reconfigure locales" (does this program do anything else than change /etc/default/locale?")
- edited /etc/default/locale to look like this:

#  File generated by update-locale
LANG=da_DK.UTF-8
LANGUAGE=en_DK.UTF-8

The point being that LANG sets all unspecified options so now the application language is English but date format and the like are still Danish. After reboot it worked: date format in my conky is Danish, applications speak to me in English. Great! ... except when I:

sudo apt-cache searc emacs (for example)

This gives me a mixture of package descriptions in Danish and English. The packages with a Danish descriptions are displayed first and after that the English ones:

xfonts-bitmap-mule - skrifttyper for BITMAP-MULE for X
yc-el - Endnu en Canna-klient til Emacsen
zile - meget lille redigeringsprogram for Emacs-undersæt
acl2-emacs - Computational Logic for Applicative Common Lisp: emacs interface
libghc-agda-dev - dependently typed functional programming language - development libraries
libghc-agda-doc - dependently typed functional programming language - documentation
anthy-el - input method for Japanese - elisp frontend

Thinking that is has to do with something that was stored before I changed language but what?

I've tried "apt-get clean" and

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

None of which worked ...

Last edited by tty-tourist (2014-02-10 23:25:35)

Offline

Be excellent to each other!

#2 2013-11-23 23:35:28

tty-tourist
#! CrunchBangian
From: within the swirl
Registered: 2013-05-26
Posts: 281

Re: Languages and "apt-cache" [solved]

Got it! Package descriptions are set by LC_MESSAGES so adding this to /etc/default/locale does the trick:

LC_MESSAGES=en_DK.UTF-8

Now when I "apt-cache search" for a favorite game of mine I get:

burgerspace - Avoid evil foodstuffs and make burgers

  big_smile

Last edited by tty-tourist (2013-11-23 23:35:56)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo