On 19-04-2009, at 22:45, Allin Cottrell wrote:
On Sun, 19 Apr 2009, Henrique wrote:
On Sat, Apr 18, 2009, Allin Cottrell wrote:
It would be great if you could try to find out why the others are
not working. Os X is very quirky and I don't have much access to
it. Gretl treats all the supported languages in the same manner.
Ok, I going to investigate this. I think the starting point is
to know what exactly gretl does to change languages on OS X. So,
can you explain me this process?
Thanks! Gretl sets the LANG environment variable -- and also, for
OS X, the LANGUAGE variable -- so in effect it's mimicking a
setting that the user can do via the shell.
Therefore, I think the best way to test this is from the command
prompt in an xterminal, leaving aside gretl's new language
selector. (That is, make sure that gretl's language selector is
set to "Automatic".)
Now, for example, I have gretl installed at
/Users/allin/dist/Gretl.app
on my wife's iMac. I open an xterm and cd to
/Users/allin/dist/Gretl.app/Contents/Resources/bin
Now, if I do
LANG=it_IT LANGUAGE=italian ./gretl
gretl opens in Italian. Good. And if I do
LANG=pl_PL LANGUAGE=polish ./gretl
I get Polish.
But if I do
LANG=fr_FR LANGUAGE=french ./gretl
or
LANG=es_ES LANGUAGE=spanish ./gretl
gretl opens in English, not French or Spanish. Why? That's the
question I need answered. All the relevant message catalogs are
in place. And I've tried substituting "francais", "espanol" for
the LANGUAGE settings, to no avail.
I am running Mac OS X 10.5.6.
When I run Gretl 1.8.0 from the official distribution with
LANG=fr_FR LANGUAGE=french ./gretl
in the directory Contents/Resources/bin then Gretl starts up with English as language.
I do this from Terminal where I get the message
setlocale(LC_NUMERIC, "en_GB") returned en_GB
Same thing (Gretl in English) happens with italian LANG=it_IT LANGUAGE=italian ./gretl
and polish.
So the official Gretl 1.8.0 always seems to start with English in my environment.
And now the big surprise.
Gretl 1.8.0cvs (not the very latest version) compiled in my environment independently from Fink using GTK2.14.3 from the R Mac OS X project correctly sets the language. I have tried italian, polish, spanish and french.
All four are set correctly. I do not get the message about setlocale.
This doesn't work if LANGUAGE is not set.
I see that official Gretl has a lib/libintl.3.dylib ((compatibility version 8.0.0, current version 8.3.0)
The Mac OS X R-projects GTK 2.14.3. has libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
I see that a LANGUAGE variable does seem to have an influence.
Below you will see the result of running otool -L gretl_x11 on Gretl 1.8.0 (official) and on Gretl 1.8.0cvs (R's GTK 2.14.3).
Berend
The result of otool -L gretl_x11 in Gretl 1.8.0 (official)
gretl_x11:
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
/sw/lib/libgtk-x11-2.0.0.dylib (compatibility version 601.0.0, current version 601.10.0)
/sw/lib/libgdk-x11-2.0.0.dylib (compatibility version 601.0.0, current version 601.10.0)
/usr/X11R6/lib/libXrandr.2.dylib (compatibility version 2.0.0, current version 2.0.0)
/usr/X11R6/lib/libXinerama.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/X11R6/lib/libXext.6.dylib (compatibility version 6.4.0, current version 6.4.0)
/usr/X11R6/lib/libXcursor.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/sw/lib/libatk-1.0.0.dylib (compatibility version 1215.0.0, current version 1215.0.0)
/sw/lib/libpangoxft-1.0.0.dylib (compatibility version 1002.0.0, current version 1002.0.0)
/usr/X11R6/lib/libXft.2.dylib (compatibility version 2.1.0, current version 2.1.0)
/usr/X11R6/lib/libXrender.1.dylib (compatibility version 1.2.0, current version 1.2.0)
/sw/lib/libpangox-1.0.0.dylib (compatibility version 1002.0.0, current version 1002.0.0)
/usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0)
/sw/lib/libpangoft2-1.0.0.dylib (compatibility version 1002.0.0, current version 1002.0.0)
/usr/X11R6/lib/libfontconfig.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/X11R6/lib/libfreetype.6.dylib (compatibility version 6.3.0, current version 6.3.0)
/sw/lib/libpango-1.0.0.dylib (compatibility version 1002.0.0, current version 1002.0.0)
/Users/allin/dist/Gretl.app/Contents/Resources/lib/libgretl-1.0.0.dylib (compatibility version 1.0.0, current version 1.50.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11)
/sw/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.27.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/sw/lib/libgmp.3.dylib (compatibility version 7.0.0, current version 7.3.0)
/sw/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 601.0.0, current version 601.10.0)
/sw/lib/libgobject-2.0.0.dylib (compatibility version 1201.0.0, current version 1201.12.0)
/sw/lib/libgmodule-2.0.0.dylib (compatibility version 1201.0.0, current version 1201.12.0)
/sw/lib/libglib-2.0.0.dylib (compatibility version 1201.0.0, current version 1201.12.0)
/sw/lib/libintl.3.dylib (compatibility version 8.0.0, current version 8.3.0)
/sw/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
The result of otool - L gretl_x11 of my Gretl
gretl_x11:
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libgtk-x11-2.0.0.dylib (compatibility version 1401.0.0, current version 1401.3.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libgdk-x11-2.0.0.dylib (compatibility version 1401.0.0, current version 1401.3.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libatk-1.0.0.dylib (compatibility version 2410.0.0, current version 2410.1.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libpangocairo-1.0.0.dylib (compatibility version 2201.0.0, current version 2201.0.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libpangoft2-1.0.0.dylib (compatibility version 2201.0.0, current version 2201.0.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libcairo.2.dylib (compatibility version 10803.0.0, current version 10803.0.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libpixman-1.0.dylib (compatibility version 13.0.0, current version 13.0.0)
/usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libpango-1.0.0.dylib (compatibility version 2201.0.0, current version 2201.0.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.18.0)
/Users/berendhasselman/tmp/gretl-i386/lib/libgretl-1.0.0.dylib (compatibility version 1.0.0, current version 1.50.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)
/usr/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.16.0)
/usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current version 36.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/Users/berendhasselman/tmp/gretl-i386/lib/libgmp.3.dylib (compatibility version 8.0.0, current version 8.4.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 1401.0.0, current version 1401.3.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libgio-2.0.0.dylib (compatibility version 1801.0.0, current version 1801.1.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libgobject-2.0.0.dylib (compatibility version 1801.0.0, current version 1801.1.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libgmodule-2.0.0.dylib (compatibility version 1801.0.0, current version 1801.1.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libglib-2.0.0.dylib (compatibility version 1801.0.0, current version 1801.1.0)
/Library/Frameworks/GTK+.framework/Versions/2.14.X11/Resources/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.17.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0)