Localized help files not correctly loaded because of wrong symlinking

Bug #794426 reported by AJenbo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Medium
Unassigned
cdbs (Ubuntu)
Fix Released
Undecided
Unassigned
gnome-user-docs (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Unknown Error
The file ‘/usr/share/gnome/help/user-guide/da/user-guide.xml’ could not be parsed because one or more of its included files is not a well-formed XML document.

To reproduce:
Open keyboard-shortcuts (not sure of the exact name) from personal setting, press the Help button.

Update: this seems to affect only Natty. According to http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/cdbs/precise/revision/111 this was fixed in subsequent distro series

AJenbo (ajenbo)
summary: - Cant open hel because of XML error
+ Can't open help because of XML error in user-guide.xml
Revision history for this message
serfus (serfus) wrote : Re: Can't open help because of XML error in user-guide.xml

i can confirm this bug on Hebrew natty.
when using English, everything works fine, when switching to Hebrew this comes up.

Changed in ubuntu-translations:
status: New → Confirmed
Changed in gnome-user-docs (Ubuntu):
status: New → Confirmed
Revision history for this message
David Planella (dpm) wrote :

Thanks AJenbo for reporting this bug.

In order to make it easier for the people looking at the bug, could you please modify the original description explaining the exact steps to reproduce the bug? This will save a lot of back and forth communication

Also, if you could run 'apport-collect 794426', that'd provide some extra info useful to debugging the issue.

Thanks!

Changed in ubuntu-translations:
status: Confirmed → Incomplete
Changed in gnome-user-docs (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
AJenbo (ajenbo) wrote :

Apport gave the following error:
The authorization page:
 (https://launchpad.net/+authorize-token?oauth_token=HrmHzDTHZsnvKqbhJl56&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.

Waiting to hear from Launchpad about your decision...
Package gnome-user-docs not installed and no hook available, ignoring

description: updated
description: updated
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

I can reproduce this. Install Danish language support for Natty, log in and run:

$ yelp ghelp:user-guide
I/O warning : failed to load external entity "/usr/share/gnome/help/user-guide/da/gosoverview.xml"
/usr/share/gnome/help/user-guide/da/user-guide.xml:309: element include: XInclude error : could not load /usr/share/gnome/help/user-guide/da/gosoverview.xml, and no fallback was found
I/O warning : failed to load external entity "/usr/share/gnome/help/user-guide/da/gosstartsession.xml"
/usr/share/gnome/help/user-guide/da/user-guide.xml:310: element include: XInclude error : could not load /usr/share/gnome/help/user-guide/da/gosstartsession.xml, and no fallback was found
I/O warning : failed to load external entity "/usr/share/gnome/help/user-guide/da/goseditmainmenu.xml"
/usr/share/gnome/help/user-guide/da/user-guide.xml:312: element include: XInclude error : could not load /usr/share/gnome/help/user-guide/da/goseditmainmenu.xml, and no fallback was found
I/O warning : failed to load external entity "/usr/share/gnome/help/user-guide/da/goscustdesk.xml"
/usr/share/gnome/help/user-guide/da/user-guide.xml:315: element include: XInclude error : could not load /usr/share/gnome/help/user-guide/da/goscustdesk.xml, and no fallback was found
I/O warning : failed to load external entity "/usr/share/gnome/help/user-guide/da/glossary.xml"
/usr/share/gnome/help/user-guide/da/user-guide.xml:316: element include: XInclude error : could not load /usr/share/gnome/help/user-guide/da/glossary.xml, and no fallback was found

Yelp will open, and gives the error in the bug description.

There is only one translated xml in the Danish language pack ( 1:11.04+20110607 ) for user-guide:

$ dpkg -L language-pack-gnome-da-base | grep user-guide
/usr/share/gnome/help-langpack/user-guide
/usr/share/gnome/help-langpack/user-guide/da
/usr/share/gnome/help-langpack/user-guide/da/user-guide.xml
/usr/share/omf-langpack/user-guide
/usr/share/omf-langpack/user-guide/user-guide-da.omf

This is no surprise, as the Danish translation of gnome-user-guide is at about 1% done - and Hebrew too: https://translations.launchpad.net/ubuntu/natty/+source/gnome-user-docs/+pots/gnome-user-docs-user-guide

Changed in ubuntu-translations:
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
AJenbo (ajenbo) wrote :

kelemeng asked for some additional information and posted his own results:

http://pastebin.ubuntu.com/645339/

http://paste.ubuntu.com/645342/

Revision history for this message
Gabor Kelemen (kelemeng) wrote :

Also, the output of this command gives strange results:

$ ls -l /usr/share/gnome/help/user-guide/da/

http://pastebin.ubuntu.com/645339/

http://paste.ubuntu.com/645342/

This directory comes from the gnome-user-guide package. Why is it linking to the ar, bn, ca locales? It should link to C, and then yelp would fall back to the original text for languages with low coverage.

Changed in gnome-user-docs (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

I just rebuilt the package, and it seems that the problem is in cdbs, in particular debhelper.mk
See:
http://paste.ubuntu.com/645367/

The duplicate (=entirely untranslated) files should always be linked to the one in C/.

Changed in cdbs (Ubuntu):
status: New → Confirmed
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

This may be similar to bug 441401.

David Planella (dpm)
summary: - Can't open help because of XML error in user-guide.xml
+ Localized help files not correctly loaded because of wrong symlinking
description: updated
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

We talked about this on #ubuntu-translators, and agreed that we won't fix this for Natty - too much work for small gain, and newer releases do not have this problem anymore. Thus I'm marking this as Fix Released for u-t and cdbs, and Won't fix for g-u-d.

Changed in ubuntu-translations:
status: Confirmed → Fix Released
Changed in cdbs (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

Erm, I would if I would have permissions...

Matthew East (mdke)
Changed in gnome-user-docs (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.