denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] XML translation


From: Richard Shann
Subject: Re: [Denemo-devel] XML translation
Date: Thu, 09 May 2013 08:14:16 +0100

On Wed, 2013-05-08 at 21:24 +0200, Éloi Rivard wrote:
> Hi,
> 
> On the po branch, make update-po now read strings directly from XML.
> 
> It consists in: 
> 
> - Add tooltip and label as keywords (actually tags as keywords are
> supported)

this is where you add options to XGETTEXT macro, right? so that xgettext
when run knows about those fields holding translatable strings?

> 
> - Make extract_all generate XML_POTFILES.in
It still also generates commandscripts/init.scm, right?
but we need git rm commandscripts/not init.scm I guess?
> 
> - Tell xgettext that actions/menu files are Glade type file.
This is where you have exploited the fact that telling xgettext this is
good enough to parse xml, right?

> 
> 
> You talked about adding some dependency to xgettext.
Sorry, this was a miscommunication. What I was imagining is that we
might get a build-dependency for Denemo on some further package called
glade. As I understand it, this patch is not doing that at all, it is
just a way of getting xgettext to extract the strings we want from our
xml.

>  Well, looking at the xgettext code, it seems that they support the
> very first versions of Glade. It xgettext keeps compatibility with old
> file format, one could think it won't break very soon.
right - that would be a slight danger, that since xgettext glade support
is not targetted at doing what we will be doing (parsing xml) it could
break. The xml support idea sounds like something xgettext people will
be happy to keep once it is suggested to them.


> 
> Plus I made a feature request to generalize Glade string extraction to
> XML files. Maybe it will change someday ?

yes - I think they will be happy to know that they have got more than
they thought (xml plus glade support) and will continue to support the
use of xgettext for xml files.

> 
> 
> Please tell me what you think of this patch, and if I can merge

I ran make and make dist ok on this branch, but I didn't get extract_all
to work - it should just happen via top level make, right? I get
"nothing to be done for all" doing make in the utils directory. So I am
not clear that this is going.
And then I don't yet have any way of testing translations. But with my
separate user account I should be able to safely set this up (without
risking turning the original strings into translated ones as happened to
me once on doing "Save Command Set" ...). I tried export LANG=en_GB but
I still got the untranslated strings running denemo after doing this.


Richard


> 
> 
> 
> -- 
> Éloi Rivard - address@hidden
>         
> « On perd plus à être indécis qu'à se tromper. »
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/denemo-devel





reply via email to

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