Replies: 2 comments 2 replies
|
The checker looks at one string on its own. A line that ends in The words are fine either way for this sentence. If you want to keep both colons, ignore the reStructuredText check on that string. An issue is worth opening if you want the checker to allow a trailing |
|
Thanks for your reply. Do you think it is technically possible to add a flag to Weblate to do something along the lines of:
If yes it could fit the bill nicely. I'm not aware of the wider context of Weblate of course, adding tons of knobs to any software makes it hardly manageable, maybe it's a stupid idea (well, that's why I ask) |
Uh oh!
There was an error while loading. Please reload this page.
Hello
I'm adding currently strings to a project (hosted.weblate.org) using rst as a documentation format.
Lot of parts have a format as following:
the string 'Install the required dependencies::' is stored as a single entity in the translation PO system.
when validating the translation generated by LibreTranslate (that includes the 2 colons at the end), the system rejects it with syntax error reStructuredText (...) Literal block expected; none found.
because '::' at the end of the string is used to prepare the rst machinery to handle the following text (here 'python -V'') but it's stored in another entity for the PO system, so the rst syntax checker rejects it as invalid.
I checked other more advanced translations in this project, the 'solution' was to (manually I guess) remove one of the colons from the line ending, like this:
becomes:
while this does not seem to harm anything in this case, it seems strange that using Weblate forces to do this change
I'm not sure if this qualify for a problem. Should I submit an issue ?
Thanks for reading and (possibly) your time in replying !
All reactions