This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Docs: source code don't can be translate
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.8
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: adorilson, ammar2, docs@python, terry.reedy
Priority: normal Keywords:

Created on 2019-09-08 14:58 by adorilson, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg351330 - (view) Author: Adorilson Bezerra (adorilson) * Date: 2019-09-08 14:58
The source code examples in documentation doesn't can be translated because it doesn't included in po files (and after in transifex).

It would be wonderful if we can to translate the code:

class MyClass:
    """A simple example class"""
    i = 12345

    def f(self):
        return 'hello world'

to:

class MinhaClasse:
    """Um exemplo simples de classe"""
    i = 12345
    def f(self):
        return 'olá, mundo'
msg351333 - (view) Author: Ammar Askar (ammar2) * (Python committer) Date: 2019-09-08 17:28
What version of Sphinx are you using? As far as I know, Sphinx supports internationalization for autodoc, so this should be possible.
msg351334 - (view) Author: Adorilson Bezerra (adorilson) * Date: 2019-09-08 17:42
I'm not using the Sphinx itself. I'm just a translator.
msg352415 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2019-09-14 06:28
This tracker is for issues possibly leading to patches for the CPython repository.  Translations are not part of this repository and I am pretty sure that .po files are not either.
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82238
2019-09-14 06:28:09terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg352415

resolution: not a bug
stage: resolved
2019-09-08 17:42:23adorilsonsetmessages: + msg351334
2019-09-08 17:28:53ammar2setnosy: + ammar2
messages: + msg351333
2019-09-08 14:58:23adorilsoncreate