Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: hjbtce on April 26, 2014, 10:01:53 AM

Title: xfe/xfw ignore LANG settings
Post by: hjbtce on April 26, 2014, 10:01:53 AM
I've installed xfe and xfe-locale. LANG is set do "de". a grep on xfe.mo confirms that it contains german strings but xfe/xfw still start with english menus.

Any hints?
Title: Re: xfe/xfw ignore LANG settings
Post by: curaga on April 26, 2014, 01:48:09 PM
Have you installed a german locale (with getlocale.tcz)?
Title: Re: xfe/xfw ignore LANG settings
Post by: Misalf on April 26, 2014, 03:05:58 PM
Exit out of X (CTRL+Alt+Backspace) then
Code: [Select]
$ export LANG=de_DE
$ startx

Lauch Xfe with german locale.
I just tryed it - works for me.
Title: Re: xfe/xfw ignore LANG settings
Post by: hjbtce on April 26, 2014, 03:26:43 PM
Exit out of X (CTRL+Alt+Backspace) then
Code: [Select]
$ export LANG=de_DE
$ startx

Lauch Xfe with german locale.
I just tryed it - works for me.
Lucky guy ... It makes no difference for me. And it is not practicable. In the meantime I installed getlocale, run getlocale.sh and selected "de_DE.UTF-8". The bootcode is set and in a terminal I can see that $LANG contains it as well. Does it make a difference, that /tmp/tcloop/...xfe-locale/... only contains an "de" directory and not "de_DE". Renaming/linking is not possible as it is mounted readonly.
Title: Re: xfe/xfw ignore LANG settings
Post by: Misalf on April 27, 2014, 10:17:27 AM
[...] And it is not practicable. [...]
Sure, I tryed if it works in general and it does for me.

Quote
In the meantime I installed getlocale, run getlocale.sh and selected "de_DE.UTF-8". The bootcode is set and in a terminal I can see that $LANG contains it as well.
I also tryed via boot code  lang=de_DE  and  lang=de_DE.UTF-8
Both does work.

Quote
Does it make a difference, that /tmp/tcloop/...xfe-locale/... only contains an "de" directory and not "de_DE". [...]
It's correct like that.

--

I don't think it's an Xfe related issue. Are you able to get any other program to use german locale?
Title: Re: xfe/xfw ignore LANG settings [solved]
Post by: hjbtce on April 28, 2014, 10:39:04 AM

--

I don't think it's an Xfe related issue. Are you able to get any other program to use german locale?

Thanks for your tests and hints. I got it working. I made a new installation with 5.3; previous was 4.7.something. Before installing xfe/xfw I installed and run getlocale*. After that I installed all xfe/w related stuff and now I get the menus in german. So that problem is solved.

But now I have a new problem (I will open another thread, but perhaps you have an idea): I can input german umlauts in xfw, but in aterm I get strange symbols when entering umlauts. I have kmaps installed, set boot code kmap to qwertz/de-latin1 and put the corresponding loadkeys definition in /opt/bootlocal.sh. Seems a mismatch between latin1 and UTF-8 but I'm quite shure this problem didn't exist in my previous installation. I will try to load only qwertz/de.
Title: Re: xfe/xfw ignore LANG settings
Post by: Misalf on April 28, 2014, 12:25:08 PM
Yes, open a new thread please. I wasn't able to get Aterm displaying Umlaute / using UTF-8 correctly, either.

Actually, there might already exist such a thread.