2010/3/24 Benny Malengier <benny.malengier@gmail.com>


2010/3/24 Ralf Lehmeier <r.lehmeier@freenet.de>

Mirko Leonhäuser schrieb:

> Hallo,
>
> for the solution in english look at:
>
> http://www.gramps-project.org/wiki/index.php?title=GRAMPS_and_Windows
>
>
> Here a short description in German.
>
>
> die Beispiel Batch Datei ist für die Deutsche Sprache
>
> wichtig ist die beiden Systemvariablen
>
>
>    LANG=de_DE.UTF8
>
>    LANGUAGE=de_DE.UTF8
>
> zu setzen.
> Es sind beide Variablen notwendig damit sowohl das Programm als auch die
> Zusätze wie z.B. der Verwandschaftsrecher in Deutsch sind.
>
> Greatings/ Grüße
>
> M. Leonhäuser
>

A very complicated solution to such a simple problem. :-(

Do feel free to let us know how simple it is.

Specifically how in
http://gramps.svn.sourceforge.net/viewvc/gramps/branches/maintenance/gramps32/src/TransUtils.py?view=markup
the lovely function
def setup_windows_gettext():
must be changed. Extra points if you can fix the dll mess on windows with intl.dll at the same time.

Gramps uses a cross platform system for language determination. We are only waiting for Microsoft to implement it :-)

If you do not feel like setting the LANG variable yourself, you can or figure out why setup_windows_gettext() does not do the trick via your locale defenition, or change line 173:
   lang = os.environ["LANG"]
to the lang you always want to start up with.

Looked at the code to quickly, this will not work, it is just to print a warning if it failed. You should set os.environ["LANG"] at the beginning of this function, so that calling the dll picks it up I believe.

Benny