Skip to content

Add support for "replace::" text substitutions? #64

Open
@PierreRaybaut

Description

@PierreRaybaut

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

Activity

DelazJ

DelazJ commented on Feb 18, 2024

@DelazJ
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @PierreRaybaut@DelazJ

        Issue actions

          Add support for "replace::" text substitutions? · Issue #64 · sphinx-doc/sphinx-intl