Difference between revisions of "Animal pedigree"

From Gramps
Jump to: navigation, search
m (language bar)
 
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{languages|Animal pedigree}}
 
{{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. Note however that no special provisions are available for this. e.g. a bull will have countless families, and numerous children, for which the GRAMPS interface is not really designed.
+
[[Image:Relationships_animal.png|400px|right|thumb|Relationships (animal)]]
 +
[[Image:Pedigree_animal.png|400px|right|thumb|Pedigree (animal)]]
 +
[[Image:Edit_animal.png|right|400px|thumb|Edit (animal)]]
  
<gallery>
+
You can use Gramps also to keep track of the pedigree of breed animals. Note however that no special provisions are available for this. e.g. a bull will have countless families, and numerous children, for which the Gramps interface is not really designed.
Image:Relationships_animal.png|Relationships (animal)
 
Image:Pedigree_animal.png|Pedigree (animal)
 
Image:Edit_animal.png|Edit (animal)
 
</gallery>
 
  
 
== Animal translation file ==
 
== Animal translation file ==
For easy working with animals in GRAMPS, it helps if some terminology is changed. That is
+
For easy working with animals in Gramps, it helps if some terminology is changed.
 +
 
 +
Example differences:
 +
 
 
* Person  -> Animal
 
* Person  -> Animal
 
* Father  -> Sire
 
* Father  -> Sire
 
* Mother  -> Dam
 
* Mother  -> Dam
 
* Marriage -> Pairing
 
* Marriage -> Pairing
...
+
* Children -> Offspring/Progeny
 +
* Daughter -> Ewe lamb
 +
* Son      -> Ram lamb
 +
* Family  -> Family group
 +
* etc...
  
The file '''[[Image:gramps_animal_2_2_6.po.gz]]''' is an English sub-translation that makes using GRAMPS far more intuitive when dealing with animals.
+
The files [[File:Gramps_animal_2_2_6.po.gz]] (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-translations that makes using Gramps far more intuitive when dealing with animals.
  
Example output from a build using this file can be seen [http://www.stonesflock.co.uk here].
+
Example output from a build using this file can be seen [http://www.dogo-canario.fr/pedigree/ here (dogs in french)].
  
 
== How to install the animal translation file ==
 
== How to install the animal translation file ==
'''NOTE: this is a hack! Use with caution.'''
 
  
*Adaptation is done on the source code, by overwriting a language-country code you don't need. So first, you need to [[Brief_introduction_to_SVN|get the source code]]. Download with those instructions the source code of version 2.2. For example:
+
=== 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_Git|get the source code]].
  
<code>
+
For example:
svn co https://svn.sourceforge.net/svnroot/gramps/trunk/gramps2
+
<pre>
</code>
+
git clone http://git.code.sf.net/p/gramps/source Gramps
 +
</pre>
  
*Change directory to the source code and make sure it builds:
+
*Change branch and make sure it builds:
  
<code>
+
<pre>
cd [myhome/mypath/]gramps2
+
cd Gramps
./autogen.sh
+
git checkout -b gramps31 origin/maintenance/gramps31
make
+
./autogen.sh
</code>
+
make
 +
</pre>
  
 
Initial build requirement for Ubuntu 7.04:
 
Initial build requirement for Ubuntu 7.04:
  
<code>
+
<pre>
sudo apt-get install libglib2.0-dev gnome-common
+
sudo apt-get install libglib2.0-dev gnome-common
</code>
+
</pre>
  
  
*All OK? Now to apply the hack - download '''[[Image:gramps_animal_2_2_6.po.gz]]''' and unzip it in the '''gramps2/po''' directory
+
*All OK? Now to apply the hack - download [[File:Gramps_animal_2_2_6.po.gz]] (for Gramps v2.2.6) or [[File:Gramps_animal_3_1_3.po.gz]] (for Gramps v3.1.3) and unzip it in the '''po''' directory
  
<code>
+
<pre>
cp gramps_animal_2_2_6.po.gz [myhome/mypath/]gramps2/po
+
cp gramps_animal_2_2_6.po.gz po
cd [myhome/mypath/]gramps2/po
+
cd po
gzip -d gramps_animal_2_2_6.po.gz
+
gzip -d gramps_animal_2_2_6.po.gz
</code>
+
</pre>
  
 
*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:
 
*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:
  
<code>
+
Update the translation according to last code :
ln -s gramps_animal_2_2_6.po en_US.po
+
<pre>
</code>
+
msgmerge gramps_animal_2_2_6.po gramps.pot -o en_US.po
 +
</pre>
  
 
*And make sure the '''po/Makefile''' picks up the special locale that you chose:
 
*And make sure the '''po/Makefile''' picks up the special locale that you chose:
<code>
+
<pre>
perl -n -i -e 'if(/^ALL_LINGUAS/){chop; print "$_ en_US\n"}else{print $_}' Makefile
+
perl -n -i -e 'if(/^ALL_LINGUAS/){chop; print "$_ en_US\n"}else{print $_}' Makefile
</code>
+
</pre>
  
*The '''gramps2/Makefile''' also needs to be modified to add the previously unused locale:
+
*The '''Makefile''' also needs to be modified to add the previously unused locale:
  
<code>
+
<pre>
cd ..
+
cd ..
perl -n -i -e 'if(/^ALL_LINGUAS/){chop; print "$_ en_US\n"}elsif(/^CATALOGS/||/^GMOFILES/) \
+
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
+
{chop; print "$_ en_US.gmo\n"}elsif(/^POFILES/){chop; "$_ en_US.po\n"}else{print $_}' Makefile
</code>
+
</pre>
  
 
*Now you can build again:
 
*Now you can build again:
  
<code>
+
<pre>
make
+
make
</code>
+
</pre>
 
To install this version globally, overwriting the install of your package manager, also do
 
To install this version globally, overwriting the install of your package manager, also do
<code>
+
<pre>
sudo make install
+
sudo make install
</code>
+
</pre>
  
*To run GRAMPS with the new locale applied, all that is required in the case of a global install is:
+
*To run Gramps with the new locale applied, all that is required in the case of a global install is:
  
<code>
+
<pre>
LANGUAGE=en_US gramps
+
LANGUAGE=en_US gramps
</code>
+
</pre>
  
In the case you only have GRAMPS locally, do instead
+
In the case you only have Gramps locally, do instead
  
<code>
+
<pre>
cd [myhome/mypath/]gramps2/src
+
cd src
LANGUAGE=en_US python gramps.py
+
LANGUAGE=en_US python gramps.py
</code>
+
</pre>
  
 
*Enjoy!
 
*Enjoy!
  
[[Category:Documentation]][[Category:Translators/Categories]]
+
==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]]

Latest revision as of 07:43, 5 January 2017

Gramps-notes.png

This article's content is incomplete or a placeholder stub.
Please update or expand this section.


Gnome-important.png
NOTE:

This is a hack! Use with caution.

Relationships (animal)
Pedigree (animal)
Edit (animal)

You can use Gramps also to keep track of the pedigree of breed animals. Note however that no special provisions are available for this. e.g. a bull will have countless families, and numerous children, for which the Gramps interface is not really designed.

Animal translation file

For easy working with animals in Gramps, it helps if some terminology is changed.

Example differences:

  • Person -> Animal
  • Father -> Sire
  • Mother -> Dam
  • Marriage -> Pairing
  • Children -> Offspring/Progeny
  • Daughter -> Ewe lamb
  • Son -> Ram lamb
  • Family -> Family group
  • etc...

The files File:Gramps animal 2 2 6.po.gz (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-translations that makes using Gramps far more intuitive when dealing with animals.

Example output from a build using this file can be seen here (dogs in french).

How to install the animal translation file

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

Gnome-important.png
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.

For example:

git clone http://git.code.sf.net/p/gramps/source Gramps
  • Change branch and make sure it builds:
cd Gramps
git checkout -b gramps31 origin/maintenance/gramps31
./autogen.sh
make

Initial build requirement for Ubuntu 7.04:

sudo apt-get install libglib2.0-dev gnome-common


cp gramps_animal_2_2_6.po.gz po
cd po
gzip -d gramps_animal_2_2_6.po.gz
  • 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 :

msgmerge gramps_animal_2_2_6.po gramps.pot -o 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 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 src
LANGUAGE=en_US python gramps.py
  • Enjoy!

See also