>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> | Any objection to the patch, someone?

Lars> What happens if you put the locale files are somewhere else?

Lars> Is it possible to have this not work by using a non-standard set
Lars> of configure arguments?

Actually, yes. If there is no directory $$lyxdir/../locale/, nothing
happens. However, you can have problems if you have set up your
directories like

./configure --prefix=/usr/share --localedir=/usr/lib/locale

/usr/lib/locale/... [the compile time vlue, where lyx.mo files
                     actually are]
/usr/share/locale/... [a directory where nothing relevant to lyx
                     exists]
/usr/share/lyx/ [the lyx data directory]

Since the directory /usr/share/locale/ exists, LyX will not fall back
to the compile time value /usr/lib/locale/. So this is indeed a bad
case (but one can always set the variable LYX_LOCALEDIR to override
this).

I do not know of a good way to have this work 100% actually. But I
think we need something like that, so that the common case of
relocating rpms of osx bundles works out of the box. There is some
code in gettext to --enable-reelocatable, but it seems sooo
complicated that I did not take a very hard look at it. Maybe I
should.

JMarc

Reply via email to