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

🌐 Add Chinese translation for Tutorial - SQL (Relational) Databases #2408

Closed
wants to merge 1 commit into from

Conversation

maoyibo
Copy link
Contributor

@maoyibo maoyibo commented Nov 25, 2020

Chinese translation add tutorial/sql-databases

@codecov
Copy link

codecov bot commented Nov 25, 2020

Codecov Report

Merging #2408 (e5ecd4b) into master (7d7289a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2408   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          240       240           
  Lines         7101      7101           
=========================================
  Hits          7101      7101           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b53c443...e5ecd4b. Read the comment docs.

@github-actions
Copy link
Contributor

@tiangolo tiangolo changed the title Chinese translation add tutorial/sql-databases 🌐 Add Chinese translation for Tutorial - SQL (Relational) Databases Nov 25, 2020
@tiangolo tiangolo added awaiting-review lang-all Translations lang-zh Chinese translations labels Nov 25, 2020
@@ -0,0 +1,688 @@
# SQL (关系型) 数据库

FastAPI**不需要你使用一个SQL(关系型)数据库。
Copy link
Contributor

Choose a reason for hiding this comment

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

括号也用全角,中英文之间加空格,全角标点前后不用加空格。 参考排版规范

Suggested change
FastAPI**不需要你使用一个SQL(关系型)数据库。
**FastAPI** 不要求你使用 SQL(关系型数据库。


这里我们将看到一个使用 <a href="https://www.sqlalchemy.org/" class="external-link" target="_blank">SQLAlchemy</a>的示例。

您可以轻松地通过SQLAlchemy适配到它支持的任何数据库,如:
Copy link
Contributor

Choose a reason for hiding this comment

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

adapt to 也有改编、改写的意思,在这里可能更恰当一点

Suggested change
您可以轻松地通过SQLAlchemy适配到它支持的任何数据库,如:
您可以轻松地将其改写为 SQLAlchemy 支持的任何数据库,如:

* MySQL
* SQLite
* Oracle
* Microsoft SQL Server, etc.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Microsoft SQL Server, etc.
* Microsoft SQL Server 等。

* Oracle
* Microsoft SQL Server, etc.

在本例中,我们将使用**SQLite**,因为它使用单个文件,而Python已经集成了支持。因此,您可以复制这个示例并按原样运行它。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
在本例中,我们将使用**SQLite**,因为它使用单个文件,而Python已经集成了支持。因此,您可以复制这个示例并按原样运行它。
在本例中,我们将使用 **SQLite**,因为它使用单个文件,而且 Python 已经集成了支持。因此,您可以复制这个示例并按原样运行它。


在本例中,我们将使用**SQLite**,因为它使用单个文件,而Python已经集成了支持。因此,您可以复制这个示例并按原样运行它。

稍后,对于您的生产应用程序,您可能需要使用像**PostgreSQL**这样的数据库服务器。
Copy link
Contributor

Choose a reason for hiding this comment

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

虽然有些段落是分开的,但是翻译时最好还是结合上下文

Suggested change
稍后,对于您的生产应用程序,您可能需要使用像**PostgreSQL**这样的数据库服务器。
之后,对于您的生产应用程序,您可能需要使用像 **PostgreSQL** 这样的数据库服务器。

稍后,对于您的生产应用程序,您可能需要使用像**PostgreSQL**这样的数据库服务器。

!!! tip
有一个正式的项目生成 **FastAPI** 和 **PostgreSQL** ,全部基于 **Docker** ,包括前端和更多的工具: <a href="https://github.com/tiangolo/full-stack-fastapi-postgresql" class="external-link" target="_blank">https://github.com/tiangolo/full-stack-fastapi-postgresql</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
有一个正式的项目生成 **FastAPI** 和 **PostgreSQL** ,全部基于 **Docker** ,包括前端和更多的工具: <a href="https://github.com/tiangolo/full-stack-fastapi-postgresql" class="external-link" target="_blank">https://github.com/tiangolo/full-stack-fastapi-postgresql</a>
有一个使用 **FastAPI** 和 **PostgreSQL** 的官方项目生成器,全部基于 **Docker**包括前端和更多的工具<a href="https://github.com/tiangolo/full-stack-fastapi-postgresql" class="external-link" target="_blank">https://github.com/tiangolo/full-stack-fastapi-postgresql</a>


**FastAPI** 可以使用任何数据库和任何样式的库与数据库进行对话。

一种常见的模式是使用 "ORM" : "object-relational mapping"(对象-关系映射)库。
Copy link
Contributor

Choose a reason for hiding this comment

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

这里除了 ORM 可能都应该翻译,双引号参考排版建议使用直角引号

Choose a reason for hiding this comment

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

根据 中文出版物夹用英文的编辑标准 似乎用英式引号也没问题吧。


一种常见的模式是使用 "ORM" : "object-relational mapping"(对象-关系映射)库。

ORM拥有将代码中的 *objects* 和数据库表("*relations*")之间进行转换的工具。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ORM拥有将代码中的 *objects* 和数据库表("*relations*")之间进行转换的工具
ORM 有工具可以转换代码中的*对象*和数据库表(「*关系*」)之间的(「映射」)

Copy link
Contributor

Choose a reason for hiding this comment

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

因为发现排版问题较多,建议检查如下排版问题:

  1. 中英文之间加空格
  2. 部分标点未使用全角标点(中文标点)
  3. 双引号换直角引号
  4. 部分英文未翻译

@tiangolo
Copy link
Member

It seems this was translated in another PR, so I'll close this one here, but thanks! ☕

@tiangolo tiangolo closed this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review lang-all Translations lang-zh Chinese translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants