|
From: | Éloi Rivard |
Subject: | Re: [Denemo-devel] XML translation |
Date: | Thu, 9 May 2013 11:54:58 +0200 |
On Wed, 2013-05-08 at 21:24 +0200, Éloi Rivard wrote:this is where you add options to XGETTEXT macro, right? so that xgettext
> 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)
when run knows about those fields holding translatable strings?
>It still also generates commandscripts/init.scm, right?
> - Make extract_all generate XML_POTFILES.in
but we need git rm commandscripts/not init.scm I guess?
>This is where you have exploited the fact that telling xgettext this is
> - Tell xgettext that actions/menu files are Glade type file.
good enough to parse xml, right?
>Sorry, this was a miscommunication. What I was imagining is that we
>
> You talked about adding some dependency to xgettext.
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.
right - that would be a slight danger, that since xgettext glade support
> 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.
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.
yes - I think they will be happy to know that they have got more than
>
> Plus I made a feature request to generalize Glade string extraction to
> XML files. Maybe it will change someday ?
they thought (xml plus glade support) and will continue to support the
use of xgettext for xml files.
>I ran make and make dist ok on this branch, but I didn't get extract_all
>
> Please tell me what you think of this patch, and if I can merge
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
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/denemo-devel
[Prev in Thread] | Current Thread | [Next in Thread] |