bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] XML Support


From: Daiki Ueno
Subject: Re: [bug-gettext] XML Support
Date: Thu, 09 May 2013 10:58:10 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

√Čloi Rivard <address@hidden> writes:

> A lot of programs have their own XML based data file. It would be
> great if xgettext could parse any XML file and extract translatable
> strings, as it does with glade for example, but in a more general way. 

This leads to a question: do we really want to provide overlapping
features of other specific tools like intltool etc?

Honestly, I don't think that will pay much.  Extracting strings from XML
file is much easier to be done in scripting languages with proper XML
support, than in xgettext scanners written in C.

On the other hand, supporting XML in msg* tools might be more useful.
For example, if we had a special flag to indicate that msgid contains
XML fragment:

     #, xml-markup
     msgid "<para>foo</para>"
     msgstr "<para>bar"

msgfmt -c could report error, as the para tag in msgstr is not balanced.

Regards,
-- 
Daiki Ueno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]