Блогчетање

Данилово блогче

Thu, 22 Jan 2004

Gnome translators have long been translating documentation via bare XML files. This sucks bigtime, and everybody knows it: no compendia, no fuzzy matching, no clear separation of translatable text and markup.

KDE has a solution for this, but it is based on XML parser built-in Qt. Yuck, a dependency of tens of megabytes just to be able to translate documentation in an efficient manner.

Fortunately, this has long been a recognized problem for translators in Gnome, and there were several attempts to solve it. That includes doc-i18n-tool included in intltool, but not build by default. It was developed in C using libxml2 parser. That means that it makes use of widespread and great parser which Gnome is based around (libxml2), but it also means that it uses obscure language such as C for text processing, which makes it basically a nightmare to create a working prototype.

So, I've took a different approach: I used libxml2 via Python, and that made it possible to create a tiny program which does the job suitably for Gnome Summary. I have also performed some tests with Bug Buddy manual, so I think it is at least sometimes possible to use this for general DocBook documents.

Grab it at kvota.net/hacks/xml2po, where you can find program and example summary, README on how to produce a translation out of it, and Serbian translation (btw, anyone volunteers to do Serbian translations in the future? they will be featured on developer.gnome.org and gnomedesktop.org, so it's a good way to get noticed :).

There are whole lot of quirks and missing features (check the TODO as well), so there's lot to do to make it really usable. In any case, I'd recommend it to Serbian documentation translators for now, so it would be easier to track document changes.

Whoever wants to track development may try my anon CVS:

cvs -z4 -d:pserver:anonymous@cvs.kvota.net:/cvs/i18n co xml2po

intltool bug: by yours truly

Let me not forget: I had the (not so) rare privilege of finally introducing a bug in some core Gnome component. Yes, ladies and gentlemen, I've introduced a bug in intltool which makes it bork for many modules and programs (and not "rarely" as I first though). So, step right on, and get yourself a new intltool 0.29 release, which features a bug made just for you. I was nice enough to even provide a fix for that, so you might want to check out latest intltool from CVS, or look at the simple patch bug #131885 (close to the bottom, inside a message, not attached).

I've been hacking sporadically on intltool, so Kenneth added me to new intltool list hosted at freedesktop.org.

So, if your modules don't build anymore, close your eyes, and think of me :)

[11:23] | [] | # | G | | TB

Name:


E-mail:


URL:


Comment:


Contact
Danilo Segan

This is blog (web log) of Danilo Šegan (or Данило Шеган).

Archives
2017-Jan
2013-Dec
2011-Nov
2011-Oct
2011-Aug
2011-Jul
2011-Jun
2011-May
2010-Oct
2010-Aug
2010-Jul
2010-Apr
2010-Mar
2010-Feb
2010-Jan
2009-Dec
2009-Oct
2009-Aug
2009-Jun
2008-Oct
2008-Aug
2008-Jul
2008-Jun
2008-May
2008-Apr
2008-Mar
2008-Feb
2007-Dec
2007-Oct
2007-Aug
2007-Jul
2007-May
2007-Apr
2007-Feb
2007-Jan
2006-Nov
2006-Oct
2006-Aug
2006-Jul
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Sep
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
2004-May
2004-Apr
2004-Mar
2004-Feb
2004-Jan
2003-Dec
2003-Nov
2003-Oct
2003-Sep
1983-Mar

< January 2004 >
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 
Categories

Links
Kvota.net
Prevod.org
My study page
Srpski.org
GNOME
Friends' Blogs
alex (en)
bc (en)
Bojan Živanović (sr)
Carlos (en)
Goran (sr)
imp (sr)
lilit (sr)
Oskuro (en)
Zombie (sr/en)
Feeds
RSS