Re: GtkBuilder translator comments



Op donderdag 07-01-2010 om 19:50 uur [tijdzone +0100], schreef Claude
Paroz:
> Le jeudi 07 janvier 2010 à 17:47 +0000, Patrick Welche a écrit :
> > How do you add translator comments to GtkBuilder XML files?
> > 
> >   http://live.gnome.org/TranslationProject/DevGuidelines/Use%20comments
> > 
> > only mentions glade, and the "comments" property doesn't seem to exist.
> > (i.e., no comments appear in .po files (cf dasher and #565774)
> > 
> > Please update the wiki page while you're at it ;-)
> 
> It seems that intltool wants the translatable attribute come before the
> comments attribute in the tag attributes.
> 
> See the regexp in intltool.extract.in:
> while ($input =~ /<(property|atkproperty|col)\s+[^>]*translatable\s*=
> \s*"yes"(?:\s+[^>]*comments\s*=\s*"([^"]*)")?[^>]*>([^<]+)<\/\1>/sg) {

This is ridiculous, since attribute ordering is irrelevant according to
the XML specification. Any reason not to use a real XML parser instead?
I'm sure there are plenty available from Perl...

    — Wouter

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend



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