Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork216
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
base:3.13
Are you sure you want to change the base?
Conversation
I will fix it later |
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. |
Uh oh!
There was an error while loading.Please reload this page.
@mattwang44 我的check過了,現在應該可以正常編譯。換行我這裏只能手動換(我的poedit開的就是79自動換行我也不知道爲什麽)如果你能一鍵調整過去就最好了plz。翻譯基本結束了,但是有一些繁體這邊的用語可能不太對(我平常還是英文用的比較多)麻煩你review一下plz |
There was a problem hiding this 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
":mod:`http.cookiejar` 模組定義了自動處理 HTTP cookie 的類別。 儅訪問需要一些" | ||
"數據 —— :dfn:`cookies` 的網站的時候非常有用。这些数据被客戶端依據服務端的 " | ||
"HTTP 響應設置,並在之後被返回到服務端。" |
mattwang44Jun 27, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
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: 回傳
- 小修改語序讓它更通暢
- 修改少部分簡體中文
":mod:`http.cookiejar` 模組定義了自動處理 HTTP cookie 的類別。 儅訪問需要一些" | |
"數據 —— :dfn:`cookies`的網站的時候非常有用。这些数据被客戶端依據服務端的" | |
"HTTP響應設置,並在之後被返回到服務端。" | |
":mod:`http.cookiejar` 模組定義了自動處理 HTTP cookie 的類別。當存取需要小量" | |
"資料 —— :dfn:`cookies`—— 的網站時會非常有用。這些資料會依據網頁伺服器的" | |
"HTTP回應來設置於用戶端機器,並在之後的請求中被回傳到伺服器。" |
"一般的 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 屬性。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
- 修正詞彙慣用翻譯
- default: 預設
- parse: 剖析
- support: 支援
- protocal: 協定
- 中文句中標點符號應為全形
"一般的 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 屬性。" |
"參數 (例如 `domain` 和 `expires`),通常被稱為 :dfn:`attributes`。 為了與 " | ||
"Python 的屬性分別開,這個模組的說明文件使用 :dfn:`cookie-attribute` 來取代。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"參數 (例如 `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"模組定義了以下異常:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
exception 目前我們翻譯慣例是翻成「例外」
msgstr "模組定義了以下異常:" | |
msgstr "模組定義了以下例外:" |
"當從文件載入 cookies 失敗時, :class:`FileCookieJar` 的實例會產生這個異" | ||
"常。 :exc:`LoadError` 是 :exc:`OSError` 的子類。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
- 修正詞彙慣用翻譯
- file: 檔案
- class: 類別
"當從文件載入 cookies 失敗時,:class:`FileCookieJar`的實例會產生這個異" | |
"常。:exc:`LoadError` 是 :exc:`OSError`的子類。" | |
"當從檔案載入 cookies 失敗時,:class:`FileCookieJar`的實例會引發這個例" | |
"外。:exc:`LoadError` 是 :exc:`OSError`的子類別。" |
":class:`CookieJar` 會在 *response* 參數中尋找允許的 :mailheader:`Set-Cookie` " | ||
"和 :mailheader:`Set-Cookie2` 標頭,並視情況儲存 cookies (需" | ||
"經 :meth:`CookiePolicy.set_ok` 方法的檢測)。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
":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` 方法的檢測)。" |
"*response* 物件 (通常是調用 :meth:`urllib.request.urlopen` 或類似的結果) 應該" | ||
"支持 :meth:`info` 方法,它會回傳一個 :class:`email.message.Message` 的實例。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"*response* 物件 (通常是調用:meth:`urllib.request.urlopen`或類似的結果)應該" | |
"支持 :meth:`info` 方法,它會回傳一個 :class:`email.message.Message` 的實例。" | |
"*response* 物件(通常是呼叫:meth:`urllib.request.urlopen`的結果或類似的東西)應該" | |
"支援 :meth:`info` 方法,它會回傳一個 :class:`email.message.Message` 的實例。" |
"*request* 物件 (通常是 :class:`urllib.request.Request` 的實例) 必須支" | ||
"持 :meth:`get_full_url` 方法,以及 :attr:`host`、:attr:`unverifiable` " | ||
"和 :attr:`origin_req_host` 等屬性,如 :mod:`urllib.request` 的文檔所說,該請" | ||
"求被用於設置 cookie-attributes 的默認值並檢查 cookie 是否允許被設置。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"*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` 物件序列。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
msgstr "傳回從 *response*對象獲取的 :class:`Cookie` 物件序列。" | |
msgstr "回傳從 *response*物件抽取出的 :class:`Cookie` 物件序列。" |
"有關 *response* 和 *request* 參數所需的接口,請參閱 :meth:`extract_cookies` " | ||
"的說明文檔。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"有關 *response* 和 *request*參數所需的接口,請參閱 :meth:`extract_cookies`" | |
"的說明文檔。" | |
"有關 *response* 和 *request*引數所需的介面,請參閱 :meth:`extract_cookies`" | |
"的說明文件。" |
No description provided.