GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — “3.5.2 新版功能.”,“在 3.7 版更改:”这样的版本变更信息是在哪里翻译的? · Issue #164 · python/python-docs-zh-cn

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

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

Description

@jaystone776
jaystone776
opened on Dec 30, 2020
Issue body actions

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

Activity

  1. zhsj commented on Dec 30, 2020

    @zhsj
    zhsj
    on Dec 30, 2020
    Collaborator
    More actions

    文档的源文件可以在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
    jaystone776
    on Dec 30, 2020
    Author
    More actions

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

  3. jaystone776 commented on Dec 30, 2020

    @jaystone776
    jaystone776
    on Dec 30, 2020
    Author
    More actions

    https://github.com/sphinx-doc/sphinx-doc-translations/blob/master/locale/zh_CN/LC_MESSAGES/changes.po,我是在这里找的

  4. jaystone776 commented on Dec 30, 2020

    @jaystone776
    jaystone776
    on Dec 30, 2020
    Author
    More actions

    https://github.com/sphinx-doc/sphinx-doc-translations/blob/master/locale/zh_CN/LC_MESSAGES/sphinx.po,还有这里

  5. zhsj commented on Dec 30, 2020

    @zhsj
    zhsj
    on Dec 30, 2020
    Collaborator
    More actions

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

  6. jaystone776 commented on Dec 30, 2020

    @jaystone776
    jaystone776
    on Dec 30, 2020
    Author
    More actions

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

  7. zhsj commented on Dec 30, 2020

    @zhsj
    zhsj
    on Dec 30, 2020
    Collaborator
    More actions

    请参考 https://www.sphinx-doc.org/en/master/internals/contributing.html#writing-documentation sphinx本身的翻译也是托管在 transifex 上的,项目地址为 https://www.transifex.com/sphinx-doc/sphinx-1/

  8. jaystone776 commented on Dec 30, 2020

    @jaystone776
    jaystone776
    on Dec 30, 2020
    Author
    More actions

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

  9. jaystone776
    closed this as completedon Dec 30, 2020
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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.