Skip to content

“3.5.2 新版功能.”,“在 3.7 版更改:”这样的版本变更信息是在哪里翻译的? #164

Closed

Description

@jaystone776

请问诸如“3.5.2 新版功能.”,“在 3.7 版更改:”这样的版本变更信息是在哪里翻译的?在transifex里没找到

Activity

  1. zhsj commented on Dec 30, 2020

    @zhsj
    Collaborator

    文档的源文件可以在python源码中找到,比如 https://docs.python.org/zh-cn/3.7/library/functions.html#bool 显示:

    在 3.7 版更改: x 现在只能作为位置参数

    那么可以看对应的源文件,看原文是啥,

    https://raw.githubusercontent.com/python/cpython/dcc997cd28ab33ebac44182ee55533c1b37689f7/Doc/library/functions.rst

    可以看到这是sphinx的一个语法:

    .. versionchanged:: 3.7
    

    这个翻译是在 sphinx 项目中翻译的,可以看 https://github.com/sphinx-doc/sphinx/blob/c99412695d2dc9e5392ede894ce7354d3236761f/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po#L1879

  2. jaystone776 commented on Dec 30, 2020

    @jaystone776
    Author

    我在 sphinx.po 和 changes.po 里都没找到 versionadded:: 3.5,这样的翻译,能帮我看下具体是哪个文件吗

  3. zhsj commented on Dec 30, 2020

    @zhsj
    Collaborator

    versionchanged 是 sphinx 的一个语法,叫 Directives。对应的英文原文是在代码中定义的,https://github.com/sphinx-doc/sphinx/blob/68cc0f7e94f360a2c62ebcb761f8096e04ebf07f/sphinx/domains/changeset.py#L30

  4. jaystone776 commented on Dec 30, 2020

    @jaystone776
    Author

    那如果想改它的中文怎么改呢

  5. zhsj commented on Dec 30, 2020

    @zhsj
    Collaborator
  6. jaystone776 commented on Dec 30, 2020

    @jaystone776
    Author

    了解了,多谢你这么耐心解答

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions