Re: i18n of Turtle files for xesam project?
- From: "Mikkel Kamstrup Erlandsen" <mikkel kamstrup gmail com>
- To: "Steve Frécinaux" <nudrema gmail com>
- Cc: Dev Gnome List <desktop-devel-list gnome org>, GNOME I18n <gnome-i18n gnome org>
- Subject: Re: i18n of Turtle files for xesam project?
- Date: Sun, 27 May 2007 13:54:43 +0200
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]