piccolo_theme icon indicating copy to clipboard operation
piccolo_theme copied to clipboard

Translating interface terms

Open clrh opened this issue 1 year ago • 2 comments

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.

clrh avatar Aug 07 '23 09:08 clrh

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.

dantownsend avatar Aug 07 '23 21:08 dantownsend

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

clrh avatar Aug 08 '23 07:08 clrh