Skip to content

Is togglebutton_hint translatable? #22

Closed

Description

@mgeier

I'm not quite sure how Sphinx's translation system works, sorry for the naive question.

It's nice to have the togglebutton_hint string configurable, but I'm not sure whether that's enough (or the right way) to make it translatable.

There are other Sphinx features like copyright, which have a conf.py option but also have special markup in the HTML template in order to be translatable. At least that's how I understand it ...

Activity

  1. added
    enhancement
    on Oct 20, 2020
  2. welcome commented on Oct 20, 2020

    @welcome

    Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

    If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

    If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

    Welcome to the EBP community! 🎉

  3. choldgraf commented on Oct 20, 2020

    @choldgraf
    Member
  4. mgeier commented on Oct 20, 2020

    @mgeier
    ContributorAuthor
  5. mgeier commented on Oct 20, 2020

    @mgeier
    ContributorAuthor

    This seems to work outside the Sphinx translation mechanism, right?
    I would prefer staying compatible with Sphinx's stuff and not reinvent translation.

  6. choldgraf commented on Oct 20, 2020

    @choldgraf
    Member

    well it's not using Sphinx's translation mechanism directly, but seems to be piggy-backing on the language that Sphinx sets in the environment. (note: I didn't implement that above, another contributor did, so I am trying to backwards engineer this as much as you are :-) )

  7. douden commented on Jul 30, 2025

    @douden
    Contributor

    For a temporary fix, you can use the fork https://github.com/TeachBooks/sphinx-togglebutton by replacing sphinx-togglebutton by git+https://github.com/TeachBooks/sphinx-togglebutton.git in your requirements.txt.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions