[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES language detection via appl_getinfo()



Am 27.01.2012, 08:41 Uhr, schrieb Jo Even Skarstein <joska@online.no>:

On Thu, 26 Jan 2012 22:09:49 +0100, Helmut Karlowski <helmut.karlowski@ish.de> wrote:

Have you tried lang=us?

Where is this set? Is this a setting in mint.cnf/xaaes.cnf? I would

Yes.

assume that most people that are using Falcons set the language in NVRAM. In that case "English" would be 0.

There is a "fix" that is actually a bug that causes lang to be taken from keyboard if lang from AKP is 0 and there is no other setting. Will remove this.

I used an unused string already in the source: countrycodes[] = "usdefrenesitsefsgstrfinod..."

This gives for English 3, which is undefined according to toshyp. Should en be mapped to 0 (== us)?

Shouldn't 3 be "uk"? That's what I found in MiNT sources a couple of years ago.

I like en=0 and uk=3 much better.

Anyway, that shouldn't matter. What matters is the setting in the _AKP cookie, and that's a number and not a string. 0 is US english and 3 is UK english according to the docs (and sources) I've seen. If UK english is undefined then there shouldn't be a problem to consider 0 and 3 to be equal.

See above ;-)

--
Helmut Karlowski

http://www.netmeister.org/news/learn2quote2.html#ss2.5