Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translating interface terms #59

Open
clrh opened this issue Aug 7, 2023 · 2 comments · May be fixed by #60
Open

Translating interface terms #59

clrh opened this issue Aug 7, 2023 · 2 comments · May be fixed by #60

Comments

@clrh
Copy link

clrh commented Aug 7, 2023

I am looking for a way to translate properly interface term like: "Page contents", "Hide", "Search" etc. There is probably a way to do it with Sphinx, but I don't see why. I tryied with locales and shpinx but I don't have these terms.

I take any tip. Thanks.

@dantownsend dantownsend linked a pull request Aug 7, 2023 that will close this issue
@dantownsend
Copy link
Member

Hi @clrh

I'm not sure what the proper workflow is for translations in Sphinx, but having looked at the builtin templates, they used the usual Python approach:

{{ _("Translate Me") }}

I've opened a PR which does this.

As for the translations themselves, I'm not sure if this is something the user does, or we need to bundle with the template.

@clrh
Copy link
Author

clrh commented Aug 8, 2023

So if the theme doesn't use this, I can just redefine the template locally ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants