GNOME Bugzilla – Bug 596205
Strings with unicode chars in gtkbuilder ui file (like ߪ ) can not get translated
Last modified: 2010-05-29 02:46:46 UTC
When there is a string with a special utf-8 char (like …) glade-3 escapes that in the ui file it generates. When intltool extracts the strings, it gets added as "ߪ" to the pot. When the app is using gtk then to load the file again, it looks like the string is first unescaped and then passed to gettext(). This means that gettext() does not find it (it has "stringߪ" but not "string…"). To reproduce: - create a gtkbuilder ui file with "…" - create a translation - verify that the translation is not applied - change the .ui file to have "…" in it instead of ߪ - verify that it works then
The Description summry
Is there a reason why the files generated with Glade can have the header: <?xml version="1.0" encoding="UTF-8"?> and not escape the characters? Note I was attempting to patch intltool but unfortunately it appears that .pot files do not have a defined encoding: https://code.edge.launchpad.net/~robert-ancell/intltool/xml_numeric_charrefs/+merge/16111
Created attachment 156364 [details] [review] fix Well, that turned out to be really simple :)
Review of attachment 156364 [details] [review]: Thanks a lot ! please commit. (and please include a ChangeLog entry... I know... not everybody is using one these days)
Fixed on master.
Committed. Thanks Gabor!
Oh well. I guess git-bz doesn't play well with references to other bugs in the log. The comment was for bug #613119.