Skip to content

Commit 5ee5eee

Browse files
jianan1104Lin Jian Anmattwang44
authored
feat(lib/re.po) translate re library (#657)
* feat(lib/re.po) translate libary * Update library/re.po Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com> --------- Co-authored-by: Lin Jian An <kane@Lins-MacBook-Pro.local> Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
1 parent 4ae1009 commit 5ee5eee

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

library/re.po

+24-24
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2023-08-27 00:04+0000\n"
12-
"PO-Revision-Date: 2023-05-20 13:44+0800\n"
12+
"PO-Revision-Date: 2023-09-16 14:49+0800\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1515
"tw)\n"
@@ -18,7 +18,7 @@ msgstr ""
1818
"Content-Type: text/plain; charset=UTF-8\n"
1919
"Content-Transfer-Encoding: 8bit\n"
2020
"Plural-Forms: nplurals=1; plural=0;\n"
21-
"X-Generator: Poedit 3.3.1\n"
21+
"X-Generator: Poedit 3.3.2\n"
2222

2323
#: ../../library/re.rst:2
2424
msgid ":mod:`re` --- Regular expression operations"
@@ -32,8 +32,7 @@ msgstr "**原始碼:**\\ :source:`Lib/re/`"
3232
msgid ""
3333
"This module provides regular expression matching operations similar to those "
3434
"found in Perl."
35-
msgstr ""
36-
"此模組提供類似於 Perl 中正規表示式的配對操作。"
35+
msgstr "此模組提供類似於 Perl 中正規表示式的配對操作。"
3736

3837
#: ../../library/re.rst:17
3938
msgid ""
@@ -44,10 +43,10 @@ msgid ""
4443
"substitution, the replacement string must be of the same type as both the "
4544
"pattern and the search string."
4645
msgstr ""
47-
"被搜尋的模式 (pattern) 與字串可以是 Unicode 字串 (:class:`str`),也可以是 8-bit "
48-
"字串 (:class:`bytes`)。然而,Unicode 字串和 8-bit 字串不能混用:也就是,你不能用 "
49-
"byte 模式配對 Unicode 字串,反之亦然;同樣地,替換時,用來替換的字串必須與模式和搜尋"
50-
"字串是相同的型別 (type)。"
46+
"被搜尋的模式 (pattern) 與字串可以是 Unicode 字串 (:class:`str`),也可以是 8-"
47+
"bit 字串 (:class:`bytes`)。然而,Unicode 字串和 8-bit 字串不能混用:也就是,"
48+
"你不能用 byte 模式配對 Unicode 字串,反之亦然;同樣地,替換時,用來替換的字串"
49+
"必須與模式和搜尋字串是相同的型別 (type)。"
5150

5251
#: ../../library/re.rst:24
5352
msgid ""
@@ -64,12 +63,13 @@ msgid ""
6463
"even if it is a valid escape sequence for a regular expression."
6564
msgstr ""
6665
"正規表示式使用反斜線字元 (``'\\'``) 表示特別的形式,或是使用特殊字元而不調用"
67-
"它們的特殊意義。這與 Python 在字串文本 (literal) 中,為了一樣的目的使用同一個字元的"
68-
"目的相衝突;舉例來說,為了配對一個反斜線文字,一個人可能需要寫 ``'\\\\\\\\'`` 當作"
69-
"模式字串,因為正規表示式必須是 ``\\\\``,而且每個反斜線在一個普通的 Python 字串文本中"
70-
"必須表示為 ``\\\\``。另外,請注意在 Python 的字串文本中使用反斜線的任何無效跳脫序列"
71-
"目前會產生一個 :exc:`SyntaxWarning`,而在未來這會變成一個 :exc:`SyntaxError`。"
72-
"儘管它對正規表示式是一個有效的跳脫序列,這種行為也會發生。"
66+
"它們的特殊意義。這與 Python 在字串文本 (literal) 中,為了一樣的目的使用同一個"
67+
"字元的目的相衝突;舉例來說,為了配對一個反斜線文字,一個人可能需要寫 ``'\\\\"
68+
"\\\\'`` 當作模式字串,因為正規表示式必須是 ``\\\\``,而且每個反斜線在一個普通"
69+
"的 Python 字串文本中必須表示為 ``\\\\``。另外,請注意在 Python 的字串文本中使"
70+
"用反斜線的任何無效跳脫序列目前會產生一個 :exc:`SyntaxWarning`,而在未來這會變"
71+
"成一個 :exc:`SyntaxError`。儘管它對正規表示式是一個有效的跳脫序列,這種行為也"
72+
"會發生。"
7373

7474
#: ../../library/re.rst:36
7575
msgid ""
@@ -80,10 +80,10 @@ msgid ""
8080
"a newline. Usually patterns will be expressed in Python code using this raw "
8181
"string notation."
8282
msgstr ""
83-
"解決方法是對正規表示式模式使用 Python 的原始字串符號;反斜線在一個以 ``'r'`` 為前綴"
84-
"的字串文本中不會被用任何特別的方式處理。所以 ``r\"\\n\"`` 是一個兩個字元的字串,包含"
85-
" ``'\\'`` 和 ``'n'``,同時 ``\"\\n\"`` 是一個單個字元的字串,包含一個換行符號。通常"
86-
"模式在 Python 程式中會使用這個原始字串符號表示。"
83+
"解決方法是對正規表示式模式使用 Python 的原始字串符號;反斜線在一個以 ``'r'`` "
84+
"為前綴的字串文本中不會被用任何特別的方式處理。所以 ``r\"\\n\"`` 是一個兩個字"
85+
"元的字串,包含 ``'\\'`` 和 ``'n'``,同時 ``\"\\n\"`` 是一個單個字元的字串,"
86+
"含一個換行符號。通常模式在 Python 程式中會使用這個原始字串符號表示。"
8787

8888
#: ../../library/re.rst:43
8989
msgid ""
@@ -92,22 +92,22 @@ msgid ""
9292
"expressions <re-objects>`. The functions are shortcuts that don't require "
9393
"you to compile a regex object first, but miss some fine-tuning parameters."
9494
msgstr ""
95-
"請務必注意到大部分的正規表示式操作是可以在模組層級的函式和 :ref:`"
96-
"compiled regular expressions <re-objects>` 中的方法使用的。這些函式是個捷徑"
97-
"且讓你不需要先編譯一個正規表示式物件,但是會缺少一些微調參數。"
95+
"請務必注意到大部分的正規表示式操作是可以在模組層級的函式和 :ref:`compiled "
96+
"regular expressions <re-objects>` 中的方法使用的。這些函式是個捷徑且讓你不需"
97+
"要先編譯一個正規表示式物件,但是會缺少一些微調參數。"
9898

9999
#: ../../library/re.rst:51
100100
msgid ""
101101
"The third-party `regex <https://pypi.org/project/regex/>`_ module, which has "
102102
"an API compatible with the standard library :mod:`re` module, but offers "
103103
"additional functionality and a more thorough Unicode support."
104104
msgstr ""
105-
"第三方的 `regex <https://pypi.org/project/regex/>`_ 模組,有著和標準函式庫"
106-
" :mod:`re` 模組相容的 API,但是提供額外的功能以及更完整的 Unicode 支援。"
105+
"第三方的 `regex <https://pypi.org/project/regex/>`_ 模組,有著和標準函式庫 :"
106+
"mod:`re` 模組相容的 API,但是提供額外的功能以及更完整的 Unicode 支援。"
107107

108108
#: ../../library/re.rst:59
109109
msgid "Regular Expression Syntax"
110-
msgstr ""
110+
msgstr "正規表示式語法"
111111

112112
#: ../../library/re.rst:61
113113
msgid ""

0 commit comments

Comments
 (0)