GNOME Bugzilla – Bug 615141
yelp TOC title is not localized
Last modified: 2010-05-18 02:23:24 UTC
When you run yelp without arguments, the yelp window shows toc title names on the left and all title names are not localized even thought /usr/share/yelp/toc.xml has the translations. E.g. "Accessibility", "Sound & Video"...
Created attachment 158174 [details] [review] Patch for yelp-toc.c The /usr/share/yelp/toc.xml format is below. <title>Desktop</title> <title xml:lang="af">Tafelblad</title> ... The first tag doesn't have the lang attribute and the value "Desktop" is English. Yelp xml_trim_titles() uses xmlNodeGetLang() to get the language but it's returns the parent node's language if the current node's language is NULL. Then the first tag returns the current locale so the English value is always matched 100%. The suggestion is to use xmlGetNsProp() to get the current node's language. I'm attaching the patch.
Is it OK to commit the patch?
Looks good. Please commit. Thanks.
Thanks for your review. Committed the patch.