Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translate library/http.cookiejar.po#1066

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
LamentXU123 wants to merge8 commits intopython:3.13
base:3.13
Choose a base branch
Loading
fromLamentXU123:http-cookiejar-trans

Conversation

LamentXU123
Copy link
Contributor

No description provided.

@LamentXU123
Copy link
ContributorAuthor

I will fix it later

@LamentXU123LamentXU123 changed the titleTransale library/http.cookiejar.poTranslate library/http.cookiejar.poJun 27, 2025
@mattwang44
Copy link
Collaborator

nvm take your time. you can optionally make it a draft before it's ready.

@LamentXU123
Copy link
ContributorAuthor

nvm take your time. you can optionally make it a draft before it's ready.

I will finish it ASAP. It won't take long, just 10 min I think.

mattwang44 reacted with thumbs up emoji

@mattwang44mattwang44 linked an issueJun 27, 2025 that may beclosed by this pull request
@LamentXU123
Copy link
ContributorAuthor

@mattwang44 我的check過了,現在應該可以正常編譯。換行我這裏只能手動換(我的poedit開的就是79自動換行我也不知道爲什麽)如果你能一鍵調整過去就最好了plz。翻譯基本結束了,但是有一些繁體這邊的用語可能不太對(我平常還是英文用的比較多)麻煩你review一下plz

mattwang44 reacted with thumbs up emojimattwang44 reacted with heart emoji

Copy link
Collaborator

@mattwang44mattwang44 left a comment

Choose a reason for hiding this comment

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

先 review 到一半#: ../../library/http.cookiejar.rst:221

Comment on lines +38 to +40
":mod:`http.cookiejar` 模組定義了自動處理 HTTP cookie 的類別。 儅訪問需要一些"
"數據 —— :dfn:`cookies` 的網站的時候非常有用。这些数据被客戶端依據服務端的 "
"HTTP 響應設置,並在之後被返回到服務端。"
Copy link
Collaborator

@mattwang44mattwang44Jun 27, 2025
edited
Loading

Choose a reason for hiding this comment

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

  • 修正詞彙慣用翻譯
    • access: 存取
    • data: 資料
    • client: 用戶
    • server: 伺服器
    • response: 回應
    • return: 回傳
  • 小修改語序讓它更通暢
  • 修改少部分簡體中文
Suggested change
":mod:`http.cookiejar` 模組定義了自動處理 HTTP cookie 的類別。 儅訪問需要一些"
"數據 —— :dfn:`cookies`的網站的時候非常有用。这些数据被客戶端依據服務端的"
"HTTP響應設置,並在之後被返回到服務端"
":mod:`http.cookiejar` 模組定義了自動處理 HTTP cookie 的類別。當存取需要小量"
"資料 —— :dfn:`cookies`—— 的網站時會非常有用。這些資料會依據網頁伺服器的"
"HTTP回應來設置於用戶端機器,並在之後的請求中被回傳到伺服器"

Comment on lines +54 to +59
"一般的 Netscape cookie 協議和 :rfc:`2965` 定義的 cookie 協議都會被處理。 RFC "
"2965 處理默認是關閉的。 :rfc:`2109` cookie 會被解析為 Netscape cookie,然後根"
"據有效的「策略」,被處理為 Netscape 或 RFC 2965 "
"cookie。:mod:`http.cookiejar` 嘗試遵循實際上的 Netscape cookie 協議 (與原始"
"的 Netscape 規格有很大的不同),包括支持 RFC 2965 引進的 ``max-age` 和 "
"``port`` cookie 屬性。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 修正詞彙慣用翻譯
    • default: 預設
    • parse: 剖析
    • support: 支援
    • protocal: 協定
  • 中文句中標點符號應為全形
Suggested change
"一般的 Netscape cookie協議和 :rfc:`2965` 定義的 cookie協議都會被處理。RFC"
"2965處理默認是關閉的。:rfc:`2109` cookie會被解析為 Netscape cookie,然後根"
"據有效的「策略」,被處理為 Netscape 或 RFC 2965"
"cookie。:mod:`http.cookiejar`嘗試遵循實際上的 Netscape cookie協議 (與原始"
"的 Netscape規格有很大的不同),包括支持 RFC 2965引進的 ``max-age` 和"
"``port`` cookie 屬性。"
"一般的 Netscape cookie協定和 :rfc:`2965` 定義的 cookie協定都會被處理。RFC"
"2965的處理預設是關閉的。:rfc:`2109` cookie會被剖析為 Netscape cookie,然後根"
"據有生效的「策略」來被看作為 Netscape 或 RFC 2965"
"cookie。:mod:`http.cookiejar`會嘗試遵循實際上的 Netscape cookie協定(與原始"
"的 Netscape規格中的協定有很大的不同),包括 RFC 2965所引進的 ``max-age` 和"
"``port`` cookie 屬性。"

Comment on lines +70 to +71
"參數 (例如 `domain` 和 `expires`),通常被稱為 :dfn:`attributes`。 為了與 "
"Python 的屬性分別開,這個模組的說明文件使用 :dfn:`cookie-attribute` 來取代。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"參數 (例如 `domain` 和 `expires`),通常被稱為 :dfn:`attributes`。為了與"
"Python 的屬性分別開,這個模組的說明文件使用 :dfn:`cookie-attribute`來取代"
"參數例如 `domain` 和 `expires`通常被稱為 :dfn:`attributes`。為了與"
"Python 的屬性分別開,這個模組的說明文件改用 :dfn:`cookie-attribute`來稱呼"


#:../../library/http.cookiejar.rst:38
msgid"The module defines the following exception:"
msgstr""
msgstr"模組定義了以下異常:"
Copy link
Collaborator

Choose a reason for hiding this comment

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

exception 目前我們翻譯慣例是翻成「例外」

Suggested change
msgstr "模組定義了以下異常:"
msgstr "模組定義了以下例外:"

Comment on lines +82 to +83
"當從文件載入 cookies 失敗時, :class:`FileCookieJar` 的實例會產生這個異"
"常。 :exc:`LoadError` 是 :exc:`OSError` 的子類。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 修正詞彙慣用翻譯
    • file: 檔案
    • class: 類別
Suggested change
"當從文件載入 cookies 失敗時,:class:`FileCookieJar`的實例會產生這個異"
"常。:exc:`LoadError` 是 :exc:`OSError`的子類"
"當從檔案載入 cookies 失敗時,:class:`FileCookieJar`的實例會引發這個例"
"外。:exc:`LoadError` 是 :exc:`OSError`的子類別"

Comment on lines +332 to +334
":class:`CookieJar` 會在 *response* 參數中尋找允許的 :mailheader:`Set-Cookie` "
"和 :mailheader:`Set-Cookie2` 標頭,並視情況儲存 cookies (需"
"經 :meth:`CookiePolicy.set_ok` 方法的檢測)。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
":class:`CookieJar` 會在 *response*參數中尋找允許的 :mailheader:`Set-Cookie`"
"和 :mailheader:`Set-Cookie2` 標頭,並視情況儲存 cookies ("
"經 :meth:`CookiePolicy.set_ok` 方法的檢測)"
":class:`CookieJar` 會在 *response*引數中尋找允許的 :mailheader:`Set-Cookie`"
"和 :mailheader:`Set-Cookie2` 標頭,並視情況儲存 cookies"
"經 :meth:`CookiePolicy.set_ok` 方法的檢測"

Comment on lines +343 to +344
"*response* 物件 (通常是調用 :meth:`urllib.request.urlopen` 或類似的結果) 應該"
"支持 :meth:`info` 方法,它會回傳一個 :class:`email.message.Message` 的實例。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"*response* 物件 (通常是調用:meth:`urllib.request.urlopen`或類似的結果)應該"
"支持 :meth:`info` 方法,它會回傳一個 :class:`email.message.Message` 的實例。"
"*response* 物件(通常是呼叫:meth:`urllib.request.urlopen`的結果或類似的東西)應該"
"支援 :meth:`info` 方法,它會回傳一個 :class:`email.message.Message` 的實例。"

Comment on lines +355 to +358
"*request* 物件 (通常是 :class:`urllib.request.Request` 的實例) 必須支"
"持 :meth:`get_full_url` 方法,以及 :attr:`host`、:attr:`unverifiable` "
"和 :attr:`origin_req_host` 等屬性,如 :mod:`urllib.request` 的文檔所說,該請"
"求被用於設置 cookie-attributes 的默認值並檢查 cookie 是否允許被設置。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"*request* 物件 (通常是 :class:`urllib.request.Request` 的實例) 必須支"
" :meth:`get_full_url`方法,以及 :attr:`host`、:attr:`unverifiable`"
"和 :attr:`origin_req_host` 等屬性,如 :mod:`urllib.request` 的文檔所說,該請"
"求被用於設置 cookie-attributes的默認值並檢查 cookie 是否允許被設置。"
"如 :mod:`urllib.request` 的文件所說,*request* 物件通常是 :class:`urllib.request.Request` 的實例"
"必須支援 :meth:`get_full_url`方法以及 :attr:`host`、:attr:`unverifiable`"
"和 :attr:`origin_req_host` 等屬性,該請"
"求被用於設置 cookie-attributes的預設值並檢查 cookie 是否允許被設置。"


#:../../library/http.cookiejar.rst:208
msgid""
"Return sequence of :class:`Cookie` objects extracted from *response* object."
msgstr""
msgstr"傳回從 *response* 對象獲取的 :class:`Cookie` 物件序列。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
msgstr "傳回從 *response*對象獲取的 :class:`Cookie` 物件序列。"
msgstr "回傳從 *response*物件抽取出的 :class:`Cookie` 物件序列。"

Comment on lines +374 to +375
"有關 *response* 和 *request* 參數所需的接口,請參閱 :meth:`extract_cookies` "
"的說明文檔。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"有關 *response* 和 *request*參數所需的接口,請參閱 :meth:`extract_cookies`"
"的說明文檔"
"有關 *response* 和 *request*引數所需的介面,請參閱 :meth:`extract_cookies`"
"的說明文件"

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

@mattwang44mattwang44mattwang44 left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Translatelibaray/http.cookiejar.po
2 participants
@LamentXU123@mattwang44

[8]ページ先頭

©2009-2025 Movatter.jp