Skip to content

Cross references are not translated #125

@dtenbrinck

Description

@dtenbrinck

Describe the bug

context
When I compile my markdown files to HTML using sphinx_proof with language settings to German, the titles of most of the proof boxes are translated correctly (some are missing) but the cross references to these boxes stay in English language.

expectation
I expect that the titles in cross references are also translated according to the language settings.

problem
This gives inconsistent results in books that are not written in English language.

sphinx_proof_bug

Reproduce the bug

  1. Add the following to your _config.yml:
sphinx:
  extra_extensions:
    - sphinx_proof
  config:
    language: de
  1. Compile book to HTML with jupyter-book build .

  2. Observe build result in folder _build/html/

List your environment

Version of sphinx-proof: 0.2.0

jupyter-book --version
Jupyter Book      : 1.0.3
External ToC      : 1.0.1
MyST-Parser       : 2.0.0
MyST-NB           : 1.1.2
Sphinx Book Theme : 1.1.3
Jupyter-Cache     : 1.0.0
NbClient          : 0.10.0

python --version
Python 3.12.7

Operating System: ArchLinux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions