GNOME Bugzilla – Bug 559885
Strings contain HTML formatting in gnome-sudoku
Last modified: 2010-04-09 20:02:44 UTC
Many strings in the glade user interface dialogs in gnome-sudoku contain HTML markup in the translatable strings, which is something that should be avoided. This is what translators see in their .po files: #: ../gnome-sudoku/glade/puzzle_generator.glade.h:2 msgid "<i>Easy:</i>" msgstr "<i>Lett:</i>" This should possibly be changed to "Easy", without formatting in the translatable text, and some other means found for format the labels. Having the same translatable text for "Easy" in all the games will also mean less work for translators. This can be fixed in: gnome-sudoku/glade/puzzle_generator.glade - Andreas
I would be interested in how this can be done because glChess and GCalctool have the same problem. I haven't seen any solution as Glade doesn't seem to provide a way of separating the formatting from the content. You could set all the strings from the source code but it gets a bit tedious and reduces the advantage having a GUI editor.
For the record: first, you have to convert the application to use GtkBuilder: http://live.gnome.org/GnomeGoals/RemoveLibGladeUseGtkBuilder Then, you can get rid of the markup: http://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
Created attachment 135810 [details] [review] Remove markup in translatable strings Here is a patch to fix this bug. I'm note entirely happy with the literal "1.2" scale value, but I don't think it's possible to use a Pango constant in the .ui (at least not with Glade 3.6.3).
If noone opposes, I'll soon apply the patch as the string freeze is approaching and I consider the changes trivial.
Comment on attachment 135810 [details] [review] Remove markup in translatable strings Committed to master: http://git.gnome.org/browse/gnome-games/commit/?id=e92bbfe9e602f3d32f5e80e448cef3a08f2e9edd Thanks Claude!