GNOME Bugzilla – Bug 347816
TOC descriptions display all languages
Last modified: 2006-07-19 18:45:41 UTC
The new TOC descriptions are showing all translations on my machine. Fresh CVS checkout. Screenshot attached in a sec. Had a look through toc.xml{.in} but couldn't see why this was happening.
Created attachment 69058 [details] Screenshot of the problem
shit, didn't test this case. We need to modify the xml_trim_titles() function (or create another function to trim descriptions) to strip all <description> elements where the "xml:lang" attribute doesn't match the current language.
Fixed in CVS. Changed the xml_trim_titles to accept a 2nd parameter - xmlChar * nodetype. Then call it on titles and descriptions. Closing 2006-07-19 Don Scorgie <dscorgie@cvs.gnome.org> * src/yelp-toc-pager.c: Select the correct translation of the description of sections Fixes bug #347816 Clean up a couple of compiler warnings