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

Docs: source code don't can be translate #82238

Closed
adorilson mannequin opened this issue Sep 8, 2019 · 4 comments
Closed

Docs: source code don't can be translate #82238

adorilson mannequin opened this issue Sep 8, 2019 · 4 comments
Labels
3.8 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@adorilson
Copy link
Mannequin

adorilson mannequin commented Sep 8, 2019

BPO 38057
Nosy @terryjreedy, @ammaraskar, @adorilson

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2019-09-14.06:28:09.869>
created_at = <Date 2019-09-08.14:58:23.285>
labels = ['invalid', 'type-feature', '3.8', 'docs']
title = "Docs: source code don't can be translate"
updated_at = <Date 2019-09-14.06:28:09.866>
user = 'https://github.com/adorilson'

bugs.python.org fields:

activity = <Date 2019-09-14.06:28:09.866>
actor = 'terry.reedy'
assignee = 'docs@python'
closed = True
closed_date = <Date 2019-09-14.06:28:09.869>
closer = 'terry.reedy'
components = ['Documentation']
creation = <Date 2019-09-08.14:58:23.285>
creator = 'adorilson'
dependencies = []
files = []
hgrepos = []
issue_num = 38057
keywords = []
message_count = 4.0
messages = ['351330', '351333', '351334', '352415']
nosy_count = 4.0
nosy_names = ['terry.reedy', 'docs@python', 'ammar2', 'adorilson']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue38057'
versions = ['Python 3.8']

@adorilson
Copy link
Mannequin Author

adorilson mannequin commented Sep 8, 2019

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'

@adorilson adorilson mannequin added the 3.8 only security fixes label Sep 8, 2019
@adorilson adorilson mannequin assigned docspython Sep 8, 2019
@adorilson adorilson mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Sep 8, 2019
@ammaraskar
Copy link
Member

What version of Sphinx are you using? As far as I know, Sphinx supports internationalization for autodoc, so this should be possible.

@adorilson
Copy link
Mannequin Author

adorilson mannequin commented Sep 8, 2019

I'm not using the Sphinx itself. I'm just a translator.

@terryjreedy
Copy link
Member

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.8 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants