2007/5/26, Steve Frécinaux <[EMAIL PROTECTED]>:

On Sat, 2007-05-26 at 14:15 +0100, Simos Xenitellis wrote:

> I do not think it would be hard to extract the text from Turtle
> translation templates. Just follow the example of the .desktop files
> which should be very similar. You would need to code in Python a few
> functions to extract/put back the translation messages. Is there some
> Python module/code that understands the Turtle format (or the general
> format that Turtle uses)?

This is perl, not python. You'd have to modify intltool-extract.in and
intltool-merge.in I think. Maybe also see bug 389565.

Turtle can be parsed by raptor (it apparently has perl bindings) but it
is yet another dependency and is probably avoidable if you just want to
extract translatable strings.


If it where Python I would expect that I could write a pretty compact Turtle
parser without using any dependencies at all. I'm no Perl expert, but I
expect that I could make it even more compact in Perl :-)

Is there a reason intltool doesn't have pluggable backends for cases like
this?

Cheers,
Mikkel
_______________________________________________
desktop-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Reply via email to