bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] GtkBuilder support


From: Daiki Ueno
Subject: [bug-gettext] GtkBuilder support
Date: Fri, 15 Mar 2013 14:10:39 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

So, the next step would be to add support for GtkBuilder files.

Before starting the review, I would like to ask a very basic question.

Are there any other differences between Glade 2 and GtkBuilder files,
except the following?

1. the msgctxt can be specified through context="ctxt" attribute
2. <col> and <attribute> elements may have translatable content

If no other, I think it would be better to simply add those features in
an upper compatible way, instead of rewriting x-glade.c parser to handle
Glade 1, Glade 2, and GtkBuilder file types separately (and strictly).

I mean:

For 1, we could just set a global variable allow_glib_context to true,
if a top-level "glade-interface" (which implies Glade 2) is detected,
and treat the context attribute accordingly.

For 2, just allow those new elements as well as <property> and
<atkproperty>.

I'd expect the minimal patch in this direction will be less than ~100
lines.

By the way, by grepping the GTK+ source, it seems <item> and <mark>
elements are also translatable.

Regards,
-- 
Daiki Ueno



reply via email to

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