Can't build html with footnotes when using i18n
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sphinx |
Fix Committed
|
Undecided
|
Unassigned | ||
Ubuntu Packaging Guide |
Fix Released
|
High
|
Ubuntu Spanish Translators | ||
sphinx (Ubuntu) |
Fix Released
|
Low
|
Dmitry Shachnev |
Bug Description
== Impact ==
* Many projects using l10n module are affected.
== Development Fix ==
* Fixed upstream.
* Fixed in Debian experimental (since 1.1.3+dfsg-6).
* Fixed in Ubuntu raring (since 1.1.3+dfsg-
== Stable Fix ==
Bzr branches for both quantal and precise are attached.
== Test Case ==
* bzr branch lp:ubuntu-packaging-guide;
* make html-es;
* check that it builds correctly (there may be some warnings though);
* open _build/
== Regression Potential ==
* Upstream test suite added new tests for these issues.
* All existing tests pass as well.
=======
To reproduce the issue, first do the following:
- ./debian/
- bzr unknowns | xargs bzr add
- bzr bd
You should get the following sphinx crash at the end:
Exception occurred:
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
if child.walkabout
File "/usr/lib/
if child.walkabout
File "/usr/lib/
if child.walkabout
File "/usr/lib/
visitor.
File "/usr/lib/
return method(node)
File "/usr/lib/
href = '#' + node['refid']
File "/usr/lib/
return self.attributes
KeyError: 'refid'
Status in PPA / Ubuntu:
- Raring: Broken / Broken
- Quantal: Fixed / Broken
- Precise: Fixed / Broken
- Oneiric: Broken / Broken
We will need to put some work into backporting the Upstream fix to PPA and Ubuntu to get Spanish translations (and others) in.
Upstream bug: https:/
Related branches
- Daniel Holbach (community): Approve
- Ubuntu branches: Pending requested
-
Diff: 5032 lines (+2599/-2162)22 files modified.pc/applied-patches (+3/-0)
.pc/fix_manpages_generation_with_new_docutils.diff/sphinx/writers/manpage.py (+0/-345)
.pc/l10n_fixes.diff/sphinx/environment.py (+1762/-0)
.pc/sort_stopwords.diff/sphinx/search/__init__.py (+287/-0)
.pc/support_python_3.3.diff/sphinx/environment.py (+0/-1762)
.pc/test_build_html_rb.diff/tests/test_build_html.py (+339/-0)
debian/changelog (+58/-0)
debian/control (+3/-3)
debian/dh-sphinxdoc/dh_sphinxdoc (+4/-2)
debian/patches/l10n_fixes.diff (+58/-0)
debian/patches/series (+3/-0)
debian/patches/sort_stopwords.diff (+16/-0)
debian/patches/support_python_3.3.diff (+11/-35)
debian/patches/test_build_html_rb.diff (+17/-0)
debian/rules (+3/-2)
debian/sphinx-autogen.1 (+1/-1)
debian/tests/control (+0/-2)
debian/tests/python-sphinx (+1/-1)
debian/tests/python3-sphinx (+1/-1)
sphinx/environment.py (+30/-6)
sphinx/search/__init__.py (+1/-1)
tests/test_build_html.py (+1/-1)
- Dmitry Shachnev: Approve
- Diff: 0 lines
Changed in ubuntu-packaging-guide: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ubuntu-packaging-guide: | |
assignee: | nobody → Ubuntu Spanish Translators (ubuntu-l10n-es) |
Changed in sphinx: | |
status: | New → Fix Committed |
description: | updated |
description: | updated |
summary: |
- Spanish translation FTBFS + Can't build html with footnotes when using i18n |
Changed in sphinx (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in ubuntu-packaging-guide: | |
status: | Triaged → Fix Committed |
One problem is obviously that href names can't be translated in sphinx texts because it breaks references. :-(