[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: =?iso-8859-1?Q?=22Accept-Language=22?= in Konqueror
From:       Hans Petter Bieker <bieker () stud ! ntnu ! no>
Date:       2001-08-23 19:48:18
[Download RAW message or body]

On Thu, 23 Aug 2001, Gaute Hvoslef Kvalnes wrote:

> Yes, Konqueror is this stupid :( (It's really bad in Norwegian, since both
> Norwegian language codes are 'wrong'.)

I think I know how to solve this.

When we're moving to ISO 639-2/T, this will be a problem with all
langauges. When the program calls KLocale::languageList(), it should
return a list of ISO 639-1 codes I guess. This can be solved by having a
file like this:

--- /share/locale/language.codes ---
[Languages]
bno=nb,no
nno=nn,no
deu=de
por_BR=pt
por=pt

When languageList() is called, it will use the internal codes and look
them up in that list, adn return the result.

For instance:
If you have specified nno,nno,deu, you will get:
"nn", "no", "nb", "no", "de"
or perhaps just:
"nn", "no", "nb", "de" (because we shouldn't list a language more than one
time.)

Shouldn't this solve it?

We could also add this to the entry.desktop file, but then it wouldn't
work if the language wasn't installed. And that might not be OK.

Norwegian University of Science and Technology, Engineering Cybernetics
          bieker@stud.ntnu.no / bieker@kde.org / +47 97651633
                Dagaliveien 25 A  |  Elgesetergate 23 B
                N-0776 Oslo       |  N-7030 Trondheim
  Siste nytt fra industrien finner du på: WWW.Industri-Informasjon.NO

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic