Posts: 128
Hannes Worst
Joined: 31 Jan 2009

03 Jul 2009, 16:59 #1

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? __{{emoticon}}__
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#2
I don't know what went wrong but the solution found in Google (that you may have already found too) is 'localedef'.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.linuxquestions.org/questions/linux-software-2/gtk-warning-locale-not-supported-by-c-library-202951/"
linktext was:"http://www.linuxquestions.org/questions ... ry-202951/"
====================================
" onclick="window.open(this.href);return false
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

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ubuntuforums.org/showthread.php?t=325102&highlight=locale+error"
linktext was:"http://ubuntuforums.org/showthread.php? ... cale+error"
====================================
" onclick="window.open(this.href);return false
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
Maybe you need to reset the locales again and then check /etc/default/locale and /etc/profile are in the language you set.
Posts: 128
Hannes Worst
Joined: 31 Jan 2009
#4
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.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#5
What about creating a menu option like this.

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

and leave the profile as it is.
Hannes Worst
Posts: 128
Hannes Worst
Joined: 31 Jan 2009
#6
Yes Anti, you are right. I think that's the way to handle it. Thanks! __{{emoticon}}__
Posts: 128
Hannes Worst
Joined: 31 Jan 2009
#7
Does anyone know how to do this with IceWM-menu? __{{emoticon}}__
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#8
Does this work? (I don't think it does)

prog"Ted-nl" - LANG=nl_NL Ted
Posts: 128
Hannes Worst
Joined: 31 Jan 2009
#9
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.
Posts: 128
Hannes Worst
Joined: 31 Jan 2009
#10
In the meanwhile I found it! The right syntax is: prog"Ted" - env LANG=nl_NL Ted .Now its working allright in IceWM too.