2010/3/29 jerome <romjerome@yahoo.fr>
> * to update translations.

Erik,

Maybe I now see what is missing on current make.py ...

# Start with Gramps main PO file:
   locale_po_files = [r("%(GRAMPSPATH)s/po/%(locale)s.po")]

+ # overwrite/update local PO file:
+    system('''msgmerge --no-wrap %(addon)s/po/%(locale)s-local.po %(addon)s/po/template.pot -o %(addon)s/po/%(locale)s-local.po''')

make.py script merges main translation strings with gramps main translation (program), but does not merge strings with new addon template (see the local.po header).

'update' argument is a great help for the first translation, but this does not update translation strings according new template :(

patch should not overwrite the '%(addon)s/po/%(locale)s' file but this illustrates what is missing for fully update the translations.


Jérôme

Jerome, no idea what you are saying here.
Try it, if ok, update the code. You are the msgmerge specialist around here!

Benny



--- En date de : Lun 29.3.10, Benny Malengier <benny.malengier@gmail.com> a écrit :

De: Benny Malengier <benny.malengier@gmail.com>
Objet: Re: [Gramps-devel] [Gramps-users] Place completion tool invisible
À: romjerome@yahoo.fr
Cc: "Doug Blank" <doug.blank@gmail.com>, gramps-devel@lists.sourceforge.net, gramps-users@lists.sourceforge.net, "joel robin" <joel.robin@gmail.com>
Date: Lundi 29 mars 2010, 17h55



2010/3/29 Jérôme <romjerome@yahoo.fr>


Would it not be easier to edit the placecompletion.gpr.py file, and change UNSTABLE into STABLE?




Maybe noted UNSTABLE because plugin still needs libglade.



Not tested yet, but maybe :

* to download gtk-devel

* then to use gtk-builder-convert

http://library.gnome.org/devel/gtk/stable/gtk-builder-convert.html

* to remove glade module on placecompletion.py

* to update translations.

I converted the plugin to gtk.builder, and removed UNSTABLE (gramps32 and trunk). Not sure how this propagates to the users. Need to readup the workflow for that on the wiki, Doug might tell before I have time for that :-)


Benny
 





Doug Blank a écrit :


On Mon, Mar 29, 2010 at 8:20 AM, Benny Malengier

<benny.malengier@gmail.com> wrote:




2010/3/29 Doug Blank <doug.blank@gmail.com>


On Sun, Mar 28, 2010 at 2:44 PM, joel robin <joel.robin@gmail.com> wrote:


Hi everyone,



I did'nt use gramps for few months, and i just tried to update my

database.

After an xml export, I updated my gramps to 3.2.0-1, but I have problems

with my places now.



I saw that the format has been changed, and that I can use "place

completion

tools" to update my places.



Bur when i install it using "help / plugin manager", the install seems

working



(this is the log:

Examine 'PlaceCompletion/PlaceCompletion.gpr.py'...

   'PlaceCompletion/PlaceCompletion.gpr.py' est pour cette version de

Gramps.

Installation de



'http://gramps-addons.svn.sourceforge.net/svnroot/gramps-addons/branches/gramps32/download/PlaceCompletion.addon.tgz'...


   '/home/joel/.gramps/gramps32/plugins/PlaceCompletion' enregistré

)



But nothing appears in

'Tools > Utilities > Interactive place completion'

as explained in the web page

http://gramps-project.org/wiki/index.php?title=Place_completion_tool



Someone can help me?


It looks like the original author (Benny) has decided to describe the

status of the tool as "UNSTABLE". This means that you won't see it

unless you run Gramps without the "-O" flag (ie, without

optimizations). I'm guessing that you have the -O.



How can you tell if you are running with -O and remove it? Two ways:



1.) Edit the gramps command file. Perhaps like this in the shell

(don't type the dollar signs, but what follows on the line after

dollar sign):



$ which gramps

/usr/bin/gramps

$ sudo gedit /usr/bin/gramps    # remove the -O



2) Run gramps directly without it:



$ locate gramps.py

/usr/share/gramps/gramps.py

$ python /usr/share/gramps/gramps.py



Hope that helps,


Would it not be easier to edit the placecompletion.gpr.py file, and change

UNSTABLE into STABLE?




Er, yes, that would probably be easier :) To do that specifically,

edit the file:



/home/joel/.gramps/gramps32/plugins/PlaceCompletion/placecompletion.gpr.py



and change UNSTABLE to STABLE, then restart gramps the way that you

normally run gramps.



-Doug




Benny




-Doug




Thanks !




------------------------------------------------------------------------------

Download Intel&#174; Parallel Studio Eval

Try the new software tools for yourself. Speed compiling, find bugs

proactively, and fine-tune applications for parallel performance.

See why Intel Parallel Studio got high marks during beta.

http://p.sf.net/sfu/intel-sw-dev

_______________________________________________

Gramps-devel mailing list

Gramps-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/gramps-devel







------------------------------------------------------------------------------

Download Intel&#174; Parallel Studio Eval

Try the new software tools for yourself. Speed compiling, find bugs


proactively, and fine-tune applications for parallel performance.

See why Intel Parallel Studio got high marks during beta.

http://p.sf.net/sfu/intel-sw-dev

_______________________________________________

Gramps-devel mailing list

Gramps-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/gramps-devel