Pedigree animal

From Gramps
Revision as of 15:23, 2 November 2008 by Romjerome (talk | contribs) (Comment installer le fichier de traduction)
Jump to: navigation, search


Vous pouvez également utiliser GRAMPS pour suivre le 'pedigree' de vos animaux. Comme il n'existe pas de champs spécifiques pour les animaux. Par exemple, un taureau aura d'innombrables familles, et de nombreux enfants, pour qui l'interface GRAMPS n'est pas vraiment conçu.

Fichier de traduction animal

Pour facilement travailler avec des animaux dans GRAMPS, il vaut mieux changer :

  • Person -> Animal
  • Father -> Mâle
  • Mother -> Femelle
  • Marriage -> Jumelage ou Sailli

...

Le fichier File:Gramps animal 2 2 6.po.gz est une version anglaise modifiées rendant GRAMPS plus facile à utiliser avec des animaux.

Un exemple est disponible ici.

Comment installer le fichier de traduction

REMARQUE: il s'agit d'un hack! À utiliser avec prudence.

  • Adaptation sur le code source, en écrasant le code d'un pays. Tout d'abord, vous devez obtenir le code source. Par exemple:

svn co https://gramps.svn.sourceforge.net/svnroot/gramps/branches/gramps30

  • Changez le répertoire et assurez vous que l'on peut compiler:

cd [mon_répertoire/]gramps
./autogen.sh
make

  • changez msgstr "Lieux" en msgstr "Elevage" dans le fichier fr.po via Notepad2 , gedit au autres éditeurs de texte respectant l'encodage.
Gnome-important.png
sauvegardez en UTF-8 et ne pas corrompre le fichier avec MS Word ...

  • sous linux (ou sous windows ?), en ligne de commande :

python msgfmt fr.po

(fr.po étant le fichier modifié)
  • renommez le fichier obtenu (message.mo) en gramps.po
  • remplacez la traduction française {..}/share/locale/de/LC_MESSAGES/gramps.po

{..} étant généralement /usr sous Linux et de pour écraser la traduction allemande (ou autre)

Gramps-notes.png
Vous pouvez écrasez la traduction français sous /fr

  • Now you have to use a locale that you wouldn't usually use. For instance, if your locale is en_GB, use en_US. create a symbolic link to gramps_animal_2_2_6.po in the po directory. The en_US locale is an example in all the command lines below. In the po directory do:

ln -s gramps_animal_2_2_6.po en_US.po

  • And make sure the po/Makefile picks up the special locale that you chose:

perl -n -i -e 'if(/^ALL_LINGUAS/){chop; print "$_ en_US\n"}else{print $_}' Makefile

  • The gramps2/Makefile also needs to be modified to add the previously unused locale:

cd ..
perl -n -i -e 'if(/^ALL_LINGUAS/){chop; print "$_ en_US\n"}elsif(/^CATALOGS/||/^GMOFILES/) \
{chop; print "$_ en_US.gmo\n"}elsif(/^POFILES/){chop; "$_ en_US.po\n"}else{print $_}' Makefile

  • Now you can build again:

make

To install this version globally, overwriting the install of your package manager, also do

sudo make install

  • To run GRAMPS with the new locale applied, all that is required in the case of a global install is:

LANGUAGE=en_US gramps

In the case you only have GRAMPS locally, do instead

cd [myhome/mypath/]gramps2/src
LANGUAGE=en_US python gramps.py

  • Enjoy!