Skip to content

Add translations to library/json rst:26 and rst:29 #537

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

Merged
merged 3 commits into from
Aug 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion library/json.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-29 10:36+0000\n"
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
"PO-Revision-Date: 2023-08-05 16:26+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand All @@ -18,6 +18,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.3.2\n"

#: ../../library/json.rst:2
msgid ":mod:`json` --- JSON encoder and decoder"
Expand Down Expand Up @@ -49,10 +50,15 @@ msgid ""
":mod:`json` exposes an API familiar to users of the standard library :mod:"
"`marshal` and :mod:`pickle` modules."
msgstr ""
":mod:`json` 為標準函式庫 :mod:`marshal` 與 :mod:`pickle` 模組的使用者提供熟悉"
"的 API。"

#: ../../library/json.rst:29
msgid "Encoding basic Python object hierarchies::"
msgstr ""
"對基本 Python 物件階層進行編碼:\n"
"\n"
"::"
Comment on lines +59 to +61
Copy link
Collaborator

@rockleona rockleona Aug 5, 2023

Choose a reason for hiding this comment

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

感覺是不是多餘的空白
對照原文的話是不是這樣就好了

Suggested change
"對基本 Python 物件階層進行編碼:\n"
"\n"
"::"
"對基本 Python 物件階層進行編碼:"

Copy link
Collaborator

Choose a reason for hiding this comment

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

剛剛誤會 :: 的意思了 XD
再麻煩看一下

Copy link
Contributor Author

Choose a reason for hiding this comment

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

看 README 才發現有這個神祕語法 還要多一個換行XD

Copy link
Collaborator

Choose a reason for hiding this comment

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

翻譯中抽換成以下這樣是正確的歐,請參考 rst literal block 用法

"...:\n"
"\n"
"::"

Copy link
Collaborator

@mattwang44 mattwang44 Aug 5, 2023

Choose a reason for hiding this comment

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

其實使用以下這樣的單行形式比較省事,只是前人在 readme 內寫完整形式,而大家也就 follow 到現在

...: ::


#: ../../library/json.rst:48
msgid "Compact encoding::"
Expand Down