16,736
edits
Changes
From Gramps
Gramps v2.2.6
== How to install the animal translation file ==
*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_Git|get the source code]].
For example:
<codepre> git clone http://git.code.sf.net/p/gramps/source Gramps</codepre>
*Change branch and make sure it builds:
<codepre> cd Gramps git checkout -b gramps31 origin/maintenance/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 '''[[Image:gramps_animal_2_2_6.po.gz]]''' or [[Image:Animal.po.gz]] (3.1.3) and unzip it in the '''po''' directory
<codepre> cp gramps_animal_2_2_6.po.gz po cd 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 '''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 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 locally, do instead
<codepre> cd src LANGUAGE=en_US python gramps.py</codepre>
*Enjoy!
*[http://en.wikipedia.org/wiki/List_of_animal_names List of animal names], From Wikipedia
[[Category:Documentation]][[Category:Translators/Categories]]