[Top][All Lists]

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

Re: Feature proposal: string extracting by RegExp for xgettext

From: Bruno Haible
Subject: Re: Feature proposal: string extracting by RegExp for xgettext
Date: Fri, 14 Mar 2008 12:41:34 +0100
User-agent: KMail/1.5.4

Hello Asgeir,

> For example, for Glade XML files, the following ITS descriptor [2] can be
> applied to extract/merge translatable features:
> <its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0">
>  <!-- ITS rules for Glade 2.0, based on http://glade.gnome.org/glade-2.0.dtd 
> -->
>  <its:translateRule selector="/glade-interface" translate="no"/>
>  <its:translateRule selector="//address@hidden'yes']" translate="yes"/>
>  <its:translateRule selector="//atkaction/@description" translate="yes"/>
>  <its:locNoteRule selector="//address@hidden'yes']"
>   locNoteType="description" locNotePointer="@comments"/>
> </its:rules>

Thank you for posting this example! I had looked at the ITS specification,
but not understood what it was really about and how it was meant to be used.

So if I understand it right, tools for extracting translatable strings and
for merging back translated strings into XML documents could use this
W3C ITS specification?

There is no free implementation of it right now?

An implementation of it would have to rely on XPath. For example, use libxml2.


reply via email to

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