After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729066 - [RFE] Please expose the translatable and context PropertyInfo properties
[RFE] Please expose the translatable and context PropertyInfo properties
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Class: GtkBuilder
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: GtkBuilder maintainers
GtkBuilder maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-27 16:14 UTC by David Shea
Modified: 2014-08-03 15:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test interface file (4.47 KB, text/plain)
2014-04-28 11:35 UTC, David Shea
Details
test program (1.26 KB, text/plain)
2014-04-28 11:35 UTC, David Shea
Details
test translation file (919 bytes, text/x-gettext-translation)
2014-04-28 11:36 UTC, David Shea
Details

Description David Shea 2014-04-27 16:14:23 UTC
Consider a program that allows the language to be changed after the program has started. For the most this is possible by setting $LANG to the new value, retranslating any active widgets, and continuing with the program. A problem arises when widgets have translation contexts set in the builder XML. The context property is not accessible from the program, so all context information must be duplicated within the program. It would be nice to have access to the context and translatable properties.
Comment 1 Matthias Clasen 2014-04-27 19:44:22 UTC
do you have any examples of programs that successfully do this ? it is by no means easy, and generally not supported.
Comment 2 Colin Walters 2014-04-28 04:04:22 UTC
Note that calling setenv() after a threaded process is running can cause crashes if any other thread calls getenv().  See:

https://bugzilla.gnome.org/show_bug.cgi?id=659326
https://bugs.freedesktop.org/show_bug.cgi?id=65681
Comment 3 David Shea 2014-04-28 11:35:34 UTC
Created attachment 275321 [details]
test interface file
Comment 4 David Shea 2014-04-28 11:35:54 UTC
Created attachment 275322 [details]
test program
Comment 5 David Shea 2014-04-28 11:36:21 UTC
Created attachment 275323 [details]
test translation file
Comment 6 David Shea 2014-04-28 11:36:53 UTC
Attached a small example program. As far as real-world examples, the welcome spoke of anaconda does this.
Comment 7 Matthias Clasen 2014-04-28 11:45:26 UTC
Yeah, installers are just about the only example where people have tried to make this work - gnome-initial-setup does it too.

I recommend simply reloading the UI