thanks for the ideas Jérôme but I don't think they are what's causing it. I did try some other debugging but still no dice. it's funny because if I copy the lang file and name it gramps.mo then all the strings are found. if i leave both gramps.mo and gramps32.mo in the dir and change the gramps.py file to look at gramps32 then only some of the strings are loaded? if it was just something set to the old file you'd think that leaving both files would find it in one or the other.... I did try running winpdb but couldn't find what variables to check in all the mess of them it brings up.
--AaronS


From: Jérôme <romjerome@yahoo.fr>
To: Aaron R. Short <fuzzyfonzy@yahoo.com>
Cc: gramps devel <gramps-devel@lists.sourceforge.net>
Sent: Friday, April 24, 2009 12:58:29 AM
Subject: Re: [Gramps-devel] multiple gramps versions installed

Aaron,

> I found something I missed. The internationalized files under locale get renamed by the patch to gramps32 but the code is still looking for "gramps".

On gramps.py :

#-------------------------------------------------------------------------
#
# Load internationalization setup
#
#-------------------------------------------------------------------------
if "GRAMPSI18N" in os.environ:
    loc = os.environ["GRAMPSI18N"]
elif os.path.exists( os.path.join(const.ROOT_DIR, "lang") ):
    loc = os.path.join(const.ROOT_DIR, "lang")
else:
    loc = os.path.join(const.PREFIXDIR, "share/locale")


on const.py.in :

if hasattr(sys, "frozen"):
    ROOT_DIR = os.path.abspath(os.path.dirname(
        unicode(sys.executable, sys.getfilesystemencoding())))
else:
    ROOT_DIR = os.path.abspath(os.path.dirname(
        unicode(__file__, sys.getfilesystemencoding())))

PREFIXDIR = "@prefix@"


Maybe Gramps is looking at your prefix, set as argument|option on ./autogen or configure ?


> when I run gramps there are still a few places that aren't getting internationalized. I've tried searching but can't seem to find anything.

There was some issues under Windows OS with msgfmt.py, used for generating binary translations files : some strings was ignored like entries on lists. (msgfmt.py and python < 2.5.1)

Also, as 3.1.x supports plural forms, Windows OS packager needs to use "GnuWin32 gettext" http://gnuwin32.sourceforge.net/packages/gettext.htm
because msgfmt.py seems not to support them.
source: http://www.nabble.com/compiling-PO-files-td22412588.html

Under Cygwin, should be OK with gettext-0.17 :
http://sourceware.org/cygwin/packages/gettext/gettext-0.17-3

For build changes on translation framework, we can look at :
http://www.gnome.org/~malcolm/i18n/build-changes.html


Jérôme



Aaron R. Short a écrit :
>
> I found something I missed. The internationalized files under locale get renamed by the patch to gramps32 but the code is still looking for "gramps". I found the following section in gramps.py that seems to adjust about 90% of the strings. however, when I run gramps there are still a few places that aren't getting internationalized. I've tried searching but can't seem to find anything. any ideas where the other pieces of code that set the files are? it may have something to do with using AC_PROG_INTLTOOL and AM_GLIB_GNU_GETTEXT but that's just a guess.
> see bug: http://www.gramps-project.org/bugs/view.php?id=2895
>
> gramps.py
> *******************
> #-------------------------------------------------------------------------
> #
> # Load internationalization setup
> #
> #-------------------------------------------------------------------------
> if "GRAMPSI18N" in os.environ:
>    loc = os.environ["GRAMPSI18N"]
> elif os.path.exists( os.path.join(const.ROOT_DIR, "lang") ):
>    loc = os.path.join(const.ROOT_DIR, "lang")
> else:
>    loc = os.path.join(const.PREFIXDIR, "share/locale")
>
> try:
>    locale.setlocale(locale.LC_ALL,'C')
>    locale.setlocale(locale.LC_ALL,'')
> except locale.Error:
>    pass
> except ValueError:
>    pass
>
> gettext.bindtextdomain("gramps",loc)
> glade.bindtextdomain("gramps",loc)
>
> try:
>    glade.textdomain("gramps")
> except:
>    pass
>
> gettext.textdomain("gramps")
> gettext.install("gramps",loc,unicode=1)
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gramps-devel