On Thursday 07 November 2002 2:47 pm, Jean-Marc Lasgouttes wrote: > The problem is the in the build tree we have de.mo, whereas the locale > code looks for .../LC_MESSAGES/de/lyx.mo. So it is difficult to map > the two (a hardlink in the right place works, though)
Oh, come on. Nothing is that hard. Why don't we make a bunch of symlinks at compile time $BUILDDIR/po/$lang/LC_MESSAGES/lyx.mo -> $SRCDIR/po/$lang.gmo Running the attached script from $BUILDDIR/po makes the symlinks. Since it is hacked straight out of the Makefile, couldn't we get the Makefile to do this on "make"? and set the localedir in gettext_init to $BUILDDIR/po if LyX isn't installed (which we do know I assume?) Here I have set LYX_LOCALEDIR=$BUILDDIR/po and all is fine. I also attach a screenshot of the document dialog when the locale is set to de_DE. Looks like your fdesign suggestion works beautifully. Shall I apply it to the repository? Angus
locale.sh
Description: application/shellscript
<<attachment: doc_de.png>>