On Wed, Apr 26, 2006 at 12:18:34AM +0200, Enrico Forestieri wrote:

> On Tue, Apr 25, 2006 at 08:41:32PM +0000, Angus Leeming wrote:
> 
> > Enrico Forestieri <[EMAIL PROTECTED]> writes:
> > > Angus, can you try the attached patch? It works for me.
> > > In any case, moving around the whole LyX dir I can get localized menus.
> > 
> > I can certainly try but a couple of questions first:
> > 
> > why are we falling through to hardcoded_localedir(). I could have sworn that
> > there was code to find the locale dir relative to the directory holding the 
> > LyX
> > executable?
> 
> Good question. All I can say is that I had your same opinion but this
> led me to the wrong direction (intl/relocatable.c).

And we were both right, of course, only somewhat blind...

Please, have a look at the attached patch... How embarassing... there
even is a LYX_LOCALEDIR env var fitting the purpose.

-- 
Enrico
--- src/support/package.C.in.orig       2006-04-17 07:03:06.000000000 +0200
+++ src/support/package.C.in    2006-04-26 01:14:48.000000000 +0200
@@ -689,7 +689,11 @@ bool check_env_var_dir(string const & di
 // The locale directory relative to the LyX system directory.
 string const relative_locale_dir()
 {
+#if defined (USE_WINDOWS_PACKAGING) || defined (USE_MACOSX_PACKAGING)
+       return "../Resources/locale/";
+#else
        return "../locale/";
+#endif
 }
 
 

Reply via email to