On Tue, 10 Jul 2001, Peter Suetterlin wrote:

> Matthias Bunk wrote:
> > I've done a few tests and this come out:
> > If I do a "./configure --prefix=/usr" everythings works as expected
> > (German menus and dialogs, German help, ...). But if I do "./configure
> > --prefix=/usr/local" then the menus and dialogs are English and the help
> > is German. It seems there's something wrong with configure or make
> > install.
>
> I have lyx installed in /usr/local, and it does read the correct lyx.mo.
> So, the idea is that maybe there is a wrong lyx.mo on your system?
> what does a
>   strace lyx 2>&1 | grep lyx.mo
> tell you?  Which file is read?

When I install lyx in /usr the following lines appears:
open("/usr/share/locale/de_DE.ISO-8859-1/LC_MESSAGES/lyx.mo", O_RDONLY)
  = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.iso88591/LC_MESSAGES/lyx.mo" ...
open("/usr/share/locale/de_DE/LC_MESSAGES/lyx.mo" ...
open("/usr/share/locale/de.ISO-8859-1/LC_MESSAGES/lyx.mo" ...
open("/usr/share/locale/de.iso88591/LC_MESSAGES/lyx.mo" ...
open("/usr/share/locale/de/LC_MESSAGES/lyx.mo", O_RDONLY) = 4

When I install lyx in /usr/local:
open("/usr/local/share/locale/german/LC_MESSAGES/lyx.mo", O_RDONLY) = -1
ENOENT (No such file or directory)

environment: LANGUAGE=german and LANG=de_DE

And now I know where's the problem:
Lyx use the LANGUAGE variable and in /usr/share/locale/locale.alias is
the alias "german de_DE.ISO-8859-1" registred, but such an alias file is
not under /usr/local. After a symbolic link erverything works as
expected. :-)

A little curious is that the help uses the LANG variable, not
LANGUAGE like for the menu.

Thanks!
-- 
Matthias Bunk | [EMAIL PROTECTED]

Reply via email to