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

Skip to content

Commit 5a7a41d

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent 4827f6e commit 5a7a41d

File tree

2 files changed

+62
-3
lines changed

2 files changed

+62
-3
lines changed

c-api/arg.po

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Osamu NAKAMURA, 2018
1313
# 永田 大和 <[email protected]>, 2019
1414
# tomo, 2020
15+
# Mikami Akiko, 2021
1516
#
1617
#, fuzzy
1718
msgid ""
@@ -20,7 +21,7 @@ msgstr ""
2021
"Report-Msgid-Bugs-To: \n"
2122
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
2223
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
23-
"Last-Translator: tomo, 2020\n"
24+
"Last-Translator: Mikami Akiko, 2021\n"
2425
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
2526
"MIME-Version: 1.0\n"
2627
"Content-Type: text/plain; charset=UTF-8\n"
@@ -313,6 +314,8 @@ msgid ""
313314
"attempting any conversion. Raises :exc:`TypeError` if the object is not a "
314315
"bytes object. The C variable may also be declared as :c:type:`PyObject*`."
315316
msgstr ""
317+
"Pythonオブジェクトとして、 :class:`bytes` オブジェクトを要求し、いかなる変換も行いません。オブジェクトが bytes "
318+
"オブジェクトでなければ、 :exc:`TypeError` を送出します。C 変数は :c:type:`PyObject*` と宣言しても構いません。"
316319

317320
#: ../../c-api/arg.rst:139
318321
msgid "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]"
@@ -325,6 +328,9 @@ msgid ""
325328
":class:`bytearray` object. The C variable may also be declared as "
326329
":c:type:`PyObject*`."
327330
msgstr ""
331+
"Python オブジェクトとして :class:`bytearray` オブジェクトを要求し、いかなる変換もおこないません。 もしオブジェクトが "
332+
":class:`bytearray` でなければ、 :exc:`TypeError` を送出します。C 変数は :c:type:`PyObject*` "
333+
"として宣言しても構いません。"
328334

329335
#: ../../c-api/arg.rst:156
330336
msgid "``u`` (:class:`str`) [const Py_UNICODE \\*]"
@@ -408,6 +414,9 @@ msgid ""
408414
"conversion. Raises :exc:`TypeError` if the object is not a Unicode object."
409415
" The C variable may also be declared as :c:type:`PyObject*`."
410416
msgstr ""
417+
"Python オブジェクトとして Unicode オブジェクトを要求し、いかなる変換も行いません。オブジェクトが Unicode "
418+
"オブジェクトではない場合、 :exc:`TypeError` が送出されます。C変数は :c:type:`PyObject*` "
419+
"として宣言しても構いません。"
411420

412421
#: ../../c-api/arg.rst:192
413422
msgid "``w*`` (read-write :term:`bytes-like object`) [Py_buffer]"
@@ -446,6 +455,10 @@ msgid ""
446455
"references will be set to a buffer with the contents of the argument text. "
447456
"The text will be encoded in the encoding specified by the first argument."
448457
msgstr ""
458+
"この書式には二つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const char*`"
459+
" 型または、 ``'utf-8'`` が使われることを表す ``NULL`` でなければなりません。指定したエンコード名を Python "
460+
"が理解できない場合には例外を送出します。第二の引数は :c:type:`char**` でなければなりません; "
461+
"この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。"
449462

450463
#: ../../c-api/arg.rst:206
451464
msgid ""
@@ -504,6 +517,12 @@ msgid ""
504517
"The third argument must be a pointer to an integer; the referenced integer "
505518
"will be set to the number of bytes in the output buffer."
506519
msgstr ""
520+
"この書式には三つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const "
521+
"char\\*` 型か ``NULL`` でなければなりません。 ``NULL`` の場合には ``'utf-8'`` "
522+
"を使います。指定したエンコード名を Python が理解できない場合には例外を送出します。第二の引数は :c:type:`char**` "
523+
"でなければなりません; "
524+
"この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。第三の引数は整数へのポインタでなければなりません;"
525+
" ポインタが参照している整数の値は出力バッファ内のバイト数にセットされます。"
507526

508527
#: ../../c-api/arg.rst:231
509528
msgid "There are two modes of operation:"
@@ -748,6 +767,10 @@ msgid ""
748767
"which the object pointer is stored. If the Python object does not have the "
749768
"required type, :exc:`TypeError` is raised."
750769
msgstr ""
770+
"Python オブジェクトを C の Python オブジェクト型ポインタに保存します。 ``O`` に似ていますが、二つの C の引数をとります: "
771+
"一つ目の引数は Python の型オブジェクトへのアドレスで、二つ目の引数はオブジェクトへのポインタが保存されている "
772+
"(:c:type:`PyObject*` の) C の変数へのアドレスです。Python オブジェクトが指定した型ではない場合、 "
773+
":exc:`TypeError` を送出します。"
751774

752775
#: ../../c-api/arg.rst:352 ../../c-api/arg.rst:657
753776
msgid "``O&`` (object) [*converter*, *anything*]"
@@ -760,6 +783,9 @@ msgid ""
760783
" of a C variable (of arbitrary type), converted to :c:type:`void *`. The "
761784
"*converter* function in turn is called as follows::"
762785
msgstr ""
786+
"Python オブジェクトを *converter* 関数を介して C の変数に変換します。二つの引数をとります: 一つ目は関数で、二つ目は "
787+
"(任意の型の) C 変数へのアドレスを :c:type:`void *` 型に変換したものです。 *converter* "
788+
"は以下のようにして呼び出されます::"
763789

764790
#: ../../c-api/arg.rst:339
765791
msgid ""
@@ -770,6 +796,9 @@ msgid ""
770796
"*converter* function should raise an exception and leave the content of "
771797
"*address* unmodified."
772798
msgstr ""
799+
"ここで *object* は変換対象の Python オブジェクトで、 *address* は :c:func:`PyArg_Parse\\*` "
800+
"に渡した :c:type:`void*` 型の引数です。戻り値 *status* は変換に成功した際に ``1``,失敗した場合には ``0`` "
801+
"になります。変換に失敗した場合、 *converter* 関数は *address* の内容を変更せずに例外を送出しなくてはなりません。"
773802

774803
#: ../../c-api/arg.rst:345
775804
msgid ""
@@ -1012,6 +1041,14 @@ msgid ""
10121041
"returns true on success and false if *args* is not a tuple or contains the "
10131042
"wrong number of elements; an exception will be set if there was a failure."
10141043
msgstr ""
1044+
"パラメータ取得を簡単にした形式で、引数の型を指定する書式文字列を使いません。パラメタの取得にこの手法を使う関数は、関数宣言テーブル、またはメソッド宣言テーブル内で"
1045+
" :const:`METH_VARARGS` として宣言しなければなりません。実引数の入ったタプルは *args* に渡します; "
1046+
"このタプルは本当のタプルでなければなりません。タプルの長さは少なくとも *min* で、 *max* を超えてはなりません; *min* と *max*"
1047+
" が等しくてもかまいません。補助引数を関数に渡さなければならず、各補助引数は :c:type:`PyObject*` "
1048+
"変数へのポインタでなければなりません; これらの補助引数には、 *args* の値が入ります; "
1049+
"値の参照は借用参照です。オプションのパラメタに対応する変数のうち、 *args* に指定していないものには値が入りません; "
1050+
"呼び出し側はそれらの値を初期化しておかなければなりません。この関数は成功すると真を返し、 *args* "
1051+
"がタプルでない場合や間違った数の要素が入っている場合に偽を返します; 何らかの失敗が起きた場合には例外をセットします。"
10151052

10161053
#: ../../c-api/arg.rst:493
10171054
msgid ""
@@ -1322,6 +1359,9 @@ msgid ""
13221359
":c:type:`void*`) as its argument and should return a \"new\" Python object, "
13231360
"or ``NULL`` if an error occurred."
13241361
msgstr ""
1362+
"*anything* を *converter* 関数を介して Python オブジェクトに変換します。この関数は *anything* "
1363+
"(:c:type:`void*` と互換の型でなければなりません) を引数にして呼び出され、\"新たな\" オブジェクトを返すか、失敗した場合には "
1364+
"``NULL`` を返すようにしなければなりません。"
13251365

13261366
#: ../../c-api/arg.rst:660
13271367
msgid ""

whatsnew/2.0.po

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# Yusuke Miyazaki <[email protected]>, 2017
1010
# 秘湯 <[email protected]>, 2017
1111
# tomo, 2017
12+
# Mikami Akiko, 2021
1213
#
1314
#, fuzzy
1415
msgid ""
@@ -17,7 +18,7 @@ msgstr ""
1718
"Report-Msgid-Bugs-To: \n"
1819
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
1920
"PO-Revision-Date: 2017-02-16 23:42+0000\n"
20-
"Last-Translator: tomo, 2017\n"
21+
"Last-Translator: Mikami Akiko, 2021\n"
2122
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
2223
"MIME-Version: 1.0\n"
2324
"Content-Type: text/plain; charset=UTF-8\n"
@@ -71,7 +72,7 @@ msgstr ""
7172

7273
#: ../../whatsnew/2.0.rst:33
7374
msgid "What About Python 1.6?"
74-
msgstr "Python 1.6 はいかがっすか?"
75+
msgstr "Python 1.6 はいかがですか?"
7576

7677
#: ../../whatsnew/2.0.rst:35
7778
msgid ""
@@ -214,6 +215,11 @@ msgid ""
214215
" accepting or rejecting the proposal. Quoting from the introduction to "
215216
":pep:`1`, \"PEP Purpose and Guidelines\":"
216217
msgstr ""
218+
"実際のパッチの作成は新機能の追加での最後のステップであり、通常、良いデザインを工面する前のタスクと容易に比較出来ます。一方で新機能についての議論はしばしばメーリングリストでの長大なスレッドを巻き起こし、議論に追いつくのが大変になり、そして誰も"
219+
" python-dev の投稿全てを読めません。それゆえに、Python 拡張提案 (Python Enhancement Proposals: "
220+
"PEPs)を書く、相対的に形式ばったプロセスが、始動しました。インターネットの RFC をモデルにしたものです。PEPs "
221+
"は新機能提案を記述した草案文書であり、コミュニティの合意として提案が承認されるか却下されるまで継続的に改定されます。 :pep:`1` "
222+
"の導入部、\"PEP の目的とガイドライン\" から引用します:"
217223

218224
#: ../../whatsnew/2.0.rst:120
219225
msgid ""
@@ -245,6 +251,11 @@ msgid ""
245251
"September 2000, there are 25 PEPS, ranging from :pep:`201`, \"Lockstep "
246252
"Iteration\", to PEP 225, \"Elementwise/Objectwise Operators\"."
247253
msgstr ""
254+
"PEP の編集に関するプロセス、様式、体裁についての詳細が :pep:`1` の残りの部分に書かれています。PEPs は SourceForge 上の"
255+
" Python CVS ツリーで営まれますが Python 2.0 配布物の一部ではなく、 "
256+
"https://www.python.org/dev/peps/ で HTML 形式で利用可能です。2000 年 9 月時点で :pep:`201` "
257+
"の \"Lockstep Iteration\" から PEP 225 の \"Elementwise/Objectwise Operators\" "
258+
"までの 25 の PEP があります。"
248259

249260
#: ../../whatsnew/2.0.rst:141
250261
msgid "Unicode"
@@ -305,6 +316,14 @@ msgid ""
305316
"installation by calling the ``sys.setdefaultencoding(encoding)`` function in"
306317
" a customized version of :file:`site.py`."
307318
msgstr ""
319+
"Unicode 文字列は普通の文字列と全く似ていて、 :term:`immutable` "
320+
"なシーケンス型です。添え字でアクセス出来、スライス出来ますが、インプレイスに変更することは出来ません。Unicode 文字列は ``encode( "
321+
"[encoding] )`` メソッドを持っていて、これは望みのエンコーディングでエンコードした 8 "
322+
"ビット文字列を返します。エンコーディングは文字列で名前付けられていて、例えば ``'ascii'``, ``'utf-8'``, "
323+
"``'iso-8859-1'`` のようなものです。コーデック API は、新しいエンコーディングを実装し、Python "
324+
"プログラム全体を通して利用可能となるよう登録するために定義されています。エンコーディングが指定されない場合はデフォルトのエンコーディングは普通 7 "
325+
"ビット ASCII ですが、Python インストレーションにおいて、 :file:`site.py` のカスタマイズ版内で "
326+
"``sys.setdefaultencoding(encoding)`` を呼び出すことで変更出来ます。"
308327

309328
#: ../../whatsnew/2.0.rst:172
310329
msgid ""

0 commit comments

Comments
 (0)