GNOME Bugzilla – Bug 114865
Remove unnecessary markup from glade messages in gnome-netstatus
Last modified: 2009-06-02 18:03:50 UTC
#: src/gnome-netstatus.glade.h:3 msgid "<b>Activity</b>" #: src/gnome-netstatus.glade.h:4 msgid "<b>Connection</b>" #: src/gnome-netstatus.glade.h:5 msgid "<b>Internet Protocol (IPv4)</b>" #: src/gnome-netstatus.glade.h:6 msgid "<b>Interrnet Protocol (IPv6)</b>" This use of markup inside messages marked for translation is totally unnecessary, and a problem for the translation process. For details, see the problem description in bug 96836. Since these are glade messages, I'll mark it dependant on the glade bug 97061 in the mean time.
I checked the CVS HEAD of gnome-netstatus and there's no more file named gnome-netstatus.glade.h .
These strings still exist in the src/gnome-netstatus.glade file, although with escaping of angle brackets: <property name="label" translatable="yes"><b>Activity</b></property> I don't know whether that is still a problem or not, but perhaps Christian could clarify...
Yes, this is still the same problem. Regarding comment 1: The gnome-netstatus.glade.h file is just a generated temporary file generated on the fly by intltool in order to extract the translateable glade messages into a format which xgettext can more easily extract the messages from. That is the normal operation of intltool. That extraction does not affect the problem at hand, which is that the translateable messages in the glade file contain surrounding markup. Just disregard the .h suffix. Regarding comment 2: Whether the markup is escaped or not is irrelevant to the problem. The problem is that the markup is there in the first place, surrounding the actual string but unfortunately also placed inside the tag with the translateable attribute set, which causes the markup to unnecessarily get propagated along with the actual string that is supposed to be translated. This is very problematic for the translation process, since the markup is completely irrelevant to the translation process and shouldn't be translated anyway. Instead it just causes problems for the translation process, such as clutter, extra sources for errors, unnecessary message duplication, and bad message matching in automated translation efforts, and many other problems. Please see http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#avoid-markup.
How do we remove the markup in glade without losing the format? Only ugly code comes to my mind, perhaps I'm missing something that glade can do.
Created attachment 135815 [details] [review] Remove markup from translatable strings It's now an easy task to do with GTKBuilder format.
Thanks Claude, simple and nice, please go ahead!