Changes

Jump to: navigation, search

Animal pedigree

959 bytes added, 07:43, 5 January 2017
no edit summary
{{languages|Animal pedigree}}
{{stub}}<!--does this work with gramps 4.x need to check-->
{{man warn|NOTE:|This is a hack! Use with caution.}}
You can use GRAMPS also to keep track of the pedigree of breed animals[[Image:Relationships_animal. Note however that no special provisions are available for thispng|400px|right|thumb|Relationships (animal)]][[Image:Pedigree_animal. e.g. a bull will have countless families, and numerous children, for which the GRAMPS interface is not really designedpng|400px|right|thumb|Pedigree (animal)]][[Image:Edit_animal.png|right|400px|thumb|Edit (animal)]]
<gallery>Image:Relationships_animalYou can use Gramps also to keep track of the pedigree of breed animals.png|Relationships (animal)Image:Pedigree_animalNote however that no special provisions are available for this.png|Pedigree (animal)Image:Edit_animale.g. a bull will have countless families, and numerous children, for which the Gramps interface is not really designed.png|Edit (animal)</gallery>
== Animal translation file ==
For easy working with animals in GRAMPSGramps, it helps if some terminology is changed. That is  Example differences: 
* Person -> Animal
* Father -> Sire
* Mother -> Dam
* Marriage -> Pairing
* Children -> Offspring/Progeny* Daughter -> Ewe lamb* Son -> Ram lamb* Family -> Family group* etc...
The file '''files [[ImageFile:gramps_animal_2_2_6Gramps_animal_2_2_6.po.gz]]''' is an (for Gramps v2.2.6 last updated 2007-03-05) and [[File:Gramps_animal_3_1_3.po.gz]] (for Gramps v3.1.3 last updated 2009-11-10) are English sub-translation translations that makes using GRAMPS Gramps far more intuitive when dealing with animals.
Example output from a build using this file can be seen [http://www.stonesflockdogo-canario.co.uk fr/pedigree/ here(dogs in french)].
== How to install the animal translation file ==
'''NOTE: this is a hack! Use with caution.'''
=== Gramps v4.x ===* Untested === Gramps v3.x ===*See Gramps v2.2.6 The file [[File:Gramps_animal_3_1_3.po.gz]] (for Gramps v3.1.3) is an English sub-translation that makes using Gramps far more intuitive when dealing with animals. === Gramps v2.2.6 ==={{man warn|Adaptation is done on the source code|, by overwriting a language-country code you don't need. }} The file [[File:Gramps_animal_2_2_6.po.gz]] (for Gramps v2.2.6) is an English sub-translation that makes using Gramps far more intuitive when dealing with animals. * So first, you need to [[Brief_introduction_to_SVNBrief_introduction_to_Git|get the source code]]. Download with those instructions the source code of version 3.1. For example:
For example:<codepre> svn co httpsgit clone http://svngit.sourceforgecode.sf.net/svnrootp/gramps/trunk/gramps31source Gramps</codepre>
*Change directory to the source code branch and make sure it builds:
<codepre> cd [myhomeGrampsgit checkout -b gramps31 origin/mypathmaintenance/]gramps31 ./autogen.sh make</codepre>
Initial build requirement for Ubuntu 7.04:
<codepre> sudo apt-get install libglib2.0-dev gnome-common</codepre>
*All OK? Now to apply the hack - download '''[[ImageFile:Gramps_animal_2_2_6.po.gz]] (for Gramps v2.2.6) or [[File:gramps_animal_2_2_6Gramps_animal_3_1_3.po.gz]]''' (for Gramps v3.1.3) and unzip it in the '''gramps31/po''' directory
<codepre> cp gramps_animal_2_2_6.po.gz [myhome/mypath/]gramps31/po cd [myhome/mypath/]gramps31/po gzip -d gramps_animal_2_2_6.po.gz</codepre>
*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:
Update the translation according to last code :
<codepre> msgmerge gramps_animal_2_2_6.po gramps.pot -o en_US.po</codepre>
*And make sure the '''po/Makefile''' picks up the special locale that you chose:
<codepre> perl -n -i -e 'if(/^ALL_LINGUAS/){chop; print "$_ en_US\n"}else{print $_}' Makefile</codepre>
*The '''gramps31/Makefile''' also needs to be modified to add the previously unused locale:
<codepre> 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</codepre>
*Now you can build again:
<codepre> make</codepre>
To install this version globally, overwriting the install of your package manager, also do
<codepre> sudo make install</codepre>
*To run GRAMPS Gramps with the new locale applied, all that is required in the case of a global install is:
<codepre> LANGUAGE=en_US gramps</codepre>
In the case you only have GRAMPS Gramps locally, do instead
<codepre> cd [myhome/mypath/]gramps31/src LANGUAGE=en_US python gramps.py</codepre>
*Enjoy!
==See also==*[http://en.wikipedia.org/wiki/List_of_animal_names List of animal names], From Wikipedia*[https://en.wikipedia.org/wiki/ISO_3166-1#Reserved_and_user-assigned_code_elements Reserved and user-assigned code elements], ISO 3166-1 - From Wikipedia [[Category:Documentation]][[Category:Translators/Categories]]

Navigation menu