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

Skip to content

Translating json rst 162 #541

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

Closed
wants to merge 8 commits into from
Closed
Changes from 3 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
10 changes: 8 additions & 2 deletions library/json.po
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ msgid ""
"If *check_circular* is false (default: ``True``), then the circular "
"reference check for container types will be skipped and a circular reference "
"will result in a :exc:`RecursionError` (or worse)."
msgstr ""
msgstr "如果 *chech_circular* 設為 false (預設是 ``True``), 那麼json將不會檢查"
"是否有循環參照 (circular reference) 的情形。如果有循環參照的情形發生,則會出直接"
"由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)"

#: ../../library/json.rst:162
msgid ""
Expand All @@ -141,7 +143,11 @@ msgid ""
"``inf``, ``-inf``) in strict compliance of the JSON specification. If "
"*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-"
"Infinity``) will be used."
msgstr ""
msgstr "如果 *allow_nan* 設為 False (預設值為 ``True``), 那麼串聯化 (serialize)"
":class:`float` 的特殊值 (``nan``, ""``inf``, ``-inf``) 會觸發 :exc:`ValueError`"
"這麼設定是為了遵守較嚴格的 JSON 規範 (strict JSON specification)。 如果設為 True,"
"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值去(``NaN``,"
"``Infinity``, ``-Infinity``)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • strict JSON specification 我覺得不是專有名詞不用附上原文
  • 標點符號相關修正
Suggested change
msgstr "如果 *allow_nan* 設為 False (預設值為 ``True``), 那麼串聯化 (serialize)"
":class:`float` 的特殊值 (``nan``, ""``inf``, ``-inf``) 會觸發 :exc:`ValueError`"
"這麼設定是為了遵守較嚴格的 JSON 規範 (strict JSON specification)。 如果設為 True,"
"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值去(``NaN``,"
"``Infinity``, ``-Infinity``)"
msgstr "如果 *allow_nan* 設為 False預設值為 ``True``),那麼串聯化 (serialize)"
":class:`float` 的特殊值 (``nan``, ``inf``, ``-inf``) 會觸發 :exc:`ValueError`"
"這麼設定是為了遵守較嚴格的 JSON 規範如果設為 True,"
"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值去 (``NaN``,"
"``Infinity``, ``-Infinity``)"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

感謝修正 有稍微再調一下斷行


#: ../../library/json.rst:168 ../../library/json.rst:452
msgid ""
Expand Down