GNOME Bugzilla – Bug 162806
Remove unnecessary markup from glade messages in gwget
Last modified: 2014-02-24 22:47:17 UTC
#: data/gwget.glade.h:2 msgid "<span weight=\"bold\">Download:</span>" #: data/gwget.glade.h:3 msgid "<span weight=\"bold\">Properties</span>" #: data/newdownload.glade.h:1 msgid "<span weight=\"bold\">New Download</span>" #: data/preferences.glade.h:4 msgid "<b>General</b>" #: data/preferences.glade.h:5 msgid "<span weight=\"bold\">Behavior</span>" #: data/preferences.glade.h:6 msgid "<span weight=\"bold\">Column List</span>" #: data/preferences.glade.h:7 msgid "<span weight=\"bold\">Links</span>" #: data/preferences.glade.h:8 msgid "<span weight=\"bold\">Proxy Configuration</span>" 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.
Is there any good examples or guides on how to go about fixing this? With I bit of advice I could try to provide a patch for or it could be marked as an item in need of gnome-love and someone new to Gnome could be encourage to try providing a patch?
Created attachment 132417 [details] A new glade file to replace the one in "data" folder. At the time the bug was filed, there was no real way to solve the problem, since the page: http://live.gnome.org/TranslationProject/DevGuidelines/Avoid%20markup%20wherever%20possible doesn't really take care of the glade case. As of today, this bug can be solved by migrating from libglade to gtkBuilder. It shouldn't be hard (I would do it if it wouldn't take me hours to remember how to code in C). Notice however that the gwget.glade file in "data" folder makes newer versions of glade-3 crash (because a widget has id=""); you can however use the one I'm attaching (it may be good to replace the old with this one even if nobody has the time to do the gtkBuilder migration). No problem instead in opening preferences.glade, and newdownload.glade has in the meanwhile been incorporated by gwget.glade.
In the diff of the current file and your file I see: + <property name="label">Pause</property> - <property name="label" translatable="yes">Pause</property> Is this correct? (remove the translatable option)
Created attachment 156249 [details] [review] Remove markup in GTKBuilder files Here is a patch to remove markup from translatable strings in GTKBuilder files. By the way, why are the glade files still there? Aren't they completely replaced by the .ui files?
Per the Gnome Goal, please remove markup in translatable messages https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages #: ../data/gwget.ui.h:2 msgid "<b>Download</b>" #: ../data/gwget.ui.h:3 msgid "<b>Insert MD5 sum to compare with</b>" #: ../data/gwget.ui.h:4 msgid "<b>Properties</b>" #: ../data/gwget.ui.h:5 msgid "<span weight=\"bold\">New Download</span>" #: ../data/preferences.ui.h:3 msgid "<span weight=\"bold\">Behavior</span>" #: ../data/preferences.ui.h:4 msgid "<span weight=\"bold\">Column List</span>" #: ../data/preferences.ui.h:5 msgid "<span weight=\"bold\">General</span>" #: ../data/preferences.ui.h:6 msgid "<span weight=\"bold\">Links</span>" #: ../data/preferences.ui.h:7 msgid "<span weight=\"bold\">Proxy Configuration</span>"
This project is not under active development anymore. It is currently unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping (bug 725098) to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.