Inkscape doesn't use the preferred language on OS X
I can't get Inkscape to use the preferred language on OS X -- the UI always stay in English no matter what language is set the System Preferences.
I'm using the latest versions of Inkscape (0.44.1) and OS X (10.4.7). (The behavior was the same under 10.4.4.)
Any way to (re)solve this?
g.
Le 28 sept. 2006 à 21:09, Guillaume Grenier a écrit :
I can't get Inkscape to use the preferred language on OS X -- the UI always stay in English no matter what language is set the System Preferences.
I'm using the latest versions of Inkscape (0.44.1) and OS X (10.4.7). (The behavior was the same under 10.4.4.)
Any way to (re)solve this?
OK, replying to my own message here...
Seeing that I can't get Inkscape to automatically use the System language on OS X, I'm trying to find a way to manually set the language.
I've tried using the following command in xterm:
export LANG="fr_FR"
It seems to produce the wanted effect, because upon issuing the "locale" command, I get the following output:
LANG="fr_FR" LC_COLLATE="fr_FR" LC_CTYPE="fr_FR" LC_MESSAGES="fr_FR" LC_MONETARY="fr_FR" LC_NUMERIC="fr_FR" LC_TIME="fr_FR" LC_ALL="fr_FR"
However, Inkscape doesn't seem to recognize this and still runs in English. (I have quit and relaunched Inkscape in the same "X11 session" [or whatever...])
So... help, please?
g.
Guillaume Grenier escribió:
OK, replying to my own message here...
Seeing that I can't get Inkscape to automatically use the System language on OS X, I'm trying to find a way to manually set the language.
I've tried using the following command in xterm:
export LANG="fr_FR"
It seems to produce the wanted effect, because upon issuing the "locale" command, I get the following output:
LANG="fr_FR" LC_COLLATE="fr_FR" LC_CTYPE="fr_FR" LC_MESSAGES="fr_FR" LC_MONETARY="fr_FR" LC_NUMERIC="fr_FR" LC_TIME="fr_FR" LC_ALL="fr_FR"
However, Inkscape doesn't seem to recognize this and still runs in English. (I have quit and relaunched Inkscape in the same "X11 session" [or whatever...])
So... help, please?
g.
This would look more like a GTK problem than the environment variable (being that you're on an X11 session but you can run different apps with different locales). Maybe setting this up in GTK might help? I'm not familiar with Inkscape in Windows or Machintosh platforms, so I can't really tell (besides, I do believe that GTK-- is statically linked in Inkscape, so it doesn't depend on having a GTK-- environment installed for platforms other than Linux, or should I say GTK+Linux, as I believe the autopackage packages are the same)
On Sat, Sep 30, 2006 at 04:28:32PM -0400, Guillaume Grenier wrote:
I've tried using the following command in xterm:
export LANG="fr_FR"
In doing this, you have set what is known as an ``Environment Variable''. It's scope is only local, meaning that only this program or the programs it runs (i.e. generally the programs you tell the shell to run) will ever see it.
It seems to produce the wanted effect, because upon issuing the "locale" command, I get the following output:
If you started another xterm and ran locale in this one then you would see the default locale settings -- this is similar to having Inkscape run at the same time, but not started by, the xterm with the correct locale settings.
However, Inkscape doesn't seem to recognize this and still runs in English. (I have quit and relaunched Inkscape in the same "X11 session" [or whatever...])
Yes, Inkscape would have to be run from a program with a modified enviroment (where you have set the LANG variable).
So... help, please?
Mac OS/X appears (I'm not a Mac user so don't know first hand) not to set the locale up for Unix processes at all, thus all Unix programs will use their default locale. I've had a little search and you may be able to use this to help:
http://developer.apple.com/qa/qa2001/qa1067.html
Sam
Le 1 oct. 2006 à 18:33, Sam Mason a écrit :
On Sat, Sep 30, 2006 at 04:28:32PM -0400, Guillaume Grenier wrote:
I've tried using the following command in xterm:
export LANG="fr_FR"
In doing this, you have set what is known as an ``Environment Variable''. It's scope is only local, meaning that only this program or the programs it runs (i.e. generally the programs you tell the shell to run) will ever see it.
<snip>
Mac OS/X appears (I'm not a Mac user so don't know first hand) not to set the locale up for Unix processes at all, thus all Unix programs will use their default locale. I've had a little search and you may be able to use this to help:
Thank you, this is most helpful. Making some progress, I think.
I've done what's described in the above page, and it seems to work fine... up to a point.
After creating the file, restarting my session, and firing up X11/ Inkscape, I get two things:
1. Happily, "fr_FR" results from the output of "locale"
(Which would suggest that I have successfully altered the *default values* of the environment variables, right? Which would be good progress.)
2. Sadly, an Inkscape UI that's still in English
Any ideas?
Is there a possibility that I somehow need to take some actions to make Inkscape "recognize/find" the French "inkscape.mo" file?
g.
On Sun, Oct 01, 2006 at 08:37:33PM -0400, Guillaume Grenier wrote:
After creating the file, restarting my session, and firing up X11/ Inkscape, I get two things:
- Happily, "fr_FR" results from the output of "locale"
(Which would suggest that I have successfully altered the *default values* of the environment variables, right? Which would be good progress.)
Sounds good.
Minor note, environment variables don't really have default values. Rather programs interpret the variables and if they are missing the program will use its defaults.
- Sadly, an Inkscape UI that's still in English
Any ideas?
Is there a possibility that I somehow need to take some actions to make Inkscape "recognize/find" the French "inkscape.mo" file?
Do you get any messages when you start Inkscape (in a terminal emulator like xterm)? I've just tried to get Inkscape running in a different locale (under Debian GNU/Linux) and it proved to be suitably picky (I think I'm expecting too much).
I had to edit a configuration file (/etc/locale.gen) then run the program locale-gen, but I have a feeling they aren't going to exist on a Mac system. Once I had done that then I could set a French locale and everything worked.
The main thing I had to go by, to figure out if it was working, was that I got a message when it was broken:
(inkscape:28573): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
Sam
Bit of an ugly hack but if you rename the fr_FR to be en_US or whatever the default on being used is it should work. Doesnt fix the underlying issue, which hopefully you've filed a bug on in the tracker, but it will get you an interface in french...
--- Sam Mason <sam@...2002...> wrote:
On Sun, Oct 01, 2006 at 08:37:33PM -0400, Guillaume Grenier wrote:
After creating the file, restarting my session, and firing up X11/ Inkscape, I get two things:
- Happily, "fr_FR" results from the output of "locale"
(Which would suggest that I have successfully altered the *default
values* of the environment variables, right? Which would be good progress.)
Sounds good.
Minor note, environment variables don't really have default values. Rather programs interpret the variables and if they are missing the program will use its defaults.
- Sadly, an Inkscape UI that's still in English
Any ideas?
Is there a possibility that I somehow need to take some actions to
make Inkscape "recognize/find" the French "inkscape.mo" file?
Do you get any messages when you start Inkscape (in a terminal emulator like xterm)? I've just tried to get Inkscape running in a different locale (under Debian GNU/Linux) and it proved to be suitably picky (I think I'm expecting too much).
I had to edit a configuration file (/etc/locale.gen) then run the program locale-gen, but I have a feeling they aren't going to exist on a Mac system. Once I had done that then I could set a French locale and everything worked.
The main thing I had to go by, to figure out if it was working, was that I got a message when it was broken:
(inkscape:28573): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
Sam
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D...
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (4)
-
Gian Paolo Mureddu
-
Guillaume Grenier
-
John Cliff
-
Sam Mason