# Make Source Code link translateable

**URL:** <https://discuss.python.org/t/make-source-code-link-translateable/79738>\
**Category:** Documentation\
**Created:** [February 6, 2025, 8:08pm UTC](https://discuss.python.org/t/make-source-code-link-translateable/79738 "2025-02-06T20:08:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanfromireland](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/stanfromireland/32/10102_2.png) [@Stanfromireland](https://discuss.python.org/u/Stanfromireland)\
**Post date:** [February 6, 2025, 8:08pm UTC](https://discuss.python.org/t/make-source-code-link-translateable/79738/1 "2025-02-06T20:08:08Z")

</div>

There are quite a lot of

```python
**Source Code:** :source:`FILE`

```

Which have to each be translated separately as the “Source Code” text is not translated as it is not a directive and each paragraph is different.

---

<div class="post-metadata">

**Author:** ![AA-Turner](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/aa-turner/32/4979_2.png) [@AA-Turner](https://discuss.python.org/u/AA-Turner)\
**Post date:** [February 6, 2025, 8:21pm UTC](https://discuss.python.org/t/make-source-code-link-translateable/79738/2 "2025-02-06T20:21:54Z")

</div>

This is perhaps an instance of the [“XY problem”](https://en.wikipedia.org/wiki/XY_problem). As I mentioned on [the issue](https://github.com/python/cpython/issues/129720#issuecomment-2639314039), this is something that should be solved via translation tools.

This will certainly not be the only example of a repeated source string, and replacing each such repeated source string with a custom-to-CPython directive is of little benefit. It would be better to find (or create!) a tool that can recognise and copy-paste translations for substrings, even if those substrings need to be manually defined to start.

It is worth noting that one of the design principles of reStructuredText (and plain-text source documentation in general) is that it should be readable in source form. Taking your example, ` **Source Code:** blah` is obviously just a bold text, but a directive can do any manner of things, and requires an engaged editor to check that this is just inserting a common source string. \[1\]

A

* * *

1. this case is actually a good use for reST [substitutions](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#substitutions), but it would also not solve the issue at hand
