Skip to content

Commit a5e006b

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent d38d3ef commit a5e006b

File tree

7 files changed

+4288
-4185
lines changed

7 files changed

+4288
-4185
lines changed

faq/programming.po

+103-107
Large diffs are not rendered by default.

howto/regex.po

+21-3
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,8 @@ msgid ""
10741074
"Make ``\\w``, ``\\W``, ``\\b``, ``\\B`` and case-insensitive matching "
10751075
"dependent on the current locale instead of the Unicode database."
10761076
msgstr ""
1077+
"``\\w``, ``\\W``, ``\\b``, ``\\B`` と小文字大文字の区別を無視したマッチングを、 Unicode "
1078+
"データベースではなく現在のロケールに従って行います。"
10771079

10781080
#: ../../howto/regex.rst:583
10791081
msgid ""
@@ -1248,7 +1250,7 @@ msgstr "例えば、行の先頭の ``From`` にのみマッチさせたい場
12481250

12491251
#: ../../howto/regex.rst:718
12501252
msgid "To match a literal ``'^'``, use ``\\^``."
1251-
msgstr ""
1253+
msgstr "リテラル ``'^'`` にマッチするには ``\\^`` を利用してください。"
12521254

12531255
#: ../../howto/regex.rst:732
12541256
msgid "``$``"
@@ -1356,6 +1358,8 @@ msgid ""
13561358
" of interest. For example, an RFC-822 header line is divided into a header "
13571359
"name and a value, separated by a ``':'``, like this:"
13581360
msgstr ""
1361+
"正規表現にマッチするかどうかだけでなく、より多くの情報を得なければいけない場合は多々あります。正規表現はしばしば、正規表現をいくつかのサブグループに分けて興味ある部分にマッチするようにして、文字列を分割するのに使われます。例えば、RFC-822"
1362+
" ヘッダ行は ``':'`` を挟んでこのようにヘッダ名と値に分割されます:"
13591363

13601364
#: ../../howto/regex.rst:799
13611365
msgid ""
@@ -1389,6 +1393,11 @@ msgid ""
13891393
"default argument. Later we'll see how to express groups that don't capture "
13901394
"the span of text that they match. ::"
13911395
msgstr ""
1396+
"``'('``, ``')'`` で指示されたグループは、マッチしたテキスト開始と終了位置もキャプチャします; "
1397+
":meth:`~re.Match.group`, :meth:`~re.Match.start`, :meth:`~re.Match.end`, "
1398+
":meth:`~re.Match.span` に引数を与えて取り出せます。グループはゼロ始まりの数値です。グループ 0 は常に使えます; それは RE "
1399+
"でマッチした全体で、 :ref:`Match オブジェクト <match-objects>` メソッドの全てはグループ 0 "
1400+
"をデフォルト引数にしています。マッチするテキストの範囲をキャプチャしないグループの書き方はのちほど見ることにします。 ::"
13921401

13931402
#: ../../howto/regex.rst:830
13941403
msgid ""
@@ -1404,12 +1413,14 @@ msgid ""
14041413
"which case it will return a tuple containing the corresponding values for "
14051414
"those groups. ::"
14061415
msgstr ""
1416+
":meth:`~re.Match.group` "
1417+
"には一回に複数の引数を渡してもかまいません、その場合にはそれらのグループに対応する値を含むタプルを返します。 ::"
14071418

14081419
#: ../../howto/regex.rst:849
14091420
msgid ""
14101421
"The :meth:`~re.Match.groups` method returns a tuple containing the strings "
14111422
"for all the subgroups, from 1 up to however many there are. ::"
1412-
msgstr ""
1423+
msgstr ":meth:`~re.Match.groups` メソッドは 1 から全てのサブグループの文字列を含むタプルを返します。::"
14131424

14141425
#: ../../howto/regex.rst:855
14151426
msgid ""
@@ -1574,6 +1585,10 @@ msgid ""
15741585
"words, ``\\b(\\w+)\\s+\\1\\b`` can also be written as "
15751586
"``\\b(?P<word>\\w+)\\s+(?P=word)\\b``::"
15761587
msgstr ""
1588+
"後方参照のための構文 ``(...)\\1`` はグループ番号への参照となっています。\n"
1589+
"グループ番号の代わりに、グループ名を利用する変種があるのは当然でしょう。\n"
1590+
"これはもう一つの Python 拡張です: ``(?P=name)`` は、 *name* という名前のグループの内容が、現在の位置で再びマッチすることを示しています。\n"
1591+
"同じ単語が2つ連なっているのを見つける正規表現 ``\\b(\\w+)\\s+\\1\\b`` は ``\\b(?P<word>\\w+)\\s+(?P=word)\\b`` のように書けます::"
15771592

15781593
#: ../../howto/regex.rst:972
15791594
msgid "Lookahead Assertions"
@@ -1768,7 +1783,7 @@ msgstr "``subn()``"
17681783
msgid ""
17691784
"Does the same thing as :meth:`!sub`, but returns the new string and the "
17701785
"number of replacements"
1771-
msgstr ""
1786+
msgstr ":meth:`!sub` と同じことをしますが、新しい文字列と置き換えの回数を返します"
17721787

17731788
#: ../../howto/regex.rst:1072
17741789
msgid "Splitting Strings"
@@ -1783,6 +1798,9 @@ msgid ""
17831798
"splitting by whitespace or by a fixed string. As you'd expect, there's a "
17841799
"module-level :func:`re.split` function, too."
17851800
msgstr ""
1801+
":meth:`~re.Match.split` メソッドは文字列を正規表現にマッチした場所で分割し、リストで返却します。文字列の "
1802+
":meth:`~str.split` メソッドに似てはいますが、もっとずっと一般化したデリミタで分割出来ます; 文字列の :meth:`!split` "
1803+
"メソッドは単に空白文字か固定文字列で分割出来るだけです。ご想像通り、モジュールレベルの :func:`re.split` 関数もあります。"
17861804

17871805
#: ../../howto/regex.rst:1085
17881806
msgid ""

0 commit comments

Comments
 (0)