Skip to content

📝 docs(3.12): translate library/json.rst:63 #542

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 4 commits into from
Aug 8, 2023
Merged
Changes from 2 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
4 changes: 2 additions & 2 deletions 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:45+0800\n"
"Last-Translator: Adrian Liaw <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand Down Expand Up @@ -64,7 +64,7 @@ msgstr "美化輸出:"

#: ../../library/json.rst:63
msgid "Decoding JSON::"
msgstr ""
msgstr "JSON 解碼:"
Copy link
Collaborator

Choose a reason for hiding this comment

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

readme 中有提到 :: 是 rst 特殊語法,要像以下這樣修正

Suggested change
msgstr "JSON 解碼:"
msgstr ""
"JSON 解碼:\n"
"\n"
"::"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

根據readme修正語法

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

另有問題:於指令
VERSION=3.12 make all 後產出的html檔案於前一commit版本看起來是正常的,如下
image
想請問此rst語法具體影響的部分是否能被make後看出,感謝:D

Copy link
Collaborator

@mattwang44 mattwang44 Aug 8, 2023

Choose a reason for hiding this comment

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

看不出來是正常的。
make all 指令底下做的事情是用 sphinx-build 去把 html 頁面 build 出來,但 html mode 的步驟看起來是先將 template 建出來 (ref) 再去把翻譯寫進去,所以會因為 syntax highlight 都是基於原文語法來做而看不出差異。但 po file 就單純是個原文與譯文對映關係的載體,所以還是希望翻譯中要加上 \n\n::,若我們未來要使用其他根據譯文內容來做 highlighting 的工具才能正確 render。


#: ../../library/json.rst:75
msgid "Specializing JSON object decoding::"
Expand Down