Thanks to visit codestin.com
Credit goes to github.com

Skip to content

🌐 Add Korean translation for docs/ko/docs/tutorial/sql-databases.md#13093

Merged
alejsdev merged 5 commits into
fastapi:masterfrom
dnfto:translate-sql-databases-ko
Dec 24, 2024
Merged

🌐 Add Korean translation for docs/ko/docs/tutorial/sql-databases.md#13093
alejsdev merged 5 commits into
fastapi:masterfrom
dnfto:translate-sql-databases-ko

Conversation

@dnfto

@dnfto dnfto commented Dec 18, 2024

Copy link
Copy Markdown
Contributor

This PR translates docs/ko/docs/tutorial/sql-databases.md in Korean.
related: #3167

@github-actions github-actions Bot added the lang-all Translations label Dec 18, 2024
@github-actions

Copy link
Copy Markdown
Contributor

@dnfto dnfto changed the title 🌐 Add Korean translation for docs/ko/docs/tutorial/sql-databases.md 🌐 Add Korean translation for docs/ko/docs/tutorial/sql-databases.md Dec 18, 2024
@alejsdev alejsdev added awaiting-review lang-ko Korean translations labels Dec 18, 2024

@hard-coders hard-coders left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job! I've reviewed it, so please check it out 😄

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated
* Oracle
* Microsoft SQL Server 등.

이 예제에서는 SQLite를 사용합니다. **SQLite**는 단일 파일을 사용하고 Python에서 기본적으로 지원하기 때문입니다. 따라서 이 예제를 그대로 복사하여 실행할 수 있습니다.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
이 예제에서는 SQLite를 사용합니다. **SQLite**단일 파일을 사용하고 Python에서 기본적으로 지원하기 때문입니다. 따라서 이 예제를 그대로 복사하여 실행할 수 있습니다.
이 예제에서는 **SQLite**를 사용합니다. SQLite는 단일 파일을 사용하고 파이썬에서 기본적으로 지원하기 때문입니다. 따라서 이 예제를 그대로 복사하여 실행할 수 있습니다.

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

나중에 실제 프로덕션 애플리케이션에서는 **PostgreSQL**과 같은 데이터베이스 서버를 사용하는 것이 좋습니다.

/// 팁

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// 팁
/// tip |

See Translation specific tips and guidelines.

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

{* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[1:11] hl[7:11] *}

`Hero` 클래스는 Pydantic 모델과 매우 유사합니다 (실제로 내부적으로 *Pydantic model이기도 합니다*).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
`Hero` 클래스는 Pydantic 모델과 매우 유사합니다 (실제로 내부적으로 *Pydantic model이기도 합니다*).
`Hero` 클래스는 Pydantic 모델과 매우 유사합니다 (실제로 내부적으로 *Pydantic 모델이기도 합니다*).

missed.

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

* `Field(primary_key=True)`는 SQLModel에 `id`가 SQL 데이터베이스의 **기본 키**임을 알려줍니다 (SQL 기본 키에 대한 자세한 내용은 SQLModel 문서를 참고하세요).

`int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULL` 값을 허용해야 한다는 것을 알 수 있습니다.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
`int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULL` 값을 허용해야 한다는 것을 알 수 있습니다.
`int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULLABLE` 값이어야 한다는 것을 알 수 있습니다.

It's natural, but you should follow the guidelines I mentioned above.

In the guidelines:

Do not change anything enclosed in "``" (inline code).

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

`int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULL` 값을 허용해야 한다는 것을 알 수 있습니다.

* `Field(index=True)`는 SQLModel에 해당 컬럼에 대해 **SQL 인덱스**를 생성하도록 지시합니다. 이를 통해 데이터베이스에서 이 컬럼으로 필터링된 데이터를 읽을 때 더 빠르게 조회할 수 있습니다.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Translating "column" to "열" is okay; it's not good for readers to use the same term with multiple terms.
In this case, "열" and "컬럼". Please translate it into one of the two.

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated
* `id`
* `secret_name`

it **also** has the **fields** declared iso all the fare:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Untranslated 😂

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

또한 `id: int`를 다시 선언합니다. 이를 통해, API 클라이언트와 **계약**을 맺어 `id`가 항상 존재하며 항상 `int` 타입이라는 것을 보장합니다(`None`이 될 수 없습니다).

/// 팁

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// 팁
/// tip |

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

클라이언트가 **새 hero을 생성**할 때 `secret_name`을 보내고, 이는 데이터베이스에 저장되지만, 해당 비밀 이름은 API를 통해 클라이언트에게 반환되지 않습니다.

/// 팁

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// 팁
/// tip |

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

엄밀히 말하면 `HeroBase`를 상속할 필요는 없습니다. 모든 필드를 다시 선언하기 때문입니다. 일관성을 위해 상속을 유지하긴 했지만, 필수는 아닙니다. 이는 개인적인 취향의 문제입니다. 🤷

`HeroUpdate의 필드는 다음과 같습니다:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
`HeroUpdate의 필드는 다음과 같습니다:
`HeroUpdate` 필드는 다음과 같습니다:

Missed backtick

Comment thread docs/ko/docs/tutorial/sql-databases.md Outdated

{* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[56:62] hl[56:58] *}

/// 팁

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// 팁
/// 팁 | tip

@github-actions

Copy link
Copy Markdown
Contributor

@dnfto

dnfto commented Dec 20, 2024

Copy link
Copy Markdown
Contributor Author

@hard-coders Thanks so much for your review! It was incredibly helpful 😀 Since this was my first time translating, I made some mistakes 😢, but I've made the corrections based on your feedback now.

@github-actions

Copy link
Copy Markdown
Contributor

@dnfto dnfto requested a review from hard-coders December 21, 2024 14:00
@JaeHyuckSa

Copy link
Copy Markdown

LGTM 👍

@hard-coders hard-coders left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🚀
It's unimportant, but it's better for other reviewers if you "resolve" reviewed comments.

@alejsdev alejsdev merged commit eece634 into fastapi:master Dec 24, 2024
@alejsdev

Copy link
Copy Markdown
Member

Thanks for your help! @GeumBinLee 🚀
And thanks for your review @hard-coders 🤓

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

Labels

approved-2 lang-all Translations lang-ko Korean translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants