Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

【OSCP】+文档 [What is SPU?]翻译成中文文档 #1040

Closed
wants to merge 1 commit into from

Conversation

2429887991
Copy link

Pull Request

What problem does this PR solve?

Issue Number: Fixed #1014

Possible side effects?

  • Performance:

  • Backward compatibility:

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @2429887991, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request translates the English documentation for "What is SPU?" into Chinese. The changes involve updating the docs/locales/zh_CN/LC_MESSAGES/getting_started.po file with the Chinese translations for the introduction to SPU, its compiler, and runtime environment.

Highlights

  • Translation: The English documentation for "What is SPU?" has been translated into Chinese.
  • Documentation Update: The getting_started.po file has been updated with the translated content.

Changelog

  • docs/locales/zh_CN/LC_MESSAGES/getting_started.po
    • Translated "What is SPU?" to "什么是 SPU?"
    • Translated the description of SPU to Chinese.
    • Translated the explanation of SPU compiler and its relation to XLA, TensorFlow, JAX, and PyTorch to Chinese.
    • Translated the description of SPU runtime and its multi-party computation protocols to Chinese.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Trivia time!

What is the file extension .po commonly used for in software localization?

Click here for the answer
The `.po` file extension is commonly used for gettext Portable Object files, which store human-readable text translations used in software localization.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request translates documentation from English to Chinese, specifically focusing on the getting_started.po file. The changes generally seem correct, but a closer look is needed to ensure the translations are accurate and natural.

Summary of Findings

  • Translation Accuracy: The translations in the getting_started.po file should be carefully reviewed to ensure they accurately convey the meaning of the original English text. In some cases, the translated sentences could be improved for clarity and naturalness in Chinese.

Merge Readiness

The pull request provides valuable translations. However, due to the medium severity comment regarding translation accuracy, I recommend that the author review the translations again to ensure they are accurate and natural before merging. I am unable to directly approve this pull request, and another reviewer should approve this code before merging.

Comment on lines 360 to +361
msgid "What is SPU?"
msgstr ""
msgstr "什么是 SPU?"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the translation "什么是 SPU?" is technically correct, it might be more natural to use "SPU 是什么?" for better readability in Chinese. Consider if this alternative phrasing would be more appropriate in this context.

msgstr "SPU 是什么?"


#: ../../getting_started/introduction.rst:4
msgid ""
"SPU (Secure Processing Unit) is a domain-specific **compiler and runtime "
"suite**, that aims to provide a **secure computation** service with "
"**provable security**."
msgstr ""
msgstr "SPU (安全处理单元)是一个特定领域的编译器和运行时套件,其旨在提供具备安全性证明的安全计算服务。"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The translation "SPU (安全处理单元)是一个特定领域的编译器和运行时套件,其旨在提供具备安全性证明的安全计算服务。" is a bit lengthy and could be more concise. Consider rephrasing it to improve readability and flow in Chinese. For example, you could try: "SPU (安全处理单元) 是一种特定领域的编译器和运行时套件,旨在提供可证明安全性的安全计算服务。"

msgstr "SPU (安全处理单元) 是一种特定领域的编译器和运行时套件,旨在提供可证明安全性的安全计算服务。"

@@ -377,7 +377,7 @@ msgid ""
"by SPU runtime. Currently, SPU team highly recommends using `JAX "
"<https://github.com/google/jax>`_ and its sibling - `Flax "
"<https://github.com/google/flax>`_."
msgstr ""
msgstr "SPU 编译器采用 XLA 作为其前端中间表示(IR)。因此,SPU 支持来自 TensorFlow、JAX 或 PyTorch 的 XLA IR 输出。在内部,SPU 编译器会将 XLA 编译成一种特定于多方计算 (MPC) 的 MLIR 语言,这种语言随后会由 SPU 运行时进行解释。目前,SPU 团队强烈建议使用 JAX 及其姊妹框架 Flax。"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrase "SPU 编译器采用 XLA 作为其前端中间表示(IR)。因此,SPU 支持来自 TensorFlow、JAX 或 PyTorch 的 XLA IR 输出。在内部,SPU 编译器会将 XLA 编译成一种特定于多方计算 (MPC) 的 MLIR 语言,这种语言随后会由 SPU 运行时进行解释。目前,SPU 团队强烈建议使用 JAX 及其姊妹框架 Flax。" is a long sentence. Consider breaking it into smaller sentences for better readability. For example: "SPU 编译器采用 XLA 作为其前端中间表示(IR)。因此,SPU 支持来自 TensorFlow、JAX 或 PyTorch 的 XLA IR 输出。在内部,SPU 编译器会将 XLA 编译成一种特定于多方计算 (MPC) 的 MLIR 语言。这种语言随后会由 SPU 运行时进行解释。目前,SPU 团队强烈建议使用 JAX 及其姊妹框架 Flax。"

msgstr "SPU 编译器采用 XLA 作为其前端中间表示(IR)。因此,SPU 支持来自 TensorFlow、JAX 或 PyTorch 的 XLA IR 输出。在内部,SPU 编译器会将 XLA 编译成一种特定于多方计算 (MPC) 的 MLIR 语言。这种语言随后会由 SPU 运行时进行解释。目前,SPU 团队强烈建议使用 JAX 及其姊妹框架 Flax。"

@@ -387,7 +387,7 @@ msgid ""
"extensible**, protocol developers can hack into MPC protocols with "
"minimum effort and let the SPU compiler/runtime translate and interpret "
"complicated frontend logic on it."
msgstr ""
msgstr "为了提供安全性证明,SPU 运行时(作为后端)实现了多种多方计算协议。 SPU 运行时的设计具有高度可扩展性,协议开发者能够轻松对多方计算协议进行定制开发,并让 SPU 编译器/运行时在其上翻译和解释复杂的前端逻辑。"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The translation "为了提供安全性证明,SPU 运行时(作为后端)实现了多种多方计算协议。 SPU 运行时的设计具有高度可扩展性,协议开发者能够轻松对多方计算协议进行定制开发,并让 SPU 编译器/运行时在其上翻译和解释复杂的前端逻辑。" could be improved by adding a conjunction to connect the two sentences. For example: "为了提供安全性证明,SPU 运行时(作为后端)实现了多种多方计算协议。而且,SPU 运行时的设计具有高度可扩展性,协议开发者能够轻松对多方计算协议进行定制开发,并让 SPU 编译器/运行时在其上翻译和解释复杂的前端逻辑。"

msgstr "为了提供安全性证明,SPU 运行时(作为后端)实现了多种多方计算协议。而且,SPU 运行时的设计具有高度可扩展性,协议开发者能够轻松对多方计算协议进行定制开发,并让 SPU 编译器/运行时在其上翻译和解释复杂的前端逻辑。"

@2429887991 2429887991 marked this pull request as draft March 5, 2025 10:51
@2429887991 2429887991 closed this Mar 5, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

【文档季】【SPU】文档 [What is SPU?]翻译成中文文档
1 participant