Commit e81caca
docs: fix i18n build crash from mistranslated image directive (hr)
With gettext_additional_targets=["image"], `.. image:: <uri>` lines are
translatable msgids. The Croatian settings-editor catalog had this entry
mistranslated to leftover placeholder prose instead of the directive, so
sphinx's i18n transform re-parsed it to an image node with no uri and
crashed the whole per-locale build (KeyError: 'uri' at i18n.py:607,
"reading sources ... settings-editor") on Sphinx 9.0.4 / docutils 0.22.4.
Restore the directive verbatim. Verified by building all 26 locales under
the exact CI toolchain: 0 crashes, 0 warnings. A tree-wide audit confirms
this was the only mistranslated image/figure directive.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8bb8493 commit e81caca
1 file changed
Lines changed: 1 addition & 3 deletions
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
| |||
0 commit comments