After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347816 - TOC descriptions display all languages
TOC descriptions display all languages
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-17 18:03 UTC by Don Scorgie
Modified: 2006-07-19 18:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of the problem (97.12 KB, image/png)
2006-07-17 18:03 UTC, Don Scorgie
Details

Description Don Scorgie 2006-07-17 18:03:21 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.
Comment 1 Don Scorgie 2006-07-17 18:03:49 UTC
Created attachment 69058 [details]
Screenshot of the problem
Comment 2 Brent Smith (smitten) 2006-07-19 00:56:37 UTC
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.
Comment 3 Don Scorgie 2006-07-19 18:45:41 UTC
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