postiffm / bibledit-desktop

Desktop version of Bibledit
GNU General Public License v3.0
4 stars 6 forks source link

On French Windows 10 bb is in English #50

Closed LAfricain closed 6 years ago

LAfricain commented 6 years ago

After installing BB on windows it was not displaying to French only to English. Another remark, maybe it should be named Bibledit-Desktop and not Bibledit because bibledit is currently the Teus one...

postiffm commented 6 years ago

Make sure you are using the following command line in your shortcut that starts Bibledit-Desktop. "C:\Program Files\Bibledit-4.12\editor\bin\bibledit-fr.cmd" --debug

I just committed an improved version of the .cmd file to the repo. Try putting that in C:\Program Files\Bibledit-4.12\editor\bin (or similar, depending on your version)...

Please send additional information if you are able. I can confirm that the same bug happens on my end. Not sure what changed to cause this error.

postiffm commented 6 years ago

In "French" mode on my computer, there appears to be a problem with this build variable from config.h.

BIBLEDIT_LOCALEDIR /mingw64/share/locale

Some others are not quite right either:

T1 LANGUAGE fr T1 LANG LANG variable not specified T1 LC_ALL English_United States.1252 T1 LC_CTYPE English_United States.1252

postiffm commented 6 years ago

The problem is that the bibledit-desktop.mo file was not in the right spot. It needs to be in C:\Program Files\Bibledit-4.14\editor\share\locale\fr\LC_MESSAGES\bibledit-desktop.mo.

The file was there, but incorrectly named as just bibledit.mo. I'm not sure how this came about. Version 4.14 (to be released soon) will fix this problem.

postiffm commented 6 years ago

In debugging this, I found something else strange. Debug output shows the following on windows:

BIBLEDIT_LOCALEDIR /mingw64/share/locale

This is incorrect--Windows can't interpret this path. it is defined on the build command line like this:

-DBIBLEDIT_LOCALEDIR=\"/mingw64/share/locale\"

and also it is defined in bibledit-desktop/config.h like this:

define BIBLEDIT_LOCALEDIR "/mingw64/share/locale"

It should be

define BIBLEDIT_LOCALEDIR "C:\Program Files\Bibledit-4.14\editor\share\locale"

I would think that the right way to fix this is to build it like this:

./configure --prefix "C:/Program Files/Bibledit-4.14/editor"

Unfortunately, this results in g++ erroring out with a message like "Files/Bibledit-4.14/editor/share/locale/ not found." It doesn't like the space in the path name, and perhaps this needs to be double-escaped in the Makefile for it to work. I'm not sure.

Anyone have ideas?

postiffm commented 6 years ago

This is verified as fixed.