sphinx-intl icon indicating copy to clipboard operation
sphinx-intl copied to clipboard

Add support for "replace::" text substitutions?

Open PierreRaybaut opened this issue 2 years ago • 1 comments

Hi,

I'm a currently happy user of sphinx-intl. Thanks for investing time in the project.

However, I'm reporting a potential issue.

Text substitutions using "replace::" directive like those are ignored by sphinx-intl: .. |create| replace:: Create a new image which is (see https://sublime-and-sphinx-guide.readthedocs.io/en/latest/reuse.html#use-a-substitution)

Is it the expected behavior?

Thx

PierreRaybaut avatar May 20 '22 17:05 PierreRaybaut

Hi, That could indeed be helpful and avoid mixing source and target languages in a single string. For example, the string |FA| Prepare a map using the substitution .. |FA| replace:: Follow Along: always returns the substitution in English, resulting in things like image

DelazJ avatar Feb 18 '24 11:02 DelazJ