pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/python-docs-theme/commit/729fcc106102ebef5473e7f6b12d78f9822d530f

> Add missing i18n for copy button titles (#225) · python/python-docs-theme@729fcc1 · GitHub
Skip to content

Commit 729fcc1

Browse files
tomasr8hugovk
andauthored
Add missing i18n for copy button titles (#225)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent f5d080f commit 729fcc1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.babel.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
[javascript: **.js]
2+
13
[jinja2: **.html]

python_docs_theme/static/copybutton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const loadCopyButton = () => {
3333
/* Add a [>>>] button in the top-right corner of code samples to hide
3434
* the >>> and ... prompts and the output and thus make the code
3535
* copyable. */
36-
const hide_text = "Hide the prompts and output"
37-
const show_text = "Show the prompts and output"
36+
const hide_text = _("Hide the prompts and output")
37+
const show_text = _("Show the prompts and output")
3838

3939
const button = document.createElement("span")
4040
button.classList.add("copybutton")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy