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

Localization #113

Closed
dbitouze opened this issue Dec 26, 2020 · 3 comments
Closed

Localization #113

dbitouze opened this issue Dec 26, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@dbitouze
Copy link
Contributor

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

It would be nice for the strings "Copy" and "Copied" to be customizable or, better, to be automatically translated according to the chosen language for the underlying Sphinx documentation.

@dbitouze dbitouze added the enhancement New feature or request label Dec 26, 2020
@choldgraf
Copy link
Member

I believe that they already are - see here for a list of the supported languages (and the pattern needed to support a new language):

https://github.com/executablebooks/sphinx-copybutton/blob/master/sphinx_copybutton/_static/copybutton.js_t#L3

Gonna close this but please re-open if I've mis-interpreted what you asked!

@mgeier
Copy link
Contributor

mgeier commented Dec 27, 2020

See also executablebooks/sphinx-togglebutton#22.

@dbitouze
Copy link
Contributor Author

I believe that they already are - see here for a list of the supported languages (and the pattern needed to support a new language):

https://github.com/executablebooks/sphinx-copybutton/blob/master/sphinx_copybutton/_static/copybutton.js_t#L3

Gonna close this but please re-open if I've mis-interpreted what you asked!

OK, just a matter of a missing French translation 😄 I just made a pull request.

Perhaps a dedicated file for translations, with a clear po/ directory could help future potential translators.

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

No branches or pull requests

3 participants