WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: german localisation  (Read 3253 times)

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
german localisation
« on: August 15, 2010, 12:09:59 PM »
I studied the forum and the wiki. After that I could expand my system already quite well as a "german system" - even though some, for lack of knowledge, a little voodoo ...

So far I did the following :

Code: [Select]
tce-load -w glibc_apps
tce-load -w glibc_i18n_locale
tce-load -w glibc_gconv

tce-load -i glibc_apps
tce-load -i glibc_i18n_locale
tce-load -i glibc_gconv

sudo su

mkdir -p /usr/lib/locale

localedef -i de_DE -f ISO-8859-1 de_DE
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
localedef -i de_DE -f UTF-8 de_DE.UTF-8

echo "usr/lib/locale/locale-archive" >> /opt/.filetool.lst

echo "glibc_gconv.tcz" >> $(cat /opt/.tce_dir)/onboot.lst

Then a bit of Voodo (I do not know what's really needed):

Code: [Select]
tce-load -w glib2-locale.tcz
tce-load -w glibc_i18n_locale.tcz
tce-load -w icu.tcz
tce-load -w gucharmap-locale.tcz
tce-load -w libiconv-locale.tcz
tce-load -w util-linux-ng-locale.tcz

echo "glib2-locale.tcz" >> $(cat /opt/.tce_dir)/onboot.lst
echo "glibc_i18n_locale.tcz" >> $(cat /opt/.tce_dir)/onboot.lst
echo "icu.tcz" >> $(cat /opt/.tce_dir)/onboot.lst
echo "gucharmap-locale.tcz" >> $(cat /opt/.tce_dir)/onboot.lst
echo "libiconv-locale.tcz" >> $(cat /opt/.tce_dir)/onboot.lst
echo "util-linux-ng-locale.tcz" >> $(cat /opt/.tce_dir)/onboot.lst

And then, because I work in bash (can not work without CTRL+R) and need mc:

Code: [Select]
echo "bash-locale.tcz" >> $(cat /opt/.tce_dir)/onboot.lst
echo "mc-locale.tcz" >> $(cat /opt/.tce_dir)/onboot.lst

Then added bootcodes in boot/grub/menu.lst :

Code: [Select]
lang=de_DE.UTF-8 kmap=de_alt_UTF-8
backup / reboot

This already looks very good times ...
geany, emel firefox, thunderbird running good ...
The days of aterm is counted lxterm is my new friend ...

But now my problems :

1.) file system
Code: [Select]
echo "äöü€" > äöü€.txt

ls -l äöü€.txt
-rw-r--r--    1 tc       staff           10 Aug 15 17:12 ?????????.txt

cat äöü€.txt
äöü€

The file name is garbled, even when I look at with emel.

However, when I create the file with emel, the name is correctly displayed. But only in emel (geany too ...), but not in the console:

Code: [Select]
ls -l *_emel*
-rw-r--r--    1 tc       staff            0 Aug 15 17:27 ???_emel.txt

MC always shows garbage, no matter how I create the file.

2.) MC
MC will start in German, but the "german umlauts" in messages are displayed wrong. For example, he shows "MenM-CM <" instead of "Menü".

3.) Samba-Shares
I mount my samba shares as follows

Code: [Select]
/bin/mount -t cifs //192.168.252.12/tmp /mnt/venus2.egs2.local/tmp   -o uid=1001,gid=50,file_mode=0770,dir_mode=0770,iocharset=utf8,user=USER,password=PASSWORD

so with the Option iocharset=utf8. However, the file name with German umlauts are displayed wrong. Both in the console, as well as in emel.

Funny is that I can enter the name in the console properly (even the completion with TAB works!!!), but he will then be displayed incorrectly :

Code: [Select]
ls-l /mnt/venus2.egs2.local/tmp/saitensprünge.iso
-rwxrwx---    1 tc       staff    682669948 Dec 23  2008 /mnt/venus2.egs2.local/tmp/saitenspr??nge.iso

Maybe someone can help me. In the forum I have seen that some are from Germany here ... even if Bielefeld does not really exist ...

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: german localisation
« Reply #1 on: August 15, 2010, 12:45:30 PM »
1) Which fs?

2, 3) In which console? Looks to be a missing font.
The only barriers that can stop you are the ones you create yourself.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: german localisation
« Reply #2 on: August 15, 2010, 01:25:08 PM »
Quote
1) Which fs?

ext3 and cifs

Quote
2, 3) In which console? Looks to be a missing font.

LXTerminal, urxvt, but also over ssh (from konsole/KDE).

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: german localisation
« Reply #3 on: August 15, 2010, 02:56:56 PM »
Looks like it's just busybox' ls not being completely locale-aware. Install coreutils.

As for console apps, it might be because our ncurses is not the UTF version to save space.
The only barriers that can stop you are the ones you create yourself.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: german localisation
« Reply #4 on: August 15, 2010, 03:15:07 PM »
Oooooooh YES !!!

This looks like a lot better and also works with the samba-shares.

But unfortunately not for mc ... ;-(



BTW: I have coreutils thrown out of onboot.lst a few days ago ...

Offline eluring

  • Newbie
  • *
  • Posts: 22
Re: german localisation
« Reply #5 on: August 20, 2010, 04:31:36 PM »
Quote
I have seen that some are from Germany here ...
and now 1 more.
Thanks for your "voodoo"

I have used it, see
 http://forum.tinycorelinux.net/index.php?topic=6989.msg37171#msg37171


Everyone is a foreigner, almost everywhere.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: german localisation
« Reply #6 on: August 20, 2010, 04:48:14 PM »
Unfortunately I had in the meantime some trouble with the (tiny) UTF-8 setup. Currently is UTF-8 support of tiny inconsistent. I am therefore changed to de_DE@euro. My current setup, you can read here:

http://forum.tinycorelinux.net/index.php?topic=7025.msg37126#msg37126

+

G_FILENAME_ENCODING=iso8859-15 in /etc/profile