You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Weblate team, I found 12 strings in the Traditional Chinese (zh_Hant) Documentation component that are marked as needing editing because of this enforced check:
Literal block expected; none found.
In the original reStructuredText document, each affected paragraph introduces a literal block with ::. Sphinx extracts the paragraph as a gettext message, and the block that follows is outside that message. When Weblate checks the paragraph on its own, it reports that the block is missing. After the translation is uploaded, the enforced check marks it as needing editing again. Example translation unit · Original paragraph and JSON example
Steps to reproduce
Extract gettext messages with Sphinx from an .rst document containing this paragraph and literal block:
The manifest looks like this::
{"schemaVersion": 1}
Import the catalog into Weblate with rst-text enabled and rst-syntax configured as an enforced check.
Translate the extracted paragraph, keeping the trailing ::, and save it.
The check reports Literal block expected; none found. and marks the translation as needing editing.
I also reproduced the warning locally by passing the same English paragraph as both the source and the target to RSTSyntaxCheck.check_single(). The warning disappears when the following JSON block is included. A Sphinx 8.2.3 build of the original excerpt with the translation also passed with warnings treated as errors and rendered the JSON block correctly.
Expected behavior
When a literal block follows the paragraph in the source document but falls outside the extracted gettext message, keeping the original :: should pass the syntax check. A valid translation should stay marked as translated.
Environment
Hosted Weblate, Weblate / Documentation / Traditional Chinese (zh_Hant), gettext PO
Activity
github-actions commentedon Nov 24, 2026
Thank you for your report — the issue has now been resolved.
The fix has been merged into the repository and will be included in the upcoming Weblate 2026.12 release.
fix(checks): ignore RST errors already present in the source (Weblate…
fix(checks): ignore RST errors already present in the source (Weblate…