Skip to content

Commit 6da09fe

Browse files
[po] auto sync
1 parent 951a049 commit 6da09fe

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "96.11%", "updated_at": "2024-08-25T02:08:38Z"}
1+
{"translation": "96.11%", "updated_at": "2024-08-25T02:53:46Z"}

howto/regex.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ msgid ""
7979
"requires that you have a good understanding of the matching engine's "
8080
"internals."
8181
msgstr ""
82-
"正则表达式会被编译成一系列字节码,然后由 C "
83-
"语言编写的匹配引擎执行。对于高级用途,可能有必要特别注意引擎将如何执行一个给定的正则,并以某种方式写入正则,以生成运行更快的字节码。本文不涉及优化问题,因为这要求你对正则引擎的匹配过程有很好的了解。"
82+
"正则表达式 pattern 会被编译成一系列字节码,然后由 C "
83+
"语言编写的匹配引擎执行。对于高级应用场景,可能需要仔细考虑引擎如何执行给定的正则表达式,并以特定的方式编写正则表达式,以生成运行速度更快的字节码。然而,本文不会涉及此类优化技术,因为这要求读者对匹配引擎的内部机制有深入的理解。"
8484

8585
#: ../../howto/regex.rst:42
8686
msgid ""
@@ -92,8 +92,8 @@ msgid ""
9292
"be slower than an elaborate regular expression, it will also probably be "
9393
"more understandable."
9494
msgstr ""
95-
"正则表达式语言相对较小且受限,因此并非所有可能的字符串处理任务都可以使用正则表达式完成。有些任务尽管*可以*用正则表达式来完成,但表达式会变得非常复杂。这些情况下,最好通过编写"
96-
" Python 代码来进行处理。也许 Python 代码会比精心设计的正则表达式慢,但它可能更容易理解。"
95+
"正则表达式语言相对较小且受限,因此并非所有的字符串处理任务都能用正则表达式完成。有些任务尽管**可以**用正则表达式来完成,但表达式会变得非常复杂。在这些情况下,最好通过编写"
96+
" Python 代码来进行处理。也许 Python 代码的运行速度会比精心设计的正则表达式慢,但通常更容易理解。"
9797

9898
#: ../../howto/regex.rst:51
9999
msgid "Simple Patterns"
@@ -104,14 +104,14 @@ msgid ""
104104
"We'll start by learning about the simplest possible regular expressions. "
105105
"Since regular expressions are used to operate on strings, we'll begin with "
106106
"the most common task: matching characters."
107-
msgstr "让我们从最简单的正则表达式开始吧。由于正则表达式是用来操作字符串的,我们将从最常见的任务开始:匹配字符。"
107+
msgstr "让我们从最简单的正则表达式开始学习。由于正则表达式是用于处理字符串的,我们将从最常见的任务入手:匹配字符。"
108108

109109
#: ../../howto/regex.rst:57
110110
msgid ""
111111
"For a detailed explanation of the computer science underlying regular "
112112
"expressions (deterministic and non-deterministic finite automata), you can "
113113
"refer to almost any textbook on writing compilers."
114-
msgstr "关于正则表达式背后的计算机科学的详细解释(确定性和非确定性有限自动机),你可以参考几乎所有关于编写编译器的教科书。"
114+
msgstr "如果你想深入了解正则表达式背后的计算机科学原理(确定性和非确定性有限自动机),可参阅任何一本编译原理教材。"
115115

116116
#: ../../howto/regex.rst:63
117117
msgid "Matching Characters"
@@ -124,8 +124,8 @@ msgid ""
124124
"can enable a case-insensitive mode that would let this RE match ``Test`` or "
125125
"``TEST`` as well; more about this later.)"
126126
msgstr ""
127-
"大多数字母和符号都会简单地匹配自身。例如,正则表达式 ``test`` 将会精确地匹配到 ``test`` "
128-
"。(你可以启用不区分大小写模式,让这个正则也匹配 ``Test`` 或 ``TEST`` ,稍后会详细介绍。)"
127+
"大多数字符在正则表达式中会简单地匹配自身。例如,正则表达式 ``test`` 将会精确地匹配到 ``test`` "
128+
"。(你可以启用不区分大小写模式,让这个正则也匹配 ``Test`` 或 ``TEST`` ;关于这一点,稍后会详细讨论。)"
129129

130130
#: ../../howto/regex.rst:70
131131
msgid ""

0 commit comments

Comments
 (0)