Page 1 of 1

upgrade disturbs localization

PostPosted: Fri Jul 03, 2009 6:59 pm
by Hannes Worst
After an upgrade last night a lot of programs are displayed in English instead of my choosen locale.

When I command them through a terminal I get the following message:

(process:7011): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

What went wrong? :shock:

Re: upgrade disturbs localization

PostPosted: Fri Jul 03, 2009 9:12 pm
by secipolla
I don't know what went wrong but the solution found in Google (that you may have already found too) is 'localedef'.
http://www.linuxquestions.org/questions ... ry-202951/
From 'man localedef'
Code: Select all
EXAMPLES
       Compile the locale files for Finnish in the UTF-8 character set and add
       it to the default locale archive with the name fi_FI.UTF-8:

              localedef -f UTF-8 -i fi_FI fi_FI.UTF-8

       The same, but generate files into the current directory (note that  the
       last argument must then contain a slash):

              localedef -f UTF-8 -i fi_FI ./


There's this other solution too
http://ubuntuforums.org/showthread.php? ... cale+error

Re: upgrade disturbs localization

PostPosted: Fri Jul 03, 2009 9:33 pm
by anticapitalista
Maybe you need to reset the locales again and then check /etc/default/locale and /etc/profile are in the language you set.

Re: upgrade disturbs localization

PostPosted: Fri Jul 03, 2009 11:21 pm
by Hannes Worst
I figured it out a bit. It didn't have to do with an upgrade, but with me installing Ted wordprocessor. To get Ted in dutch, I set my .profile file to LANG=nl_NL instead of LANG=nl_NL.UTF-8.. This gave me Ted in dutch language, but the rest in English. It seems that I have the option to have Ted in Dutch and the rest in English or Ted in English and the rest in Dutch.

Re: upgrade disturbs localization

PostPosted: Fri Jul 03, 2009 11:35 pm
by anticapitalista
What about creating a menu option like this.

[exec] (Ted-NL) {LANG=nl_NL Ted}

and leave the profile as it is.

Re: upgrade disturbs localization

PostPosted: Sat Jul 04, 2009 9:05 am
by Hannes Worst
Yes Anti, you are right. I think that's the way to handle it. Thanks! :D

Re: upgrade disturbs localization

PostPosted: Sat Jul 04, 2009 1:21 pm
by Hannes Worst
Does anyone know how to do this with IceWM-menu? :?:

Re: upgrade disturbs localization

PostPosted: Sat Jul 04, 2009 3:04 pm
by anticapitalista
Does this work? (I don't think it does)

prog "Ted-nl" - LANG=nl_NL Ted

Re: upgrade disturbs localization

PostPosted: Sat Jul 04, 2009 3:31 pm
by Hannes Worst
I'm affraid not. But I'm searching through the IceWM-manuals to find the right solution. It's a mather of the right syntax.

Re: upgrade disturbs localization

PostPosted: Sun Jul 05, 2009 7:37 am
by Hannes Worst
In the meanwhile I found it! The right syntax is: prog "Ted" - env LANG=nl_NL Ted .Now its working allright in IceWM too.