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 662188 - Some navigational links appear untranslated
Some navigational links appear untranslated
Status: RESOLVED FIXED
Product: yelp-tools
Classification: Core
Component: yelp.m4
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-19 13:08 UTC by Gabor Kelemen
Modified: 2011-10-19 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gabor Kelemen 2011-10-19 13:08:17 UTC
It was noticed in a downstream bug comment[1] that some navigational links on the top of the Yelp window do not appear translated, despite being translated in the po file. I saw quite a few of these with gnome-user-docs 3.2.1, which was entirely translated to Hungarian. These include: 

Desktop Help, Hardware, Hardware problems, Settings, Sound,
Photos, Videos, Music and players: http://people.ubuntu.com/~kelemeng/pix/breadcrumb.png etc.

The common thing about these is that they have an msgctxt context in the po file, but this is not being taken into account when merging.

For example, on the mouse page we can see the untranslated Settings and Hardware categories, but the rest of the navigation looks to be alright, translation is merged and displayed: http://people.ubuntu.com/~kelemeng/pix/mouse-tips.png
If I change the translations slightly, it becomes obvious which instance is used:
http://people.ubuntu.com/~kelemeng/pix/mousetips-plain.png

So the one with the context marker is ignored, and this leads to untranslated entries, because in many cases there are no msgctx-less instances of the affected strings.

[1]: https://bugs.launchpad.net/ubuntu-docs/+bug/814822/comments/3
Comment 1 Shaun McCance 2011-10-19 13:27:23 UTC
What version of itstool was used to generate the the page files from the po files? This feature was introduced in itstool 1.1.0.
Comment 2 Gabor Kelemen 2011-10-19 13:29:27 UTC
I used jhbuild to build the pages on the screenshots, so it is 1.1.0.
Comment 3 Gabor Kelemen 2011-10-19 13:31:59 UTC
Err, not. 1.0.1 is in jhbuild.
Comment 4 Gabor Kelemen 2011-10-19 13:36:04 UTC
Also, I got the po file from damned-lies. Probably that server uses 1.1.0.
Comment 5 Gabor Kelemen 2011-10-19 13:40:08 UTC
Argh. Removing the old itstool and building with the new one in Ubuntu fixes all of it. Sorry for the noise.
Comment 6 Shaun McCance 2011-10-19 13:54:39 UTC
Ah, didn't realize jhbuild was still pulling in 1.0.1. I changed both the 3.2 and 3.4 modulesets to use 1.1.1. Thanks.