GNOME Bugzilla – Bug 84779
Pango marks should not be marked to be translated
Last modified: 2004-12-22 21:47:04 UTC
The spanish translation had a but (just fixed but will not be fixed with GNOME 2.0.0 release) that if you see the gnome-about program the console shows this message until you close the program: ** (gnome-about:20626): WARNING **: pango-layout.c:830:pango_layout_set_markup_with_accel(): Error on line 1 char 59: Element 'markup' was closed, but the currently open element is 'big' I was loking for errors in my language translation and found: #: gnome-about/gnome-about.c:424 msgid "<big><b>GNOME Was Brought To You By</b></big>" msgstr "<big><b>GNOME está aquí gracias a</b><big>" \------> The error #: gnome-about/gnome-about.c:541 msgid "<big><b>And Many More ...</b></big>" msgstr "<big><b>y muchos más ...</b></big>" It was a translation typo but I think that all those marks should not be displayed inside the gettext catalogs because you can break things like that :-( It's late to fix it for GNOME 2.0.0 but I think it should be fixed for the new release. P.S.: I have looked at other translations and all seems to be ok.
Or we could argue that whoever commits a translation should test it first. I've been creating a lot of cvs accounts for translators lately so this should be less of an issue since there aren't that many people commiting lots of different translations any longer. If it's easy to remove the markup I'd be all for it though :)
I could add a patch if you want with the change. The fact is that we should not add html code inside .po files so, Why should we add pango labels?
This error was fixed some time ago, but I'm not sure the issue about markup in the strings has been discussed more.
You have a really good argument against this issue inside the bug #96836 Thanks Christian :-)
I will make sure there is a glade bug about the unnecessary markup. Glade is the biggest source for markup in translations.
That bug report is now in bug 97061.
*** Bug 97073 has been marked as a duplicate of this bug. ***
Fixed on HEAD: 2002-11-05 Mark McLoughlin <mark@skynet.ie> * gnome-about.c: (draw_intro), (draw_end): do not translate pango markup, only translate the strings themeselves. Fixes #84779, #97073.