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 114865 - Remove unnecessary markup from glade messages in gnome-netstatus
Remove unnecessary markup from glade messages in gnome-netstatus
Status: RESOLVED FIXED
Product: gnome-netstatus
Classification: Deprecated
Component: general
0.9
Other All
: Normal normal
: ---
Assigned To: Mark McLoughlin
Mark McLoughlin
Depends on: 97061
Blocks:
 
 
Reported: 2003-06-10 17:52 UTC by Christian Rose
Modified: 2009-06-02 18:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove markup from translatable strings (4.62 KB, patch)
2009-06-02 14:55 UTC, Claude Paroz
committed Details | Review

Description Christian Rose 2003-06-10 17:52:59 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.
Comment 1 Thierry Moisan 2005-02-25 01:52:28 UTC
I checked the CVS HEAD of gnome-netstatus and there's no more file named
gnome-netstatus.glade.h . 
Comment 2 Elijah Newren 2005-02-25 17:23:43 UTC
These strings still exist in the src/gnome-netstatus.glade file, although with
escaping of angle brackets:
<property name="label" translatable="yes">&lt;b&gt;Activity&lt;/b&gt;</property>

I don't know whether that is still a problem or not, but perhaps Christian could
clarify...
Comment 3 Christian Rose 2005-02-25 22:52:54 UTC
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.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2008-11-26 22:30:16 UTC
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.
Comment 5 Claude Paroz 2009-06-02 14:55:37 UTC
Created attachment 135815 [details] [review]
Remove markup from translatable strings

It's now an easy task to do with GTKBuilder format.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2009-06-02 17:53:33 UTC
Thanks Claude, simple and nice, please go ahead!