Re: i18n of Turtle files for xesam project?



2007/5/26, Steve Frécinaux <nudrema gmail com>:
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]