Difference between revisions of "Translating the Gramps User manual"

From Gramps
Jump to: navigation, search
(Removed the old invalid version and replaced with a preliminary version)
Line 1: Line 1:
We explain how you can translate the GRAMPS manual, as offered [[User_manual|here]] in html and pdf format. This manual is also available from within GRAMPS using the F1 key, or from the help menu.
+
We explain how you can translate the GRAMPS manual, as offered [[User_manual|here]] in HTML and PDF format. This manual is also available from within GRAMPS using the F1 key, or from the help menu.
 
[[Category:Translators/Categories]][[Category:Developers/General]]
 
[[Category:Translators/Categories]][[Category:Developers/General]]
  
 
==Getting started==
 
==Getting started==
Translating GRAMPS' documentation into a new language is a long, tedious, and boring process, just like with any complex text :-) However, the good news is that since version 2.2 the translations for our user manual are maintained using po files, just like with translating the [[Translating GRAMPS|UI strings]]. Technically, this amounts to three simple steps:
+
Translating GRAMPS' documentation into a new language is a long, tedious, and boring process, just like with any complex text :-) Since version 3.0 the documentation is completely inside this wiki. So you don't need to use or even install fancy applications to help us. You can use your browser and start immediately. Just go to the [[Gramps 3.0 Wiki Manual|User Manual]] page, click on your language. You should could keep the english manual open to check if there is a help page missing.
# obtaining the text to be translated,
+
The general [[Help:Contents|wiki help page]] will help you editing wiki pages. This wiki uses the [http://www.mediawiki.org/ MediaWiki] software, which is the same that is used by [http://en.wikipedia.org/wiki/Wikipedia Wikipedia], so it could feel familiar.
# translating the text, and
+
# getting the translated file uploaded into gramps SVN repository.
+
 
+
==Obtaining the text==
+
* Obtain the source tree, either from GRAMPS SVN repository (see [[Brief introduction to SVN]], or from the [[Installation|released source tarball]] on sourceforge.  
+
* Under <code>help</code> directory, there is a file named <code>gramps.pot</code>. Copy it to <code>help/zz/zz.po</code> (where <code>zz</code> is your language code).
+
  
 
==Translating==
 
==Translating==
With the po file ready, you can start translating.
 
* Use any editor or a po-file tool like [http://www.gtranslator.org GTtranslator] or [http://kbabel.kde.org/ KBabel] to translate strings in the po-file
 
 
* Figures: localized screenshots are nice in the localized manual
 
* Figures: localized screenshots are nice in the localized manual
** If you can provide figures on your own this is great. Place them in the directory <code>help/zz/figures</code> (<code>zz</code> is your language code). Bear in mind that screenshots have to be '''indexed PNGs, not more than 510 pixels wide''', in order to satisfy the GNOME Documentation Style Guide.
+
** If you can provide figures on your own this is great. Upload them to this wiki with the following naming convention: <code>figure_name_zz.png</code> (<code>zz</code> is your language code). If the figure is language independent just call it <code>figure_name.png</code>.
** For screenshot: also make sure the print size fits on an A4/USletter printout in pdf. You can check this with GIMP in View Menu --> Info window
+
** A command to take screenshots that works for me, is by using imagemagick (should be installed with every linux distribution, if not, get it): <pre>import -quality 100 -trim -delay 200 -resize 500 -density 100x100 -frame -channel RGB -depth 8 screenshot.png </pre>This creates a fully compressed (<code>-quality 100), timed screenshot after 2 seconds (<code>-delay 200</code>) of size 500 pixels wide (<code>-resize 500</code>), with resolution 100 (<code>-density 100x100</code>), with the window frame attached (<code>-frame</code>) in RGB mode (<code>-channel RGB</code>) and bbp 24 (<code>-depth 8</code>, for some reason on my machine depth 8 corresponds with bbp 24 and not 8). This creates images of 5 inches wide, which fit nicely on a book page, as well as on a HTML page.
** A command to take screenshots that works for me, is by using imagemagick (should be installed with every linux distribution, if not, get it): <pre>import -quality 100 -trim -delay 200 -resize 500 -density 100x100 -frame -channel RGB -depth 8 screenshot.png </pre>This creates a fully compressed (-quality 100), trimed screenshot after 2 seconds (-delay 200) of size 500 pixels wide (-resize 500), with resolution 100 (-density 100x100), with the window frame attached (-frame) in RGB mode (-channel RGB) and bbp 24 (-depth 8, for some reason on my machine depth 8 corresponds with bbp 24 and not 8). This creates images of 5 inches wide, which fit nicely on a book page, as well as on a html page.
+
 
** If it's too much trouble for you, just let us know and perhaps somebody else will do it for you. Fortunately, one does not have to speak the language to make screenshots :-)
 
** If it's too much trouble for you, just let us know and perhaps somebody else will do it for you. Fortunately, one does not have to speak the language to make screenshots :-)
 
==Uploading you work into gramps SVN==
 
All the files you have translated will need to be checked into GRAMPS SVN repository, under the <code>help/zz</code> directory. Also, certain makefiles will need to be modified to enable proper building and installation of your manual translation. Check your work into SVN if you have the permissions (add new files as necessary and modify Makefiles, if you know what to do) or oterwise, email it to [[Contact|Alex Roitman]].
 
* To quickly test your translation once the makefiles are updated to include your language, build the translated manual from the po file by running in the top-level source directory <code> make</code> and call up your manual with the gnome help browser: <pre>yelp help/xx/gramps.xml</pre>
 
 
==Making a html or pdf manual==
 
See [[Manual Generation]]. You need not do this, somebody of the developer team will generate the official manual and upload to the gramps-project website on [[User_manual]]. If you feel however that the version on the website is too old, mail the devel list, asking to upload a new version.
 
 
If you see strange things on the official version, generate the manual yourself locally as indicated in [[Manual Generation]], and see if you can improve on the methodology.
 

Revision as of 14:30, 7 September 2008

We explain how you can translate the GRAMPS manual, as offered here in HTML and PDF format. This manual is also available from within GRAMPS using the F1 key, or from the help menu.

Getting started

Translating GRAMPS' documentation into a new language is a long, tedious, and boring process, just like with any complex text :-) Since version 3.0 the documentation is completely inside this wiki. So you don't need to use or even install fancy applications to help us. You can use your browser and start immediately. Just go to the User Manual page, click on your language. You should could keep the english manual open to check if there is a help page missing. The general wiki help page will help you editing wiki pages. This wiki uses the MediaWiki software, which is the same that is used by Wikipedia, so it could feel familiar.

Translating

  • Figures: localized screenshots are nice in the localized manual
    • If you can provide figures on your own this is great. Upload them to this wiki with the following naming convention: figure_name_zz.png (zz is your language code). If the figure is language independent just call it figure_name.png.
    • A command to take screenshots that works for me, is by using imagemagick (should be installed with every linux distribution, if not, get it):
      import -quality 100 -trim -delay 200 -resize 500 -density 100x100 -frame -channel RGB -depth 8 screenshot.png 
      This creates a fully compressed (-quality 100), timed screenshot after 2 seconds (<code>-delay 200) of size 500 pixels wide (-resize 500), with resolution 100 (-density 100x100), with the window frame attached (-frame) in RGB mode (-channel RGB) and bbp 24 (-depth 8, for some reason on my machine depth 8 corresponds with bbp 24 and not 8). This creates images of 5 inches wide, which fit nicely on a book page, as well as on a HTML page.
    • If it's too much trouble for you, just let us know and perhaps somebody else will do it for you. Fortunately, one does not have to speak the language to make screenshots :-)