Difference between revisions of "Talk:Documentation translation"

From Inkscape Wiki
Jump to navigation Jump to search
m (Frigory moved page Talk:DocumentationTranslation to Talk:Documentation translation: A real title, please)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Ideas for Improving the Translation Process ==
== Ideas for Improving the Translation Process ==


'''Please don't hesitate to add, improve and criticise this article. Edit mercilessly :)'''
'''The content of this page is obsoleted by reality: the xml2po conversion is done, with Makefile support for it.''' --[[User:Colin Marquardt|cmarqu]] 18:25, 4 August 2007 (UTC)


PO files are very well-established in the Free Software translator community, so using them for as many documentation files as we can will get probably us the most translations. PO tools are also good at merging updates. When translating XML files directly, beginners will just do it in a regular editor and make mistakes when a new english tutorial arrives (this has happened at least in some German tutorials).
PO files are very well-established in the Free Software translator community, so using them for as many documentation files as we can will get probably us the most translations. PO tools are also good at merging updates. When translating XML files directly, beginners will just do it in a regular editor and make mistakes when a new english tutorial arrives (this has happened at least in some German tutorials).


In addition to what's written above, xml2po can not only be used for converting the tutorial XML files themselves, but can also extract translatable content from the SVG illustrations, for example:
In addition to what's written in [[DocumentationTranslation#Transforming_XML_into_PO_files]], xml2po can not only be used for converting the tutorial XML files themselves, but can also extract translatable content from the SVG illustrations, for example:


   xml2po --output=tutorial-advanced.pot tutorial-advanced.xml advanced-f[0-9][0-9].svg
   xml2po --output=tutorial-advanced.pot tutorial-advanced.xml advanced-f[0-9][0-9].svg
Line 17: Line 17:
    
    
This way, we don't even need the translated illustration files in SVN but can generate them on the fly (ScislaC came up with that idea on IRC).
This way, we don't even need the translated illustration files in SVN but can generate them on the fly (ScislaC came up with that idea on IRC).
We can also use xml2po on <code>inkscape/doc/keys-svg.xsl</code>.


http://cvs.gnome.org/viewcvs/gnome-doc-utils/gnome-doc-utils.make has a Makefile for intelligently handling xml2po and friends, but it is quite complicated. Maybe we could even think about following the route described here: http://live.gnome.org/GnomeDocUtilsMigrationHowTo
http://cvs.gnome.org/viewcvs/gnome-doc-utils/gnome-doc-utils.make has a Makefile for intelligently handling xml2po and friends, but it is quite complicated. Maybe we could even think about following the route described here: http://live.gnome.org/GnomeDocUtilsMigrationHowTo
Line 27: Line 29:


ACSpike said on IRC that he thinks about setting up a build server for documentation (that can convert the XML files to SVG/HTML etc.)
ACSpike said on IRC that he thinks about setting up a build server for documentation (that can convert the XML files to SVG/HTML etc.)
===Discussion===
vHalenbach:I find that a good idea too. When all translatable content is in the PO-format it is even possible to establish a Webinterface like the translators of debian and the game wesnoth have. In this interface it is easily to see for everyone how the translation is progressing. Maybe it is open source and we can borrow that from them. I discussed it with Matiphas on IRC a bit.
:Some links for that:
* http://pulsar.unizar.es/~isaac/wesnoth-gettext/westats/index.lang.php?lang=fr&version=trunk
* http://mail.gnome.org/archives/gnome-i18n/2006-February/msg00392.html
* http://live.gnome.org/TranslationProject/SettingUpStatusPages
* http://cvs.gnome.org/viewcvs/gnome-i18n/status/doc-l10n-status/
* http://l10n.kde.org/about-stats.php (also used by Gnome: http://l10n-status.gnome.org/HEAD/index.html)
* http://www.advogato.org/person/menthos/diary.html?start=21 (talks about Danilo Segan having some new status pages)

Latest revision as of 22:02, 11 July 2016

Ideas for Improving the Translation Process

The content of this page is obsoleted by reality: the xml2po conversion is done, with Makefile support for it. --cmarqu 18:25, 4 August 2007 (UTC)

PO files are very well-established in the Free Software translator community, so using them for as many documentation files as we can will get probably us the most translations. PO tools are also good at merging updates. When translating XML files directly, beginners will just do it in a regular editor and make mistakes when a new english tutorial arrives (this has happened at least in some German tutorials).

In addition to what's written in DocumentationTranslation#Transforming_XML_into_PO_files, xml2po can not only be used for converting the tutorial XML files themselves, but can also extract translatable content from the SVG illustrations, for example:

 xml2po --output=tutorial-advanced.pot tutorial-advanced.xml advanced-f[0-9][0-9].svg

Extracting the single XML and SVG files from the PO file requires several calls to xml2po (thus should be scripted):

 xml2po --po-file=de.po tutorial-advanced.xml > de.tmp/tutorial-advanced.xml
 xml2po --po-file=de.po advanced-f01.svg > de.tmp/advanced-f01.svg
 xml2po --po-file=de.po advanced-f02.svg > de.tmp/advanced-f02.svg
 ...
 

This way, we don't even need the translated illustration files in SVN but can generate them on the fly (ScislaC came up with that idea on IRC).

We can also use xml2po on inkscape/doc/keys-svg.xsl.

http://cvs.gnome.org/viewcvs/gnome-doc-utils/gnome-doc-utils.make has a Makefile for intelligently handling xml2po and friends, but it is quite complicated. Maybe we could even think about following the route described here: http://live.gnome.org/GnomeDocUtilsMigrationHowTo

Work is done on Embedded Help which also must be integrated.

If we use the msgid "translator-credits" from all the PO files (GUI and tutorials etc.), we can collect them for use in the about box to only show the translators for the language that the GUI is currently in (idea by kaeso on IRC).

Also note that ScislaC (Joshua Andler <scislac at users dot sf dot net>) has a plan to re-arrange the tutorials and sort them in a deeper hierarchy, so we should wait with whatever we do until that is done.

ACSpike said on IRC that he thinks about setting up a build server for documentation (that can convert the XML files to SVG/HTML etc.)

Discussion

vHalenbach:I find that a good idea too. When all translatable content is in the PO-format it is even possible to establish a Webinterface like the translators of debian and the game wesnoth have. In this interface it is easily to see for everyone how the translation is progressing. Maybe it is open source and we can borrow that from them. I discussed it with Matiphas on IRC a bit.

Some links for that: