On Saturday 05 May 2007 05:00:11 Allin Cottrell wrote:
I've now experimented on Ubuntu 7.04, and I have to say I do not
understand how Ubuntu handles languages. Here's what I get,
typing the following commands in an xterm (with the locale decimal
character selected in gretl):
I repeated your steps, and run the suggested commands, obtaining the
following:
LANGUAGE=spanish gretl
-- I get the Spanish translation, but not the decimal comma.
The same as you.
LANG=spanish gretl
-- English strings plus decimal comma
I obtain the error:
(gretl_x11:7453): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
and gretl appears in english.
LANGUAGE=spanish LANG=spanish
-- (expected by now) Spanish strings plus decimal comma.
The same error:
LANGUAGE=spanish LANG=spanish gretl
(gretl_x11:7466): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
and gretl working in english.
LANGUAGE=spanish LC_ALL=spanish
-- same as above.
And again:
LANGUAGE=spanish LC_ALL=spanish gretl
(gretl_x11:7478): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
and gretl appears in english as well.
LANGUAGE=spanish LC_NUMERIC=spanish gretl
-- Spanish strings, no decimal comma (this seems to me to be
broken).
Now the same error is displayed, but gretl appears IN SPANISH:
LANGUAGE=spanish LC_NUMERIC=spanish gretl
(gretl_x11:7487): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
For comparison, on my own (non-Ubuntu, originally derived from
Slackware) Linux system I get Spanish strings and also the
decimal comma using
LANG=es_ES gretl
LANG=es_ES gretl
(gretl_x11:7500): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
And now gretl appears in English.
As for the -e or --english option, I can't replicate the problem.
In all cases where I get gretl to come up in Spanish, I can
prevent that by appending -e to the command line.
I can see no error when executing "gretl --english" (or gretl -e) but gretl
appears in Spanish.
On Saturday 05 May 2007 05:05:35 Allin Cottrell wrote:
One other thing occurs to me: Could you do "env" in an
xterm and
report any language-related settings that appear?
etpdihei@ataul:~$ env
KDE_MULTIHEAD=false
SSH_AGENT_PID=5827
DM_CONTROL=/var/run/xdmctl
TERM=xterm
SHELL=/bin/bash
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
GTK2_RC_FILES=/home/etpdihei/.gtkrc-2.0-kde:/home/etpdihei/.kde/share/config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/etpdihei/.gtkrc:/home/etpdihei/.kde/share/config/gtkrc
GS_LIB=/home/etpdihei/.fonts
WINDOWID=50331655
KDE_FULL_SESSION=true
USER=etpdihei
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
SSH_AUTH_SOCK=/tmp/ssh-lKPOpq5788/agent.5788
SESSION_MANAGER=local/ataul:/tmp/.ICE-unix/5882
KONSOLE_DCOP=DCOPRef(konsole-6298,konsole)
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/gretl/bin
DESKTOP_SESSION=default
KONSOLE_DCOP_SESSION=DCOPRef(konsole-6298,session-1)
PWD=/home/etpdihei
LANG=es_ES.UTF-8
HISTCONTROL=ignoreboth
HOME=/home/etpdihei
SHLVL=1
XCURSOR_THEME=kubuntu
LOGNAME=etpdihei
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-VHlGrh68ye,guid=699f601a192cb1fedf381e00463ed1a1
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:0.0
LESSCLOSE=/usr/bin/lesspipe %s %s
COLORTERM=
_=/usr/bin/env
On Saturday 05 May 2007 05:30:30 Allin Cottrell wrote:
On Fri, 4 May 2007, Allin Cottrell wrote:
> One other thing occurs to me: Could you do "env" in an xterm and
> report any language-related settings that appear?...
Here are some smarter experiments to try in a terminal:
locale
locale -a
LANGUAGE=english gretl
etpdihei@ataul:~$ locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=
etpdihei@ataul:~$ locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
es_AR.utf8
es_BO.utf8
es_CL.utf8
es_CO.utf8
es_CR.utf8
es_DO.utf8
es_EC.utf8
es_ES.utf8
es_GT.utf8
es_HN.utf8
es_MX.utf8
es_NI.utf8
es_PA.utf8
es_PE.utf8
es_PR.utf8
es_PY.utf8
es_SV.utf8
es_US.utf8
es_UY.utf8
es_VE.utf8
POSIX
LANGUAGE=english gretl
It works. There is no error, and gretl appears in English.
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.et.bs.ehu.es