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

Skip to content

Commit d190df4

Browse files
[po] auto sync
1 parent c9929f1 commit d190df4

2 files changed

Lines changed: 14 additions & 12 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-25T16:47:09Z"}
1+
{"translation": "96.11%", "updated_at": "2024-08-25T17:47:23Z"}

howto/regex.po

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,10 @@ msgid ""
474474
"similar example, ``ca+t`` will match ``'cat'`` (1 ``'a'``), ``'caaat'`` (3 "
475475
"``'a'``\\ s), but won't match ``'ct'``."
476476
msgstr ""
477-
"另一个重复元字符是 ``+`` ,表示匹配一次或更多次。请注意 ``*`` 与 ``+`` 之间的差别。 ``*`` 表示匹配 *零次* "
478-
"或更多次,也就是说它所重复的内容是可以完全不出现的。而 ``+`` 则要求至少出现一次。举一个类似的例子, ``ca+t`` 可以匹配 "
479-
"``'cat'`` ( 1 个 ``'a'`` )或 ``'caaat'`` ( 3 个 ``'a'``),但不能匹配 ``'ct'`` 。"
477+
"正则表达式中另一个常用的重复元字符是 ``+``,它表示匹配一次或更多次。要特别注意 ``*`` 与 ``+`` "
478+
"之间的区别。``*``匹配零次或更多次,也就是说它所重复的部分有可能是根本不存在的。而 ``+`` 则要求至少出现一次。举一个类似的例子,正则 "
479+
"```ca+t``可以匹配 ``'cat'`` ( 1 个 ``'a'``)或 ``'caaat'`` ( 3 个 ``'a'``),但不能匹配 "
480+
"``'ct'`` 。"
480481

481482
#: ../../howto/regex.rst:233
482483
msgid ""
@@ -485,7 +486,7 @@ msgid ""
485486
"marking something as being optional. For example, ``home-?brew`` matches "
486487
"either ``'homebrew'`` or ``'home-brew'``."
487488
msgstr ""
488-
"此外还有两个重复操作符或限定符。 问号 ``?`` 表示匹配一次或零次;你可以认为它把某项内容变成了可选的。 例如,``home-?brew`` "
489+
"还有两个常用的重复运算符或量词。 其中,问号 ``?`` 表示匹配一次或零次,可以理解为将某个部分标记为可选项。 例如,``home-?brew`` "
489490
"可以匹配 ``'homebrew'`` 或 ``'home-brew'``。"
490491

491492
#: ../../howto/regex.rst:238
@@ -496,8 +497,8 @@ msgid ""
496497
"and ``'a///b'``. It won't match ``'ab'``, which has no slashes, or "
497498
"``'a////b'``, which has four."
498499
msgstr ""
499-
"最复杂的限定符是 ``{m,n}``,其中 *m* 和 *n* 都是十进制整数。 该限定符表示必须至少重复 *m* 次,至多重复 *n* 次。 "
500-
"例如,``a/{1,3}b`` 将匹配 ``'a/b'``, ``'a//b'`` 和 ``'a///b'``。 它不能匹配 "
500+
"最复杂的量词是 ``{m,n}``,其中 *m* 和 *n* 是十进制整数。 该量词表示必须至少重复 *m* 次,至多重复 *n* 次。 例如,正则 "
501+
"``a/{1,3}b`` 可以匹配 ``'a/b'``, ``'a//b'`` 和 ``'a///b'``。 但它不能匹配 "
501502
"``'ab'``,因为其中没有斜杠,也不能匹配 ``'a////b'``,因为其中有四个斜杠。"
502503

503504
#: ../../howto/regex.rst:244
@@ -506,13 +507,14 @@ msgid ""
506507
"for the missing value. Omitting *m* is interpreted as a lower limit of 0, "
507508
"while omitting *n* results in an upper bound of infinity."
508509
msgstr ""
509-
"*m* 和 *n* 不是必填的,缺失的情况下会设定为默认值。缺失 *m* 会解释为最少重复 0 次 ,缺失 *n* 则解释为最多重复无限次。"
510+
"这个量词中的 *m* 和 *n* 都是可以省略的。在这种情况下,系统会为缺失的值赋予一个合理的默认值。如果省略 *m* ,下限默认为 0 ;如果省略 "
511+
"*n* ,则上限默认为无限大。"
510512

511513
#: ../../howto/regex.rst:248
512514
msgid ""
513515
"The simplest case ``{m}`` matches the preceding item exactly *m* times. For "
514516
"example, ``a/{2}b`` will only match ``'a//b'``."
515-
msgstr "最简单情况 ``{m}`` 将与前一项完全匹配 *m* 次。 例如,``a/{2}b`` 将只匹配 ``'a//b'``。"
517+
msgstr "最简单情况是 ``{m}`` ,它会精确匹配前面的元素 *m* 次。 例如,``a/{2}b`` 只会匹配 ``'a//b'``。"
516518

517519
#: ../../howto/regex.rst:251
518520
msgid ""
@@ -522,12 +524,12 @@ msgid ""
522524
"better to use ``*``, ``+``, or ``?`` when you can, simply because they're "
523525
"shorter and easier to read."
524526
msgstr ""
525-
"细心的读者可能会注意到另外三个限定符都可以使用此标记法来表示。 ``{0,}`` 等同于 ``*``, ``{1,}`` 等同于 ``+``, 而 "
526-
"``{0,1}`` 等同于 ``?``。 在可能的情况下使用 ``*``, ``+`` 或 ``?`` 会更好,因为它们更为简短易读。"
527+
"善于归纳的读者可能会注意到,另外那三个量词都可以用这种表示法来表达。 ``{0,}`` 等同于 ``*``, ``{1,}`` 等同于 ``+``, 而"
528+
" ``{0,1}`` 等同于 ``?`` 。不过,在可能的情况下,最好使用 ``*``, ``+`` 或 ``?`` ,因为它们更简短、更易于阅读。"
527529

528530
#: ../../howto/regex.rst:259
529531
msgid "Using Regular Expressions"
530-
msgstr "使用正则表达式"
532+
msgstr "正则表达式的使用"
531533

532534
#: ../../howto/regex.rst:261
533535
msgid ""

0 commit comments

Comments
 (0)