pytho****@googl*****
pytho****@googl*****
2012年 10月 26日 (金) 02:45:55 JST
Revision: 0d7972d03106 Branch: default Author: Arihiro TAKASE <hinac****@gmail*****> Date: Thu Oct 25 10:03:54 2012 Log: tools/i18nutil を改良 http://code.google.com/p/python-doc-ja/source/detail?r=0d7972d03106&repo=py33 Modified: /locale/ja/LC_MESSAGES/glossary.mo /locale/ja/LC_MESSAGES/glossary.po /locale/ja/LC_MESSAGES/howto/pyporting.po /locale/ja/LC_MESSAGES/library.mo /locale/ja/LC_MESSAGES/library.po /locale/ja/LC_MESSAGES/library/codecs.po /locale/ja/LC_MESSAGES/library/email.generator.po /locale/ja/LC_MESSAGES/library/functions.po /locale/ja/LC_MESSAGES/library/multiprocessing.po /locale/ja/LC_MESSAGES/library/pickle.po /locale/ja/LC_MESSAGES/library/re.po /locale/ja/LC_MESSAGES/library/stdtypes.po /locale/ja/LC_MESSAGES/library/struct.po /locale/ja/LC_MESSAGES/library/timeit.po /locale/ja/LC_MESSAGES/library/venv-create.inc.po /locale/ja/LC_MESSAGES/library/venv.po /locale/ja/LC_MESSAGES/reference/lexical_analysis.po /locale/ja/LC_MESSAGES/tutorial/introduction.po /tools/i18nutil.py ======================================= --- /locale/ja/LC_MESSAGES/glossary.mo Tue Oct 16 01:53:55 2012 +++ /locale/ja/LC_MESSAGES/glossary.mo Thu Oct 25 10:03:54 2012 Binary file, no diff available. ======================================= --- /locale/ja/LC_MESSAGES/glossary.po Tue Oct 16 01:53:55 2012 +++ /locale/ja/LC_MESSAGES/glossary.po Thu Oct 25 10:03:54 2012 @@ -8,7 +8,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-10-12 14:12+0000\n" +"PO-Revision-Date: 2012-10-16 08:44+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" ======================================= --- /locale/ja/LC_MESSAGES/howto/pyporting.po Tue Oct 16 01:53:55 2012 +++ /locale/ja/LC_MESSAGES/howto/pyporting.po Thu Oct 25 10:03:54 2012 @@ -6,8 +6,8 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-07-29 07:49+0000\n" -"Last-Translator: ryosuke.mondo <ryosu****@gmail*****>\n" +"PO-Revision-Date: 2012-10-16 08:45+0000\n" +"Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" ======================================= --- /locale/ja/LC_MESSAGES/library.mo Thu Oct 18 22:00:55 2012 +++ /locale/ja/LC_MESSAGES/library.mo Thu Oct 25 10:03:54 2012 File is too large to display a diff. ======================================= --- /locale/ja/LC_MESSAGES/library.po Thu Oct 18 22:00:55 2012 +++ /locale/ja/LC_MESSAGES/library.po Thu Oct 25 10:03:54 2012 File is too large to display a diff. ======================================= --- /locale/ja/LC_MESSAGES/library/codecs.po Mon Oct 15 23:19:12 2012 +++ /locale/ja/LC_MESSAGES/library/codecs.po Thu Oct 25 10:03:54 2012 @@ -5,8 +5,8 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-07-02 14:13+0000\n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2012-10-16 00:47+0000\n" +"Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" ======================================= --- /locale/ja/LC_MESSAGES/library/email.generator.po Tue Oct 16 01:53:55 2012 +++ /locale/ja/LC_MESSAGES/library/email.generator.po Thu Oct 25 10:03:54 2012 @@ -5,7 +5,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-07-15 15:08+0000\n" +"PO-Revision-Date: 2012-10-16 08:47+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" ======================================= --- /locale/ja/LC_MESSAGES/library/functions.po Tue Oct 16 01:53:55 2012 +++ /locale/ja/LC_MESSAGES/library/functions.po Thu Oct 25 10:03:54 2012 @@ -5,7 +5,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-10-12 14:25+0000\n" +"PO-Revision-Date: 2012-10-16 08:46+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" ======================================= --- /locale/ja/LC_MESSAGES/library/multiprocessing.po Mon Oct 15 23:19:12 2012 +++ /locale/ja/LC_MESSAGES/library/multiprocessing.po Thu Oct 25 10:03:54 2012 @@ -5,7 +5,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-10-12 14:28+0000\n" +"PO-Revision-Date: 2012-10-16 05:58+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" ======================================= --- /locale/ja/LC_MESSAGES/library/pickle.po Mon Oct 15 23:19:12 2012 +++ /locale/ja/LC_MESSAGES/library/pickle.po Thu Oct 25 10:03:54 2012 @@ -5,8 +5,8 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-07-02 14:31+0000\n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2012-10-16 00:57+0000\n" +"Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" ======================================= --- /locale/ja/LC_MESSAGES/library/re.po Fri Oct 12 19:45:31 2012 +++ /locale/ja/LC_MESSAGES/library/re.po Thu Oct 25 10:03:54 2012 @@ -1,11 +1,12 @@ # # Translators: +# Masato HASHIMOTO <cabez****@gmail*****>, 2012. msgid "" msgstr "" "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-09-21 10:53+0000\n" +"PO-Revision-Date: 2012-10-14 06:34+0000\n" "Last-Translator: Masato HASHIMOTO <cabez****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" @@ -274,7 +275,7 @@ "``00`` to ``59``, and ``[0-9A-Fa-f]`` will match any hexadecimal digit. If " "``-`` is escaped (e.g. ``[a\\-z]``) or if it's placed as the first or last " "character (e.g. ``[a-]``), it will match a literal ``'-'``." -msgstr "連続した文字の範囲を、先頭と最後の2文字とその間に ``'-'`` を挟んだ 形で指定できます。``[a-z]`` はすべての小文字の ASCII 文字とマッチします。 ``[0-5][0-9]`` は ``00`` から ``59`` までの、すべての 2 桁の数字とマッチしま す。``[0-9A-Fa-f]`` はすべての 16 進数とマッチします。``-`` が、エスケープさ れた場合 (例: ``[a\\-z]``)、あるいはは先頭か末尾に置かれた場合 (例: ``[a-]``)、リテラル ``'-'`` とマッチします。" +msgstr "連続した文字の範囲を、先頭と最後の2文字とその間に ``'-'`` を挟んだ 形で指定できます。``[a-z]`` はすべての小文字の ASCII 文字とマッチします。 ``[0-5][0-9]`` は ``00`` から ``59`` までの、すべての 2 桁の数字とマッチしま す。``[0-9A-Fa-f]`` はすべての 16 進数とマッチします。``-`` が、エスケープさ れた場合 (例: ``[a\\-z]``)、あるいは先頭か末尾に置かれた場合 (例: ``[a-]``)、リテラル ``'-'`` とマッチします。" # ba2494ad3cde4cdcbff1677db8d77c27 #: ../../library/re.rst:176 ======================================= --- /locale/ja/LC_MESSAGES/library/stdtypes.po Mon Oct 15 23:19:12 2012 +++ /locale/ja/LC_MESSAGES/library/stdtypes.po Thu Oct 25 10:03:54 2012 @@ -5,7 +5,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-10-12 14:47+0000\n" +"PO-Revision-Date: 2012-10-25 11:06+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" @@ -17,21 +17,21 @@ # 3ac793ca9dcc4be4a1752b233a732dfd #: ../../library/stdtypes.rst:8 msgid "Built-in Types" -msgstr "" +msgstr "組み込み型" # 8cc24c0233cc48adbeb9d9303c476303 #: ../../library/stdtypes.rst:10 msgid "" "The following sections describe the standard types that are built into the " "interpreter." -msgstr "以下のセクションでは、インタプリタに組み込まれている標準の型につい て記述します。" +msgstr "以下のセクションでは、インタプリタに組み込まれている標準型について 記述します。" # 297c7f13acfc44d8874ffa623b511e5f #: ../../library/stdtypes.rst:15 msgid "" "The principal built-in types are numerics, sequences, mappings, classes, " "instances and exceptions." -msgstr "主要な組み込み型は数値型、シーケンス型、マッピング型、クラス、 イン スタンス型、および例外です。" +msgstr "主要な組み込み型は、数値、シーケンス、マッピング、クラス、インスタ ンス、および例外です。" # 068f8da591d84bdab0b77d4248da21e7 #: ../../library/stdtypes.rst:18 @@ -39,7 +39,7 @@ "Some collection classes are mutable. The methods that add, subtract, or " "rearrange their members in place, and don't return a specific item, never " "return the collection instance itself but ``None``." -msgstr "" +msgstr "コレクションクラスには、ミュータブルなものがあります。コレクション のメンバをインプレースに足し、引き、または並べ替えて、特定の要素を返さないメ ソッドは、コレクション自身ではなく ``None`` を返します。" # 02c303eb794043fe973d19aaa6bb679e #: ../../library/stdtypes.rst:22 @@ -49,12 +49,12 @@ "converted to a string (with the :func:`repr` function or the slightly " "different :func:`str` function). The latter function is implicitly used " "when an object is written by the :func:`print` function." -msgstr "演算によっては、複数の型でサポートされているものがあります; 特に、 ほぼ 全てのオブジェクトについて、比較、真理値テスト、 (:func:`repr` 関数 や、 わずかに異なる :func:`str` 関数による) 文字列への変換を行うことができ ます。オブジェクトが :func:`print` 関数によって書かれていると、後の方の 文字 列への変換が暗黙に行われます。" +msgstr "演算には、複数の型でサポートされているものがあります; 特に、ほぼ全 てのオブジェクトは、比較でき、真理値を判定でき、 (:func:`repr` 関数や、わず かに異なる :func:`str` 関数によって) 文字列に変換できます。オブジェクト が :func:`print` 関数で印字されるとき、文字列に変換する関数が暗黙に使われま す。" # 7e3f528078eb45f9afb7986d7477cff6 #: ../../library/stdtypes.rst:32 msgid "Truth Value Testing" -msgstr "真理値テスト" +msgstr "真理値判定" # 51f82d5ae8294384ac80f2d4c5c85457 #: ../../library/stdtypes.rst:41 @@ -62,7 +62,7 @@ "Any object can be tested for truth value, for use in an :keyword:`if` or " ":keyword:`while` condition or as operand of the Boolean operations below. " "The following values are considered false:" -msgstr "どのオブジェクトも :keyword:`if` または :keyword:`while` 条件文の中 や、 以下のブール演算における被演算子として真理値テストを行うことができま す。 以下の値は偽であると見なされます:" +msgstr "どのオブジェクトも真理値を判定でき、 :keyword:`if` や :keyword:`while` 条件に、または以下のブール演算の被演算子に使えます。 以 下の値は偽と見なされます:" # 273276389a374dc99952c74a1bb5b7aa #: ../../library/stdtypes.rst:51 @@ -77,12 +77,12 @@ # cbb4a9fd43fe4103ad49f8a9d9aafaec #: ../../library/stdtypes.rst:55 msgid "any empty sequence, for example, ``''``, ``()``, ``[]``." -msgstr "空のシーケンス型。例えば ``''``, ``()``, ``[]`` 。" +msgstr "空のシーケンス。例えば ``''``, ``()``, ``[]`` 。" # db9e7acb8bf64efe9c7d4bf817f88380 #: ../../library/stdtypes.rst:57 msgid "any empty mapping, for example, ``{}``." -msgstr "空のマッピング型。例えば ``{}`` 。" +msgstr "空のマッピング。例えば ``{}`` 。" # 092c5c6393c74cbfac6aa18636822be2 #: ../../library/stdtypes.rst:59 @@ -90,14 +90,14 @@ "instances of user-defined classes, if the class defines a :meth:`__bool__` " "or :meth:`__len__` method, when that method returns the integer zero or " ":class:`bool` value ``False``. [1]_" -msgstr ":meth:`__bool__` または :meth:`__len__` メソッドが定義されている よ うなユーザ定義クラスのインスタンスで、それらのメソッドが整数値ゼ ロまた は :class:`bool` 値の ``False`` を返すとき。 [1]_" +msgstr "ユーザ定義クラスのインスタンスで、そのクラスが :meth:`__bool__` ま たは :meth:`__len__` メソッドを定義していれば、それらのメソッドが整数 0 また は :class:`bool` 値 ``False`` を返すとき。 [1]_" # 9ce7287476a0418c9237145503372e6d #: ../../library/stdtypes.rst:65 msgid "" "All other values are considered true --- so objects of many types are always" " true." -msgstr "それ以外の値は全て真であると見なされます --- 従って、ほとんどの型の オ ブジェクトは常に真です。" +msgstr "それ以外の全ての値は真と見なされます --- 従って、多くの型のオブジェ クトは常に真です。" # 4834bb1743dd49e1b0c07906208da70d #: ../../library/stdtypes.rst:74 @@ -106,7 +106,7 @@ "``0`` or ``False`` for false and ``1`` or ``True`` for true, unless " "otherwise stated. (Important exception: the Boolean operations ``or`` and " "``and`` always return one of their operands.)" -msgstr "ブール値の結果を返す演算および組み込み関数は、特に注釈のない限り常 に 偽値として ``0`` または ``False`` を返し、真値として ``1`` または ``True`` を返します (重要な例外: ブール演算 ``or`` および ``and`` は常 に被 演算子の中の一つを返します)。" +msgstr "ブール値の結果を返す演算および組み込み関数は、特に注釈のない限り常 に偽値として ``0`` または ``False`` を返し、真値として ``1`` または ``True`` を返します (重要な例外: ブール演算 ``or`` および ``and`` は常に被演 算子のうちの一つを返します)。" # cdd8f57bb6414c47af73e47d32f436b1 #: ../../library/stdtypes.rst:83 @@ -116,12 +116,12 @@ # c8dd4ff297e04d81b362ebf1b4acf4b8 #: ../../library/stdtypes.rst:87 msgid "These are the Boolean operations, ordered by ascending priority:" -msgstr "以下にブール演算子を示します。優先度の低いものから順に並んでいま す。 :" +msgstr "以下にブール演算を、優先度が低い順に示します:" # db4aa8c4f46444209254b7c546eb366f #: ../../library/stdtypes.rst:92 msgid "``x or y``" -msgstr "" +msgstr "``x or y``" # 77d3156c16b346888d5bf526b680138b #: ../../library/stdtypes.rst:92 @@ -153,21 +153,21 @@ msgid "" "This is a short-circuit operator, so it only evaluates the second argument " "if the first one is :const:`False`." -msgstr "これは、短絡的な演算子であり、一つめの引数が :const:`False` のとき にのみ、二つめの引数を評価します。" +msgstr "これは、短絡的な演算子であり、第一引数が :const:`False` のときにの み、第二引数を評価します。" # 15a0973da0ec4c738f093ec377afa7ad #: ../../library/stdtypes.rst:114 msgid "" "This is a short-circuit operator, so it only evaluates the second argument " "if the first one is :const:`True`." -msgstr "これは、短絡的な演算子であり、一つめの引数が :const:`True` のとき にのみ、二つめの引数を評価します。" +msgstr "これは、短絡的な演算子であり、第一引数が :const:`True` のときにの み、第二引数を評価します。" # 7c0d90cbd85c4e9d8ba8d3d847e9e5f8 #: ../../library/stdtypes.rst:118 msgid "" "``not`` has a lower priority than non-Boolean operators, so ``not a == b`` " "is interpreted as ``not (a == b)``, and ``a == not b`` is a syntax error." -msgstr "``not`` は非ブール演算子よりも低い演算優先度なので、 ``not a == b`` は ``not (a == b)`` と評価され、 ``a == not b`` は構文エラーとなり ま す。" +msgstr "``not`` は非ブール演算子よりも優先度が低いので、 ``not a == b`` は ``not (a == b)`` と解釈され、 ``a == not b`` は構文エラーです。" # c83b0e46b8d8461dbdacc164a5f69afd #: ../../library/stdtypes.rst:125 @@ -182,7 +182,7 @@ " can be chained arbitrarily; for example, ``x < y <= z`` is equivalent to " "``x < y and y <= z``, except that *y* is evaluated only once (but in both " "cases *z* is not evaluated at all when ``x < y`` is found to be false)." -msgstr "Python には 8 種の比較演算があります。比較演算子は全て 同じ演算優先 度を持っています (ブール演算より高い演算優先度です)。 比較は任意の形で連鎖さ せることができます; 例えば、 ``x < y <= z`` は ``x < y and y <= z`` と等価 で、違うのは *y* が一度だけしか評価され ないということです (どちらの場合で も、 ``x < y`` が偽となった場合には *z* は評価されません)。" +msgstr "Python には 8 種の比較演算があります。比較演算の優先度は全て同じで す (ブール演算より高い優先度です)。 比較は任意に連鎖できます; 例えば、 ``x < y <= z`` は ``x < y and y <= z`` とはぼ等価ですが、この *y* は一度だけしか 評価されません (どちらにしても、 ``x < y`` が偽となれば *z* は評価されません )。" # c871bc20c25341a09afc1d97230dcd25 #: ../../library/stdtypes.rst:145 @@ -193,7 +193,7 @@ # 027df8dd75f64e83b4c456b37ef94312 #: ../../library/stdtypes.rst:150 ../../library/struct.rst:105 msgid "``<``" -msgstr "" +msgstr "``<``" # 899c7eed07d947fdaad11194471e96ef #: ../../library/stdtypes.rst:150 @@ -203,7 +203,7 @@ # 922d6088820c42038a8bec8c4747c42d #: ../../library/stdtypes.rst:152 msgid "``<=``" -msgstr "" +msgstr "``<=``" # cf209fccba32487c8b1ff44cb66dab76 #: ../../library/stdtypes.rst:152 @@ -214,7 +214,7 @@ # cec017f0d04b4f94993da30b8316fa39 #: ../../library/stdtypes.rst:154 ../../library/struct.rst:107 msgid "``>``" -msgstr "" +msgstr "``>``" # 15258ab674984c0ead5da918e13be3d4 #: ../../library/stdtypes.rst:154 @@ -224,7 +224,7 @@ # 825211b8ac26485683dd32a65167b80f #: ../../library/stdtypes.rst:156 msgid "``>=``" -msgstr "" +msgstr "``>=``" # b9ddc464196148dab347f76a0dcd0f71 #: ../../library/stdtypes.rst:156 @@ -234,7 +234,7 @@ # 32e570f30215439a842a143a536e6ce3 #: ../../library/stdtypes.rst:158 msgid "``==``" -msgstr "" +msgstr "``==``" # 2e15ab8363ff4f4ca0b44c686b8604ca #: ../../library/stdtypes.rst:158 @@ -244,7 +244,7 @@ # 634d24c45d654dfa9ee921fe84c670bc #: ../../library/stdtypes.rst:160 msgid "``!=``" -msgstr "" +msgstr "``!=``" # f9763e7e257a4fd8b3a98ecc702f5a5a #: ../../library/stdtypes.rst:160 @@ -254,7 +254,7 @@ # f5c2865fa462483fb74365cd276255e9 #: ../../library/stdtypes.rst:162 msgid "``is``" -msgstr "" +msgstr "``is``" # 10fa12dcf0304881bc3aed05f789eaa7 #: ../../library/stdtypes.rst:162 @@ -264,7 +264,7 @@ # 88cf72ed09ef4c2091c0d6faa781ea76 #: ../../library/stdtypes.rst:164 msgid "``is not``" -msgstr "" +msgstr "``is not``" # 1103da7a14f24e6b96be7fb2cd0734c0 #: ../../library/stdtypes.rst:164 @@ -281,14 +281,14 @@ ":exc:`TypeError` exception when comparing a complex number with another " "built-in numeric type, when the objects are of different types that cannot " "be compared, or in other cases where there is no defined ordering." -msgstr "異なる数値型間の比較を除き、異なる型のオブジェクトは等しくなりえま せん。 さらに、型には、 (例えば関数オブジェクトのように) その型のどの 2 つ の オブジェクトも等しくないという、縮退した比較の概念にしか対応していない も のもあります。複素数とその他の組み込み数値型を比較するときや、 比較できない 異なる型であるときや、その他順序づけが定義されていないとき、演算 子 ``<`` 、 ``<=`` 、 ``>`` 、 ``>=`` は :exc:`TypeError` 例外を送出します。" +msgstr "異なる型のオブジェクトは、異なる数値型を除き、等価とされえません。 さらに、型には、 (例えば関数オブジェクトのように) その型のどの 2 つの オブジ ェクトも等しくないという、縮退した比較の概念しかサポートしていないものもあり ます。複素数とその他の組み込み数値型を比較するときや、 オブジェクト同士が異 なる型で比較できないときや、その他順序づけが定義されていないとき、演算子 ``<`` 、 ``<=`` 、 ``>`` 、 ``>=`` は :exc:`TypeError` 例外を送出します。" # f6ebd413bac646bb87aa5a3961a45cb4 #: ../../library/stdtypes.rst:187 msgid "" "Non-identical instances of a class normally compare as non-equal unless the " "class defines the :meth:`__eq__` method." -msgstr "あるクラスの同一でないインスタンスは、そのクラスが :meth:`__eq__` メソッドを 定義していない限り、等しくないものとして比較されます。" +msgstr "あるクラスの同一でないインスタンスは、そのクラスが :meth:`__eq__` メソッドを定義していない限り、等価でないとされます。" # a7d8e3fa1e17443c80454a8296be37f6 #: ../../library/stdtypes.rst:190 @@ -299,7 +299,7 @@ ":meth:`__ge__` (in general, :meth:`__lt__` and :meth:`__eq__` are " "sufficient, if you want the conventional meanings of the comparison " "operators)." -msgstr "クラスのインスタンスは、同じクラスの別のインスタンスや、他のクラス の オブジェクトとは、そのクラスがメソッ ド :meth:`__lt__` 、 :meth:`__le__` 、 :meth:`__gt__` 、 :meth:`__ge__` のう ち十分なものを定義していない限り、 順序付けできません (一般に、比較演算子の 通常の意味を求めるなら、 :meth:`__lt__` と :meth:`__eq__` で十分です)。" +msgstr "クラスのインスタンスは、同じクラスの別のインスタンスや、他の型のオ ブジェクトとは、そのクラスがメソッ ド :meth:`__lt__` 、 :meth:`__le__` 、 :meth:`__gt__` 、 :meth:`__ge__` のう ち十分なものを定義していない限り、 順序付けできません (一般に、比較演算子の 通常の意味を求めるなら、 :meth:`__lt__` と :meth:`__eq__` で十分です)。" # 825825dda34744829498d9a5eda08f75 #: ../../library/stdtypes.rst:196 @@ -307,14 +307,14 @@ "The behavior of the :keyword:`is` and :keyword:`is not` operators cannot be " "customized; also they can be applied to any two objects and never raise an " "exception." -msgstr ":keyword:`is` と :keyword:`is not` の振る舞いはカスタマイズできませ ん。 そしてこれらはいかなる 2 つのオブジェクトにも適用でき、 決して例外を送 出しません。" +msgstr ":keyword:`is` および :keyword:`is not` 演算子の振る舞いはカスタマイ ズできません。 また、これらはいかなる 2 つのオブジェクトにも適用でき、 決し て例外を送出しません。" # 0f8e2f50e99d4e4e8a57d5ee452e419f #: ../../library/stdtypes.rst:204 msgid "" "Two more operations with the same syntactic priority, :keyword:`in` and " ":keyword:`not in`, are supported only by sequence types (below)." -msgstr "同じ優先度を持つ演算子としてさらに 2 つ、シーケンス型での み :keyword:`in` お よび :keyword:`not in` がサポートされています (以下を参 照)。" +msgstr "構文上で同じ優先度を持つ演算子としてさらに 2 つ、シーケンス型 (以下 を参照) でのみ :keyword:`in` お よび :keyword:`not in` がサポートされていま す。" # a00cb77dfed440d7823996d8679f45fe #: ../../library/stdtypes.rst:211 @@ -336,7 +336,7 @@ "includes additional numeric types, :mod:`fractions` that hold rationals, and" " :mod:`decimal` that hold floating-point numbers with user-definable " "precision.)" -msgstr "数値型には 3 種類あります: :dfn:`整数型` 、 :dfn:`浮動小数点型 ` 、 :dfn:`複素数型` です。さらに、ブール型は整数のサブタイプです。 整数型に は精度の制限がありません。 浮動小数点型はたいていは C の :c:type:`double` を 使って実装されています; あなたのプログラムが動作するマシンでの浮動小数点型の 精度と内部表現は、 :data:`sys.float_info` から利用できます。 複素数型は実部 と虚部を持ち、それぞれ浮動小数点数です。 複素数 *z* から実部および虚部を取り 出すには、 ``z.real`` および ``z.imag`` を使ってください。 (標準ライブラリに は、追加の数値型、分数を保持する :mod:`fractions` や、 ユーザ定義の精度の浮 動小数点数を保持する :mod:`decimal` があります。)" +msgstr "数値型には 3 種類あります: :dfn:`整数` 、 :dfn:`浮動小数点数 ` 、 :dfn:`複素数` です。さらに、ブール型は整数のサブタイプです。 整数には精 度の制限がありません。 浮動小数点型はたいていは C の :c:type:`double` を使っ て実装されています; あなたのプログラムが動作するマシンでの浮動小数点型の精度 と内部表現は、 :data:`sys.float_info` から利用できます。 複素数は実部と虚部 を持ち、それぞれ浮動小数点数です。 複素数 *z* から実部および虚部を取り出すに は、 ``z.real`` および ``z.imag`` を使ってください。 (標準ライブラリには、そ の他の数値型、分数を保持する :mod:`fractions` や、 ユーザ定義の精度の浮動小 数点数を保持する :mod:`decimal` があります。)" # 1d5fe3f202424d0aaa19193955856e75 #: ../../library/stdtypes.rst:243 @@ -348,7 +348,7 @@ "or ``'J'`` to a numeric literal yields an imaginary number (a complex number" " with a zero real part) which you can add to an integer or float to get a " "complex number with real and imaginary parts." -msgstr "数値は、数値リテラルによって、あるいは組み込み関数や演算子の戻り値 として 生成されます。 (十六進、八進、二進数を含む) 修飾のない整数リテラル は、整数を与えます。 小数点または指数表記を含む数値リテラルは浮動小数点数を 与えます。 数値リテラルに ``'j'`` または ``'J'`` をつけると虚数 (実部がゼロ の複素数) を与え、それに整数や浮動小数点数を加えて実部と虚部を持つ 複素数を 得られます。" +msgstr "数値は、数値リテラルによって、あるいは組み込み関数や演算子の戻り値 として生成されます。 (十六進、八進、二進数を含む) 修飾のない整数リテラルは、 整数を与えます。 小数点または指数表記を含む数値リテラルは浮動小数点数を与え ます。 数値リテラルに ``'j'`` または ``'J'`` をつけると虚数 (実部がゼロの複 素数) を与え、それに整数や浮動小数点数を加えて実部と虚部を持つ複素数を得られ ます。" # 3b461d30746343d38d5f28cd27bbf8e1 #: ../../library/stdtypes.rst:264 @@ -360,7 +360,7 @@ " of mixed type use the same rule. [2]_ The constructors :func:`int`, " ":func:`float`, and :func:`complex` can be used to produce numbers of a " "specific type." -msgstr "Python は混合算術に完全に対応しています: ある二項算術演算子の被演算 子の 数値型が互いに異なるとき、より \"制限された\" 型の被演算子は他方の 型に 合わせて広げられます。 ここで整数は浮動小数点数より制限されており、浮動小数 点は複素数より制限され ています。型混合の数値間での比較も同じ規則に従いま す。 [2]_ コンストラクタ :func:`int` 、 :func:`float` 、 :func:`complex` で、 特定の型の数を生成できます。" +msgstr "Python は混合算術に完全に対応しています: ある二項算術演算子の被演算 子の数値型が互いに異なるとき、より \"制限された\" 型の被演算子は他方の型に合 わせて広げられます。 ここで整数は浮動小数点数より制限されており、浮動小数点 は複素数より制限されています。型混合の数値間での比較も同じ規則に従います。 [2]_ コンストラクタ :func:`int` 、 :func:`float` 、 :func:`complex` で、 特 定の型の数を生成できます。" # b605bc8f82564e9f99e6bdb93443242e #: ../../library/stdtypes.rst:271 @@ -368,7 +368,7 @@ "All numeric types (except complex) support the following operations, sorted " "by ascending priority (operations in the same box have the same priority; " "all numeric operations have a higher priority than comparison operations):" -msgstr "全ての (複素数を除く) 組み込み数値型は以下の演算に対応しています。 これらは優先度の昇順で並べられています (同じボックスの演算は同じ優先度です; すべての数値演算の優先度は比較演算より高いです):" +msgstr "全ての (複素数を除く) 組み込み数値型は以下の演算に対応しています。 これらは優先度が低い順で並んでいます (同じボックスの演算は同じ優先度です; す べての数値演算の優先度は比較演算より高いです):" # e665ac1ccb224faa8b942072052142d8 #: ../../library/stdtypes.rst:276 @@ -453,12 +453,12 @@ # 04634c7d518943239f3e62465be95b4a #: ../../library/stdtypes.rst:293 msgid "*x* unchanged" -msgstr "*x* の符号不変" +msgstr "*x* そのまま" # 766501041d5244d5ae9d4e99dd8ec20e #: ../../library/stdtypes.rst:295 msgid "``abs(x)``" -msgstr "" +msgstr "``abs(x)``" # b338b99438144ee78a67cc3632ab59e5 #: ../../library/stdtypes.rst:295 @@ -468,7 +468,7 @@ # 2ee6c662efa845cea2cff11293235888 #: ../../library/stdtypes.rst:298 msgid "``int(x)``" -msgstr "" +msgstr "``int(x)``" # 748904386010487ca6b6c4d01bc1728c #: ../../library/stdtypes.rst:298 @@ -478,12 +478,12 @@ # 2af7be3c2f044b3e90206d70f5e457a5 #: ../../library/stdtypes.rst:298 msgid "\\(3)\\(6)" -msgstr "" +msgstr "\\(3)\\(6)" # c48a8a7e14b14bf4a55cea1bb4d10b65 #: ../../library/stdtypes.rst:300 msgid "``float(x)``" -msgstr "" +msgstr "``float(x)``" # bb19c84d2196437684515f0e6fc795d3 #: ../../library/stdtypes.rst:300 @@ -493,7 +493,7 @@ # daae5f48f1084b99b3294d3a175ec414 #: ../../library/stdtypes.rst:300 msgid "\\(4)\\(6)" -msgstr "" +msgstr "\\(4)\\(6)" # b2132e7c27b94d2b8310f0c5a82c185e #: ../../library/stdtypes.rst:302 @@ -505,7 +505,7 @@ msgid "" "a complex number with real part *re*, imaginary part *im*. *im* defaults to " "zero." -msgstr "実数部 *re*, 虚数部 *im* の複素数。 *im* のデフォルト値はゼロ。" +msgstr "実部 *re*, 虚部 *im* の複素数。 *im* のデフォルト値はゼロ。" # ce6384859e134970a8f5c620da3a15ec #: ../../library/stdtypes.rst:306 @@ -520,7 +520,7 @@ # b15c0714c314447db76706ce9c01b700 #: ../../library/stdtypes.rst:309 msgid "``divmod(x, y)``" -msgstr "" +msgstr "``divmod(x, y)``" # cf9b64c109ee434c846d23dc7a745620 #: ../../library/stdtypes.rst:309 @@ -530,18 +530,18 @@ # 6a378baf3d7a4e9097eea571284a4298 #: ../../library/stdtypes.rst:311 msgid "``pow(x, y)``" -msgstr "" +msgstr "``pow(x, y)``" # e22c7bd5c06341cb86221747bb80f335 # 2074d8c1e4624c968904ff64a1b7da2e #: ../../library/stdtypes.rst:311 ../../library/stdtypes.rst:313 msgid "*x* to the power *y*" -msgstr "(3)(7)" +msgstr "*x* to the power *y*" # a083d1e2dcec4e3e9a234b5b07651b92 #: ../../library/stdtypes.rst:313 msgid "``x ** y``" -msgstr "\\(7)" +msgstr "``x ** y``" # 2827633c9e0b49c6a9c0171e0c9a68b7 #: ../../library/stdtypes.rst:323 @@ -557,7 +557,7 @@ msgid "" "Not for complex numbers. Instead convert to floats using :func:`abs` if " "appropriate." -msgstr "複素数型には使えません。適切なら代わりに :func:`abs` で浮動小数点型 に 変換してください。" +msgstr "複素数型には使えません。適切なら代わりに :func:`abs` で浮動小数点型 に変換してください。" # fb170dac2bab49e1a018a1a50a7566ac #: ../../library/stdtypes.rst:341 @@ -572,21 +572,21 @@ msgid "" "float also accepts the strings \"nan\" and \"inf\" with an optional prefix " "\"+\" or \"-\" for Not a Number (NaN) and positive or negative infinity." -msgstr "浮動小数点数は、文字列、オプションの接頭辞 \"+\" または \"-\" と共 に \"nan\" と \"inf\" を、非数 (Not a Number (NaN)) や正、負の無限大として 受け付けます。" +msgstr "浮動小数点数は、文字列 \"nan\" と \"inf\" を、必要なら接頭辞 \"+\" または \"-\" と共に、非数 (Not a Number (NaN)) や正、負の無限大として受け付 けます。" # 2afa31fb6c1a4165bdc5448010e97c5e #: ../../library/stdtypes.rst:350 msgid "" "Python defines ``pow(0, 0)`` and ``0 ** 0`` to be ``1``, as is common for " "programming languages." -msgstr "Python はプログラム言語一般でそうであるように、 ``pow(0, 0)``,お よ び、 ``0 ** 0`` を ``1`` と定義します。" +msgstr "Python は、プログラム言語一般でそうであるように、 ``pow(0, 0)`` お よび ``0 ** 0`` を ``1`` と定義します。" # df2fdab586204b30b5c91b9888d87614 #: ../../library/stdtypes.rst:354 msgid "" "The numeric literals accepted include the digits ``0`` to ``9`` or any " "Unicode equivalent (code points with the ``Nd`` property)." -msgstr "受け付けられる数値リテラルは数字 ``0`` から ``9`` または Unicode の 等価物 (``Nd`` プロパティを持つコードポイント) を含みます。" +msgstr "受け付けられる数値リテラルは数字 ``0`` から ``9`` または等価な Unicode (``Nd`` プロパティを持つコードポイント) を含みます。" # 9b649ec0fc704b9d8841b317518a3fa9 #: ../../library/stdtypes.rst:357 @@ -600,12 +600,12 @@ msgid "" "All :class:`numbers.Real` types (:class:`int` and :class:`float`) also " "include the following operations:" -msgstr "全ての :class:`numbers.Real` 型 (:class:`int` 、 :class:`float`) は 以下の演算も含みます。 :" +msgstr "全ての :class:`numbers.Real` 型 (:class:`int` 、 :class:`float`) は 以下の演算も含みます:" # bc56ac96b82f452e8a484a77696d9518 #: ../../library/stdtypes.rst:367 msgid "``math.trunc(x)``" -msgstr "" +msgstr "``math.trunc(x)``" # 091605f579bb47a4a23b7c7053e2c5e0 #: ../../library/stdtypes.rst:367 @@ -615,7 +615,7 @@ # 072c27daff2d444b9a7c25f512b25ef3 #: ../../library/stdtypes.rst:369 msgid "``round(x[, n])``" -msgstr "" +msgstr "``round(x[, n])``" # 69b763135632465987fe220eb57d9536 #: ../../library/stdtypes.rst:369 @@ -627,22 +627,22 @@ # 2d26d083fde24894994fb5892f475e67 #: ../../library/stdtypes.rst:373 msgid "``math.floor(x)``" -msgstr "" +msgstr "``math.floor(x)``" # 2622961db5b84e4c9c2cc4a12c219e5f #: ../../library/stdtypes.rst:373 msgid "the greatest integral float <= *x*" -msgstr "*x* 以下の最大の整数を浮動少数点数で返します。" +msgstr "*x* 以下の最大の整数値を持つ浮動少数点数です。" # abb29b6041b04711a77917a5090c8b57 #: ../../library/stdtypes.rst:375 msgid "``math.ceil(x)``" -msgstr "" +msgstr "``math.ceil(x)``" # 24a05bec08474ae4bd7fce218bbc0d46 #: ../../library/stdtypes.rst:375 msgid "the least integral float >= *x*" -msgstr "*x* 以上の最小の整数を浮動小数点数で返します。" +msgstr "*x* 以上の最小の整数値を持つ浮動少数点数です。" # 328d53592c8a4be19dfda7ac27c0cf48 #: ../../library/stdtypes.rst:378 @@ -662,7 +662,7 @@ "Bitwise operations only make sense for integers. Negative numbers are " "treated as their 2's complement value (this assumes a sufficiently large " "number of bits that no overflow occurs during the operation)." -msgstr "ビット単位演算は、整数型に対してのみ意味があります。負の数はその値 の 2 の補数の値として扱われます (長整数の 場合、演算操作中にオーバフローが起 こらないように十分なビット数があるも のと仮定します) 。" +msgstr "ビット単位演算は、整数に対してのみ意味があります。負の数は、その 2 の補数の値として扱われます (演算中にオーバフローが起こらないように十分なビッ ト数があるものと仮定します) 。" # 52364793da324c8e900f03d06d98b1cb #: ../../library/stdtypes.rst:403 @@ -671,14 +671,14 @@ "numeric operations and higher than the comparisons; the unary operation " "``~`` has the same priority as the other unary numeric operations (``+`` and" " ``-``)." -msgstr "2 進のビット単位演算は全て、数値演算よりも低く、比較演算子よりも高 い優 先度です; 単項演算 ``~`` は他の単項数値演算 (``+`` および ``-``) と同 じ 優先度です。" +msgstr "二項ビット単位演算の優先度は全て、数値演算よりも低く、比較よりも高 いです; 単項演算 ``~`` の優先度は他の単項数値演算 (``+`` および ``-``) と同 じです。" # 34eb596bc15445d48cf7ae770097b744 #: ../../library/stdtypes.rst:407 msgid "" "This table lists the bitwise operations sorted in ascending priority " "(operations in the same box have the same priority):" -msgstr "以下のテーブルでは、ビット列演算を優先度の低いものから順に並べてい ます。 (同じボックス内の演算は同じ優先度です):" +msgstr "以下のテーブルでは、ビット列演算を優先度が低い順に並べています。 (同じボックス内の演算は同じ優先度です):" # 363a891027d440e6b29e6e7920430890 #: ../../library/stdtypes.rst:413 @@ -688,7 +688,7 @@ # 01e76324c7dd45078a0aed9dfbc3b073 #: ../../library/stdtypes.rst:413 msgid "bitwise :dfn:`or` of *x* and *y*" -msgstr "ビット単位の *x* と *y* の :dfn:`論理和`" +msgstr "*x* と *y* のビット単位 :dfn:`論理和`" # d031f0abc73a4e24b67f199a42f50301 #: ../../library/stdtypes.rst:416 @@ -698,17 +698,17 @@ # 1dc9271cdb9742a5a678da532bd692b7 #: ../../library/stdtypes.rst:416 msgid "bitwise :dfn:`exclusive or` of *x* and *y*" -msgstr "ビット単位の *x* と *y* の :dfn:`排他的論理和`" +msgstr "*x* と *y* のビット単位 :dfn:`排他的論理和`" # 5e41544dc10f42caac343b64ecc318a9 #: ../../library/stdtypes.rst:419 msgid "``x & y``" -msgstr "" +msgstr "``x & y``" # 08ab39955d33452f9869dfcd2ed0d2f4 #: ../../library/stdtypes.rst:419 msgid "bitwise :dfn:`and` of *x* and *y*" -msgstr "ビット単位の *x* と *y* の :dfn:`論理積`" +msgstr "*x* と *y* のビット単位 :dfn:`論理積`" # 3c8e78e7ff8748fca42da2471316f31d #: ../../library/stdtypes.rst:422 @@ -723,7 +723,7 @@ # cb231ab585c74b8c8fec743093449621 #: ../../library/stdtypes.rst:422 msgid "(1)(2)" -msgstr "" +msgstr "(1)(2)" # 84d6e5967d9d4dfa8cb14df50b1927c7 #: ../../library/stdtypes.rst:424 @@ -738,7 +738,7 @@ # aff03f3d9ca44e8baa3b4037b2b53c0c #: ../../library/stdtypes.rst:424 msgid "(1)(3)" -msgstr "" +msgstr "(1)(3)" # d951777f02674ff2a7cbe7d15f690a8a #: ../../library/stdtypes.rst:426 @@ -774,21 +774,21 @@ # 97edb38fd5e241da98582b59b26c5e65 #: ../../library/stdtypes.rst:444 msgid "Additional Methods on Integer Types" -msgstr "整数型に対する追加のメソッド" +msgstr "整数型における追加のメソッド" # 8e202f234b4c4c52bcf97b5aa7c3e106 #: ../../library/stdtypes.rst:446 msgid "" "The int type implements the :class:`numbers.Integral` :term:`abstract base " "class`. In addition, it provides one more method:" -msgstr "整数型は :class:`numbers.Integral` :term:`abstract base class` を 実装します。 さらに、追加のメソッドを一つ提供します。" +msgstr "整数型は :class:`numbers.Integral` 抽象基底クラス (:term:`abstract base class`) を実装します。 さらに、追加のメソッドを一つ提供します。" # b9986b5f659e4150b73fa8039aeb8265 #: ../../library/stdtypes.rst:451 msgid "" "Return the number of bits necessary to represent an integer in binary, " "excluding the sign and leading zeros::" -msgstr "整数を、符号と先頭の 0 は除いて二進法で表すために 必要なビットの数 を返します::" +msgstr "整数を、符号と先頭の 0 は除いて二進法で表すために必要なビットの数を 返します::" # 494b380ee2014081a2f1376d7a93c1b3 #: ../../library/stdtypes.rst:460 @@ -810,7 +810,7 @@ msgid "" "The integer is represented using *length* bytes. An :exc:`OverflowError` is" " raised if the integer is not representable with the given number of bytes." -msgstr "整数は *length* バイトで表されます。整数が与えられた数のバイトで 表 せなければ、 :exc:`OverflowError` が送出されます。" +msgstr "整数は *length* バイトで表されます。整数が与えられた数のバイトで表 せなければ、 :exc:`OverflowError` が送出されます。" # 929da9f2e638403b8c0031e3e8b01730 # 4317d0645d914cb39d461fb08653bedd @@ -822,7 +822,7 @@ "significant byte is at the end of the byte array. To request the native " "byte order of the host system, use :data:`sys.byteorder` as the byte order " "value." -msgstr "*byteorder* 引数は、整数を表すのに使われるバイトオーダーを決定しま す。 *byteorder* が ``\"big\"`` なら、最も重大なバイトがバイト配列の最初に来 ます。 *byteorder* が ``\"little\"`` なら、最も重大なバイトがバイト配列の 最 後に来ます。ホストシステムにネイティブのバイトオーダーを要求する に は、 :data:`sys.byteorder` をバイトオーダーの値として使ってください。" +msgstr "*byteorder* 引数は、整数を表すのに使われるバイトオーダーを決定しま す。 *byteorder* が ``\"big\"`` なら、最も重大なバイトがバイト配列の最初に来 ます。 *byteorder* が ``\"little\"`` なら、最も重大なバイトがバイト配列の最 後に来ます。ホストシステムにネイティブのバイトオーダーを要求するに は、 :data:`sys.byteorder` をバイトオーダーの値として使ってください。" # 06b967f4aa8c4fa1b4c730201f155114 #: ../../library/stdtypes.rst:500 @@ -844,7 +844,7 @@ "The argument *bytes* must either support the buffer protocol or be an " "iterable producing bytes. :class:`bytes` and :class:`bytearray` are examples" " of built-in objects that support the buffer protocol." -msgstr "引数 *bytes* はバッファプロトコルをサポートしているか、 バイト列を 生成するイテラブルでなくてはなりません。 バッファプロトコルをサポートする組 み込みオブジェクトは、 例えば :class:`bytes` と :class:`bytearray` などで す。" +msgstr "引数 *bytes* はバッファプロトコルをサポートしているか、 バイト列を 生成するイテラブルでなくてはなりません。 バッファプロトコルをサポートする組 み込みオブジェクトは、 例えば :class:`bytes` や :class:`bytearray` などで す。" # 1fdce857b3104ac0b9a3b27435ec549f #: ../../library/stdtypes.rst:533 @@ -871,7 +871,7 @@ "Return a pair of integers whose ratio is exactly equal to the original float" " and with a positive denominator. Raises :exc:`OverflowError` on infinities" " and a :exc:`ValueError` on NaNs." -msgstr "比が元の浮動小数点数とちょうど同じで分母が正である、一対の整数を返 します。 無限大に対しては、 :exc:`OverflowError` を、非 数 (NaN) に対して は :exc:`ValueError` を送出します。" +msgstr "比が元の浮動小数点数とちょうど同じで分母が正である、一対の整数を返 します。 無限大に対しては :exc:`OverflowError` を、非数 (NaN) に対して は :exc:`ValueError` を送出します。" # 76ce44b5fc6842acaed97feb95a5637a #: ../../library/stdtypes.rst:554 @@ -889,7 +889,7 @@ "contrast, hexadecimal strings allow exact representation and specification " "of floating-point numbers. This can be useful when debugging, and in " "numerical work." -msgstr "16 進表記の文字列へ、または、 16 進表記からの変換をサポートするメ ソッドは二つあります。 Python の浮動小数点数は内部的には2進数で保持さ れ、若 干の丸め誤差を持って *10進数* へ、または、 *10進数* から変換され ます。それ に対し、 16 進表記では浮動小数点数を、正確に表現することがで きます。これは デバッグのときや、数学的な用途に便利でしょう。" +msgstr "16 進表記の文字列へ、または、 16 進表記からの変換をサポートする二つ のメソッドがあります。 Python の浮動小数点数は内部的には2進数で保持されるの で、浮動小数点数の *10進数* へまたは *10進数* から変換には若干の丸め誤差があ ります。それに対し、16 進表記では、浮動小数点数を正確に表現できます。これは デバッグのときや、数学的な用途に便利でしょう。" # 6139804658e24c11ba67f0c18bf893d1 #: ../../library/stdtypes.rst:573 @@ -911,7 +911,7 @@ msgid "" "Note that :meth:`float.hex` is an instance method, while " ":meth:`float.fromhex` is a class method." -msgstr ":meth:`float.fromhex` はクラスメソッドですが、 :meth:`float.hex` は イ ンスタンスメソッドであることに注意して下さい。" +msgstr ":meth:`float.fromhex` はクラスメソッドですが、 :meth:`float.hex` は インスタンスメソッドであることに注意して下さい。" # 7dee90ef50d245a3888acee629d21cc9 #: ../../library/stdtypes.rst:589 @@ -931,7 +931,7 @@ "floating-point literal in C or Java code, and hexadecimal strings produced " "by C's ``%a`` format character or Java's ``Double.toHexString`` are accepted" " by :meth:`float.fromhex`." -msgstr "``符号`` はオプションで、 ``+`` と ``-`` のどちらでも構いません。 ``整数部`` と ``小数部`` は 16 進数の文字列で、 ``指数部`` はオプ ションで符 号がつけられる 10 進数です。大文字・小文字は区別されず、最低 でも 1 つの 16 進数文字を整数部もしくは小数部に含む必要があります。こ の制限は C99 規格のセ クション 6.4.4.2 で規定されます。また、 Java 1.5 以降で使われます。特 に、 :meth:`float.hex` は C や Java コード中で、浮 動小数点数の 16 進表記と して役に立つでしょう。また、 C の ``%a`` 書式 や、 Java の ``Double.toHexString`` で書きだされた文字列は :meth:`float.fromhex` で受け取 ることができます。" +msgstr "``sign`` は必須ではなく、 ``+`` と ``-`` のどちらかです。 ``integer`` と ``fraction`` は 16 進数の文字列で、 ``exponent`` は 10 進数で 符号もつけられます。大文字・小文字は区別されず、最低でも 1 つの 16 進数文字 を整数部もしくは小数部に含む必要があります。この制限は C99 規格のセクション 6.4.4.2 で規定されていて、 Java 1.5 以降でも使われています。特 に、 :meth:`float.hex` の出力は C や Java コード中で、浮動小数点数の 16 進表 記として役に立つでしょう。また、 C の ``%a`` 書式 や、 Java の ``Double.toHexString`` で書きだされた文字列は :meth:`float.fromhex` で受け付 けられます。" # 5ad58bc369624c2a828002d4bfa39521 #: ../../library/stdtypes.rst:606 @@ -940,14 +940,14 @@ "that it gives the power of 2 by which to multiply the coefficient. For " "example, the hexadecimal string ``0x3.a7p10`` represents the floating-point " "number ``(3 + 10./16 + 7./16**2) * 2.0**10``, or ``3740.0``::" -msgstr "指数部が 16 進数ではなく、 10 進数で書かれ、 2 の累乗となることに注 意 して下さい。例えば、 16 進文字列表現 ``0x3.a7p10`` は浮動小数点数 ``(3 + 10./16 + 7./16**2) * 2.0**10`` もしくは ``3740.0`` を表します。 ::" +msgstr "なお、指数部は 16 進数ではなく 10 進数で書かれ、 係数に掛けられる 2 の累乗を与えます。例えば、16 進文字列 ``0x3.a7p10`` は浮動小数点数 ``(3 + 10./16 + 7./16**2) * 2.0**10`` すなわち ``3740.0`` を表します。 ::" # 6a40cd161fbe40f697039048d8a18ee9 #: ../../library/stdtypes.rst:616 msgid "" "Applying the reverse conversion to ``3740.0`` gives a different hexadecimal " "string representing the same number::" -msgstr "逆変換を ``3740.0`` に適用すると、元とは異なる 16 進文字列表現を返 しま す。 ::" +msgstr "逆変換を ``3740.0`` に適用すると、同じ数を表す異なる 16 進文字列表 現を返します::" # f8eea1cd8d28419e92fb4fc69047cf33 #: ../../library/stdtypes.rst:626 @@ -969,7 +969,7 @@ "given by reduction modulo ``P`` for a fixed prime ``P``. The value of ``P``" " is made available to Python as the :attr:`modulus` attribute of " ":data:`sys.hash_info`." -msgstr "数 ``x`` と ``y`` に対して、型が異なっていたとしても、 ``x == y`` であれば必ず ``hash(x) == hash(y)`` であることが要請されます (詳細 は :meth:`__hash__` メソッドドキュメントを参照してください)。実装の簡単さ と 複数の数値型 (:class:`int` 、 :class:`float` 、 :class:`decimal.Decimal` 、 :class:`fractions.Fraction` を含みます) 間の効率のため、Python の 数値型に対するハッシュ値はある単一の数 学的関数に基づいていて、 その関数はすべての有理数に対し定義されているた め、 :class:`int` と :class:`fractions.Fraction` のすべてのインスタンス と、 :class:`float` と :class:`decimal.Decimal` のすべての有限なインスタンス に 対して適用されます。本質的には、この関数は定数の素数 ``P`` に対して ``P`` を法とする還元で与えられます。 値 ``P`` は、 :data:`sys.hash_info` の :attr:`modulus` 属性として Python で利用できます。" +msgstr "数 ``x`` と ``y`` に対して、型が異なっていたとしても、 ``x == y`` であれば必ず ``hash(x) == hash(y)`` であることが要請されます (詳細 は :meth:`__hash__` メソッドのドキュメントを参照してください)。実装の簡単さ と 複数の数値型 (:class:`int` 、 :class:`float` 、 :class:`decimal.Decimal` 、 :class:`fractions.Fraction` を含みます) 間の効率のため、Python の 数値型に対するハッシュ値はある単一の数 学的関数に基づいていて、 その関数はすべての有理数に対し定義されているた め、 :class:`int` と :class:`fractions.Fraction` のすべてのインスタンス と、 :class:`float` と :class:`decimal.Decimal` のすべての有限なインスタンス に 対して適用されます。本質的には、この関数は定数の素数 ``P`` に対して ``P`` を法とする還元で与えられます。 値 ``P`` は、 :data:`sys.hash_info` の :attr:`modulus` 属性として Python で利用できます。" # bf4faccb5e59459593e00be32ce024d0 #: ../../library/stdtypes.rst:643 @@ -1033,7 +1033,7 @@ "To clarify the above rules, here's some example Python code, equivalent to " "the built-in hash, for computing the hash of a rational number, " ":class:`float`, or :class:`complex`::" -msgstr "" +msgstr "上述の規則をわかりやすくするため、有理数 :class:`float` や、 :class:`complex` のハッシュを計算する 組み込みのハッシュと等価な Python コードの例を挙げます。" # c4b8a47e258d41b78ac57f26f94f2054 #: ../../library/stdtypes.rst:729 @@ -1047,14 +1047,14 @@ " using two distinct methods; these are used to allow user-defined classes to" " support iteration. Sequences, described below in more detail, always " "support the iteration methods." -msgstr "Python はコンテナの内容にわたって反復処理を行う概念をサポートしてい ま す。この概念は 2 つの別々のメソッドを使って実装されています; これらのメソ ッドはユーザ定義のクラスで反復を行えるようにするために使わ れます。後に詳し く述べるシーケンス型はすべて反復処理メソッドをサポート しています。" +msgstr "Python はコンテナにわたる反復処理の概念をサポートしています。この概 念は 2 つの別々のメソッドを使って実装されています; これらのメソッドを使って ユーザ定義のクラスで反復を行えるようにできます。後に詳しく述べるシーケンス は、必ず反復処理メソッドをサポートしています。" # d3229f1361f7438187550282efc7f501 #: ../../library/stdtypes.rst:742 msgid "" "One method needs to be defined for container objects to provide iteration " "support:" -msgstr "以下はコンテナオブジェクトに反復処理をサポートさせるために定義しな けれ ばならないメソッドです:" +msgstr "コンテナオブジェクトに反復処理をサポートさせるためには、以下のメソ ッドを定義しなければなりません:" # b0cb6be259334e5cb416b832d320704d #: ../../library/stdtypes.rst:749 @@ -1067,14 +1067,14 @@ "breadth-first and depth-first traversal.) This method corresponds to the " ":attr:`tp_iter` slot of the type structure for Python objects in the " "Python/C API." -msgstr "イテレータオブジェクトを返します。イテレータオブジェクトは以下で述 べるイテレータプロトコルをサポートする必要があります。あるコンテナ が異なる 形式の反復処理をサポートする場合、それらの反復処理形式のイ テレータを特定的 に要求するようなメソッドを追加することができます (複数の形式での反復処理をサ ポートするようなオブジェクトとして木構造 の例があります。木構造は幅優先走査 と深さ優先走査の両方をサポートし ます)。 このメソッドは Python/C API におい て Python オブジェクトを表す型構 造体の :attr:`tp_iter` スロットに対応しま す。" +msgstr "イテレータオブジェクトを返します。イテレータオブジェクトは以下で述 べるイテレータプロトコルをサポートする必要があります。あるコンテナが異なる形 式の反復処理をサポートする場合、特定的の反復形式のイテレータを要求するための メソッドを追加できます (複数の形式での反復処理をサポートするようなオブジェク トとして木構造の例があります。木構造は幅優先走査と深さ優先走査の両方をサポー トします)。 このメソッドは Python/C API において Python オブジェクトを表す型 構 造体の :attr:`tp_iter` スロットに対応します。" # 501aa6d4b59348c2967013d7f0e4bd6f #: ../../library/stdtypes.rst:758 msgid "" "The iterator objects themselves are required to support the following two " "methods, which together form the :dfn:`iterator protocol`:" -msgstr "イテレータオブジェクト自体は以下の 2 のメソッドをサポートする必要が あ ります。これらのメソッドは 2 つ合わせて :dfn:`イテレータプロトコル` を 成 します:" +msgstr "イテレータオブジェクト自体は以下の 2 のメソッドをサポートする必要が あります。これらのメソッドは 2 つ合わせて :dfn:`イテレータプロトコル` を 成 します:" # 9d184db9a674417eabbb1ec37ce3b0b2 #: ../../library/stdtypes.rst:764 @@ -1083,7 +1083,7 @@ "containers and iterators to be used with the :keyword:`for` and " ":keyword:`in` statements. This method corresponds to the :attr:`tp_iter` " "slot of the type structure for Python objects in the Python/C API." -msgstr "イテレータオブジェクト自体を返します。このメソッドはコンテナとイテ レータの両方を :keyword:`for` および :keyword:`in` 文で使えるように するため に必要です。このメソッドは Python/C API において Python オ ブジェクトを表す 型構造体の :attr:`tp_iter` スロットに対応します。" +msgstr "イテレータオブジェクト自体を返します。このメソッドはコンテナとイテ レータの両方を :keyword:`for` および :keyword:`in` 文で使えるようにするため に必要です。このメソッドは Python/C API において Python オブジェクトを表す型 構造体の :attr:`tp_iter` スロットに対応します。" # cbb06dc4060f441591dbec19b1ce7d24 #: ../../library/stdtypes.rst:772 @@ -1092,7 +1092,7 @@ "raise the :exc:`StopIteration` exception. This method corresponds to the " ":attr:`tp_iternext` slot of the type structure for Python objects in the " "Python/C API." -msgstr "コンテナ内の次の要素を返します。もう要素が残っていない場合、例 外 :exc:`StopIteration` を送出します。このメソッドは Python/C API にお いて Python オブジェクトを表す型構造体の :attr:`tp_iternext` スロッ トに対応しま す。" +msgstr "コンテナ内の次の要素を返します。もう要素が残っていない場合、例 外 :exc:`StopIteration` を送出します。このメソッドは Python/C API において Python オブジェクトを表す型構造体の :attr:`tp_iternext` スロットに対応しま す。" # 96a74b5952df486da3a5b1bed2ad5647 #: ../../library/stdtypes.rst:777 @@ -1101,7 +1101,7 @@ "and specific sequence types, dictionaries, and other more specialized forms." " The specific types are not important beyond their implementation of the " "iterator protocol." -msgstr "Python では、いくつかのイテレータオブジェクトを定義しています。これ ら は一般的および特殊化されたシーケンス型、辞書型、そして他のさらに特殊化 さ れた形式をサポートします。特殊型であることはイテレータプロトコルの実 装が特 殊になること以外は重要なことではありません。" +msgstr "Python では、いくつかのイテレータオブジェクトを定義しています。これ らは一般のおよび特殊なシーケンス型、辞書型、そして他のさらに特殊化された形式 に渡る反復をサポートします。特殊型は、イテレータプロトコルの実装以外は重要で はありません。" # a0abbc69916a459e9830b4a75222f036 #: ../../library/stdtypes.rst:782 @@ -1109,7 +1109,7 @@ "Once an iterator's :meth:`__next__` method raises :exc:`StopIteration`, it " "must continue to do so on subsequent calls. Implementations that do not " "obey this property are deemed broken." -msgstr "一度イテレータの :meth:`__next__` メソッドが :exc:`StopIteration` 例外を送出した場合、以降の呼び出しでもずっと例外 を送出し続けなければなりま せん。この特性に従わないような実装は変則で あるとみなされます。" +msgstr "イテレータの :meth:`__next__` メソッドが一旦 :exc:`StopIteration` を送出したなら、以降の呼び出しでも例外を送出し続けなければなりません。この特 性に従わない実装は変則であるとみなされます。" # 58e87dc2999f4fc3bd73da5e74e96caf #: ../../library/stdtypes.rst:790 @@ -1125,12 +1125,12 @@ "(technically, a generator object) supplying the :meth:`__iter__` and " ":meth:`__next__` methods. More information about generators can be found in " ":ref:`the documentation for the yield expression <yieldexpr>`." -msgstr "Python における :term:`generator` (ジェネレータ) は、イテレータプロ ト コルを実装する簡便な方法を提供します。コンテナオブジェクト の :meth:`__iter__` メソッドがジェネレータとして実装されていれば、メソッ ド は :meth:`__iter__` および :meth:`__next__` メソッドを提供するイテレータ オ ブジェクト (技術的にはジェネレータオブジェクト) を自動的に返しま す。 :ref:`yield 式についてのドキュメント <yieldexpr>` に より多くの情報があ ります。" +msgstr "Python における :term:`generator` (ジェネレータ) は、イテレータプロ トコルを実装する簡便な方法を提供します。コンテナオブジェクト の :meth:`__iter__` メソッドがジェネレータとして実装されていれば、メソッド は :meth:`__iter__` および :meth:`__next__` メソッドを提供するイテレータオブ ジェクト (技術的にはジェネレータオブジェクト) を自動的に返します。ジェネレー タに関する詳細な情報は、 :ref:`yield 式のドキュメント <yieldexpr>` にありま す。" # 0aa8caf97b9a49acb3b65dd196ee1afa #: ../../library/stdtypes.rst:803 msgid "Sequence Types --- :class:`list`, :class:`tuple`, :class:`range`" -msgstr "" +msgstr "シーケンス型 --- :class:`list`, :class:`tuple`, :class:`range`" # 852ef62cb6fa40909ec0c789c5bfb851 #: ../../library/stdtypes.rst:805 @@ -1139,12 +1139,12 @@ "Additional sequence types tailored for processing of :ref:`binary data " "<binaryseq>` and :ref:`text strings <textseq>` are described in dedicated " "sections." -msgstr "" +msgstr "基本的なシーケンス型は 3 つあります: リスト、タプル、range オブジェ クトです。:ref:`バイナリデータ <binaryseq>` や :ref:`テキスト文字列 <textseq>`を処理するように仕立てられたシーケンス型は、セクションを割いて解説 します。" # 8a3e707c24dd48f78fa534105753380c #: ../../library/stdtypes.rst:814 msgid "Common Sequence Operations" -msgstr "" +msgstr "共通のシーケンス演算" # 037f94c7c7dc4cc19e36440afa2d3e76 #: ../../library/stdtypes.rst:818 @@ -1153,7 +1153,7 @@ "both mutable and immutable. The :class:`collections.abc.Sequence` ABC is " "provided to make it easier to correctly implement these operations on custom" " sequence types." -msgstr "" +msgstr "以下のテーブルにある演算は、ほとんどのミュータブル、イミュータブル 両方のシーケンスでサポートされています。カスタムのシーケンス型にこれらの演算 を完全に実装するのが簡単になるように、 :class:`collections.abc.Sequence` ABC が提供されています。" # 9bc62134a8b4464a9037dbeab71e3d20 #: ../../library/stdtypes.rst:823 @@ -1163,7 +1163,7 @@ "*t* are sequences of the same type, *n*, *i*, *j* and *k* are integers and " "*x* is an arbitrary object that meets any type and value restrictions " "imposed by *s*." -msgstr "" +msgstr "以下のテーブルで、シーケンス演算を優先度が低い順に挙げます (同じボ ックス内の演算は同じ優先度です)。テーブル内で、 *s* と *t* は同じ型のシーケ ンス、 *n*、 *i*、 *j* 、 *k* は整数、*x* は *s* に課された型と値の条件を満 たす任意のオブジェクトです。" # 387e349462624978acfbc4420b63ddd2 #: ../../library/stdtypes.rst:828 @@ -1171,7 +1171,7 @@ "The ``in`` and ``not in`` operations have the same priorities as the " "comparison operations. The ``+`` (concatenation) and ``*`` (repetition) " "operations have the same priority as the corresponding numeric operations." -msgstr "" +msgstr "``in`` および ``not in`` 演算の優先度は比較演算と同じです。``+`` (結合) および ``*`` (繰り返し)の優先度は、対応する数値演算と同じです。" # c0c49702db294d60a42a82dbe06cc794 #: ../../library/stdtypes.rst:849 @@ -1181,7 +1181,7 @@ # 2efab6d570cc40f88062178acc62b2b5 #: ../../library/stdtypes.rst:849 msgid "``True`` if an item of *s* is equal to *x*, else ``False``" -msgstr "*s* のある要素 *x* と等しい場合 ``True`` , そうでない場合 ``False``" +msgstr "*s* のある要素が *x* と等しければ ``True`` , そうでなければ ``False``" # b05eac7f5df741498211ad76af87b081 #: ../../library/stdtypes.rst:852 @@ -1191,7 +1191,7 @@ # 2917f07b772c4328b290d0a42be70c1d #: ../../library/stdtypes.rst:852 msgid "``False`` if an item of *s* is equal to *x*, else ``True``" -msgstr "*s* のある要素が *x* と等しい場合 ``False``, そうでない場合 ``True``" +msgstr "*s* のある要素が *x* と等しければ ``False``, そうでなければ ``True``" # 13114aae7531425793c5c1502e19d619 #: ../../library/stdtypes.rst:855 @@ -1201,32 +1201,32 @@ # d07afad27b0b45b2bd7a17954effd97b #: ../../library/stdtypes.rst:855 msgid "the concatenation of *s* and *t*" -msgstr "*s* および *t* の結合" +msgstr "*s* と *t* の結合" # 0e6e6c9cea0c44b9bf1825f9ed052b9a #: ../../library/stdtypes.rst:855 msgid "(6)(7)" -msgstr "" +msgstr "(6)(7)" # 6ee9b48e5e1647e3b3133ad850f27ac9 #: ../../library/stdtypes.rst:858 msgid "``s * n`` or ``n * s``" -msgstr "" +msgstr "``s * n`` または ``n * s``" # 04bf9311b8b24b07a33e5a2102654713 #: ../../library/stdtypes.rst:858 msgid "*n* shallow copies of *s* concatenated" -msgstr "*s* の浅いコピー *n* 個からなる結合" +msgstr "*s* の浅いコピー *n* 個の結合" # aae118f3a026437eb4a5ddb1f6084db7 #: ../../library/stdtypes.rst:858 msgid "(2)(7)" -msgstr "" +msgstr "(2)(7)" # df6089bbd213457a8dbd4e4ae80fbe27 #: ../../library/stdtypes.rst:861 msgid "``s[i]``" -msgstr "" +msgstr "``s[i]``" # ba9c068dbff64064820cefe7bb446268 #: ../../library/stdtypes.rst:861 @@ -1236,32 +1236,32 @@ # 28765c3928064699b9824e44cb198b8e #: ../../library/stdtypes.rst:863 msgid "``s[i:j]``" -msgstr "" +msgstr "``s[i:j]``" # c613f101c7b1475fbff8096d553d84c1 #: ../../library/stdtypes.rst:863 msgid "slice of *s* from *i* to *j*" -msgstr "*s* の *i* 番目から *j* 番目までのスライス" +msgstr "*s* の *i* から *j* までのスライス" # 29230f9c701a44c1ad66044d66c40144 #: ../../library/stdtypes.rst:863 msgid "(3)(4)" -msgstr "" +msgstr "(3)(4)" # 1614c5b51cce4fc5a012522ed2a9df7f #: ../../library/stdtypes.rst:865 msgid "``s[i:j:k]``" -msgstr "" +msgstr "``s[i:j:k]``" # 85b05c1b907b43d6ab848391d5a6539e #: ../../library/stdtypes.rst:865 msgid "slice of *s* from *i* to *j* with step *k*" -msgstr "*s* の *i* 番目から *j* 番目まで、 *k* 毎のスライス" +msgstr "*s* の *i* から *j* まで、 *k* 毎のスライス" # 1815c75d0f884947a267b5694cbe28de #: ../../library/stdtypes.rst:865 msgid "(3)(5)" -msgstr "" +msgstr "(3)(5)" # 1a04acf6d097466eb63df3c4e06acf8b #: ../../library/stdtypes.rst:868 @@ -1303,22 +1303,22 @@ msgid "" "index of the first occurence of *x* in *s* (at or after index *i* and before" " index *j*)" -msgstr "" +msgstr "*s* (インデクス *i* 以上 *j* 以下) 中に *x* が最初に現れるインデク ス" # f44963a304c34730bc43a7f7bb4bbbad #: ../../library/stdtypes.rst:874 msgid "\\(8)" -msgstr "" +msgstr "\\(8)" # cf25806f352b422a9cc2fd64774bea2d #: ../../library/stdtypes.rst:878 msgid "``s.count(x)``" -msgstr "" +msgstr "``s.count(x)``" # 6c709670a2f343f2955782ef80baaa5c #: ../../library/stdtypes.rst:878 msgid "total number of occurences of *x* in *s*" -msgstr "" +msgstr "*s* 中に *x* が現れる回数" # 95e0864106624482be96b0e286dd18ea #: ../../library/stdtypes.rst:882 @@ -1328,7 +1328,7 @@ "elements. This means that to compare equal, every element must compare equal" " and the two sequences must be of the same type and have the same length. " "(For full details see :ref:`comparisons` in the language reference.)" -msgstr "" +msgstr "同じ型のシーケンスは比較もサポートしています。特に、タプルとリスト は対応する要素を比較することで辞書式順序で比較されます。つまり、等しいとされ るためには、すべての要素が等しく、両シーケンスの方も長さも等しくなければなり ません。(完全な詳細は言語リファレンスの :ref:`comparisons` を参照してくださ い。)" # 55dea16f53634cbaa60c11399ef879b7 #: ../../library/stdtypes.rst:891 @@ -1337,7 +1337,7 @@ "containment testing in the general case, some specialised sequences (such as" " :class:`str`, :class:`bytes` and :class:`bytearray`) also use them for " "subsequence testing::" -msgstr "" +msgstr "``in`` および ``not in`` 演算は、一般に単純な包含判定にのみ使われま すが、(:class:`str`, :class:`bytes`, :class:`bytearray` のような) 特殊なシー ケンスでは部分文字列判定にも使われます。" # b78b7fc8380e423fb97969e6d974c726 #: ../../library/stdtypes.rst:900 @@ -1346,7 +1346,7 @@ "sequence of the same type as *s*). Note also that the copies are shallow; " "nested structures are not copied. This often haunts new Python programmers;" " consider::" -msgstr "" +msgstr "``0`` より小さい *n* の値は ``0`` として扱われます (*s* と同じ型の 空シーケンスを与えます)。また、コピーは浅いコピーです; ネストされた構造はコ ピーされません。これは新人 Python プログラマーによく出没します; 次のコードを 考えてください::" # 883a933468ea4959994b06f9c27919e5 #: ../../library/stdtypes.rst:912 @@ -1355,7 +1355,7 @@ " list, so all three elements of ``[[]] * 3`` are (pointers to) this single " "empty list. Modifying any of the elements of ``lists`` modifies this single" " list. You can create a list of different lists this way::" -msgstr "" +msgstr "ここで、``[[]]`` が空リストを含む 1 要素のリストなので、``[[]] * 3`` の 3 要素はこの一つの空リスト (へのポインタ) です。``lists`` のいずれか の要素を変更すると、その一つのリストが変更されます。別々のリストのリストを作 るにはこうします::" # c90ede0de9964f40823fe21353c8bb42 #: ../../library/stdtypes.rst:925 @@ -1363,7 +1363,7 @@ "If *i* or *j* is negative, the index is relative to the end of the string: " "``len(s) + i`` or ``len(s) + j`` is substituted. But note that ``-0`` is " "still ``0``." -msgstr "*i* または *j* が負の数の場合、インデクスは文字列の末端からの相対 イ ンデクスになります: ``len(s) + i`` または ``len(s) + j`` が代入さ れま す。しかし ``-0`` は ``0`` のままなので注意してください。" +msgstr "*i* または *j* が負の数の場合、インデクスは文字列の末端からの相対イ ンデクスになります: ``len(s) + i`` または ``len(s) + j`` が代入されます。し かし ``-0`` は ``0`` のままなので注意してください。" # 06fdf435949d48888288616ce375cce5 #: ../../library/stdtypes.rst:930 @@ -1373,7 +1373,7 @@ "``len(s)``, use ``len(s)``. If *i* is omitted or ``None``, use ``0``. If " "*j* is omitted or ``None``, use ``len(s)``. If *i* is greater than or equal" " to *j*, the slice is empty." -msgstr "*s* の *i* から *j* へのスライスは ``i <= k < j`` となるようなイン デクス *k* を持つ要素からなるシーケンスとして定義されます。 *i* ま たは *j* が ``len(s)`` よりも大きい場合、 ``len(s)`` を使います。 *i* が省略されるか ``None`` だった場合、 ``0`` を使います。 *j* が 省略されるか ``None`` だった 場合、 ``len(s)`` を使います。 *i* が *j* 以上の場合、スライスは空のシーケン スになります。" +msgstr "*s* の *i* から *j* へのスライスは ``i <= k < j`` となるようなイン デクス *k* を持つ要素からなるシーケンスとして定義されます。 *i* または *j* が ``len(s)`` よりも大きい場合、 ``len(s)`` を使います。 *i* が省略されるか ``None`` だった場合、 ``0`` を使います。 *j* が省略されるか ``None`` だった 場合、 ``len(s)`` を使います。 *i* が *j* 以上の場合、スライスは空のシーケン スになります。" # 8f3f2f7c733e447097770fb2b0a2d259 #: ../../library/stdtypes.rst:937 @@ -1385,7 +1385,7 @@ "greater than ``len(s)``, use ``len(s)``. If *i* or *j* are omitted or " "``None``, they become \"end\" values (which end depends on the sign of *k*)." " Note, *k* cannot be zero. If *k* is ``None``, it is treated like ``1``." -msgstr "*s* の *i* 番目から *j* 番目まで *k* 毎のスライスは、 ``0 <= n < (j-i)/k`` となるような、インデクス ``x = i + n*k`` を持つ要素からな るシーケ ンスとして定義されます。言い換えるとインデクスは ``i``, ``i+k``, ``i+2*k``, ``i+3*k`` などであり、 *j* に達したところ (しかし *j* は含みません)でストッ プします。 *i* または *j* が ``len(s)`` より大きい場合、 ``len(s)`` を使いま す。 *i* または *j* を省略するか ``None`` だった場合、 \"最後\" (*k* の符号 に依存) を示す 値を使います。 *k* はゼロにできないので注意してください。 *k* が ``None`` だった場合、 ``1`` として扱われます。" +msgstr "*s* の *i* 番目から *j* 番目まで *k* 毎のスライスは、 ``0 <= n < (j-i)/k`` となるような、インデクス ``x = i + n*k`` を持つ要素からなるシーケ ンスとして定義されます。言い換えるとインデクスは ``i``, ``i+k``, ``i+2*k``, ``i+3*k`` などであり、 *j* に達したところ (しかし *j* は含みません)でストッ プします。 *i* または *j* が ``len(s)`` より大きい場合、 ``len(s)`` を使いま す。 *i* または *j* を省略するか ``None`` だった場合、 \"最後\" (*k* の符号 に依存) を示す値を使います。 *k* はゼロにできないので注意してください。 *k* が ``None`` だった場合、 ``1`` として扱われます。" # bb9d4d592e8b427b8c147fedeb5afb8f #: ../../library/stdtypes.rst:946 @@ -1394,7 +1394,7 @@ "means that building up a sequence by repeated concatenation will have a " "quadratic runtime cost in the total sequence length. To get a linear " "runtime cost, you must switch to one of the alternatives below:" -msgstr "" +msgstr "イミュータブルなシーケンスの結合は、常に新しいオブジェクトを返しま す。これは、結合の繰り返しでシーケンスを構築する実行時間コストがシーケンスの 長さの合計の二次式になることを意味します。実行時間コストを線形にするには、代 わりに以下のいずれかにしてください:" # c61fa37887244f9bb969c44957ef331b ***The diff for this file has been truncated for email.*** ======================================= --- /locale/ja/LC_MESSAGES/library/struct.po Fri Oct 12 19:45:31 2012 +++ /locale/ja/LC_MESSAGES/library/struct.po Thu Oct 25 10:03:54 2012 @@ -1,13 +1,14 @@ # # Translators: +# Arihiro TAKASE <hinac****@gmail*****>, 2012. # Nozomu Kaneko <nozom****@gmail*****>, 2012. msgid "" msgstr "" "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-09-21 11:09+0000\n" -"Last-Translator: Nozomu Kaneko <nozom****@gmail*****>\n" +"PO-Revision-Date: 2012-10-15 02:46+0000\n" +"Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -501,7 +502,7 @@ "The ``'q'`` and ``'Q'`` conversion codes are available in native mode only " "if the platform C compiler supports C :c:type:`long long`, or, on Windows, " ":c:type:`__int64`. They are always available in standard modes." -msgstr "フォーマット文字 ``'q'`` および ``'Q'`` は、プラットフォームの C コ ンパイラが C の :c:type:`long long` 型、 Windows では :c:type:`__int64` をサ ポートする場合にのみ、 プラットフォームネイティブの値との変換を行うモードだ けで利用することができます。" +msgstr "変換コード ``'q'`` および ``'Q'`` は、ネイティブモードではプラット フォームの C コンパイラが C の :c:type:`long long` 型をサポートする場合、ま たは Windows では :c:type:`__int64` をサポートする場合にのみ利用できます。標 準モードでは常に利用できます。" # 4b84aefbeaf1488389d4f7f6c5a4d657 #: ../../library/struct.rst:221 ======================================= --- /locale/ja/LC_MESSAGES/library/timeit.po Mon Oct 15 23:19:12 2012 +++ /locale/ja/LC_MESSAGES/library/timeit.po Thu Oct 25 10:03:54 2012 @@ -5,8 +5,8 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-07-02 14:41+0000\n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2012-10-16 01:02+0000\n" +"Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" ======================================= --- /locale/ja/LC_MESSAGES/library/venv-create.inc.po Thu Oct 18 22:00:55 2012 +++ /locale/ja/LC_MESSAGES/library/venv-create.inc.po Thu Oct 25 10:03:54 2012 @@ -5,7 +5,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-18 16:25\n" -"PO-Revision-Date: 2012-10-18 12:01+0000\n" +"PO-Revision-Date: 2012-10-19 04:48+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" ======================================= --- /locale/ja/LC_MESSAGES/library/venv.po Thu Oct 18 22:00:55 2012 +++ /locale/ja/LC_MESSAGES/library/venv.po Thu Oct 25 10:03:54 2012 @@ -6,7 +6,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-18 16:25\n" -"PO-Revision-Date: 2012-10-18 11:53+0000\n" +"PO-Revision-Date: 2012-10-19 04:48+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" @@ -34,10 +34,7 @@ " (allowing creation of environments with various Python versions) and can " "have its own independent set of installed Python packages in its site " "directories." -msgstr ":mod:`venv` モジュールは、軽量の \"仮想環境\" の作成のサポートを提 供します。" -"仮想環境には、仮想環境ごとの site ディレクトリがあり、これはシステムの site ディレクトリから分離させることができます。" -"それぞれの仮想環境には、それ自身の Python バイナリ (様々な Python バージョ ンで環境を作成できます) があり、" -"仮想環境ごとの site ディレクトリに独立した Python パッケージ群をインストー ルできます。" +msgstr ":mod:`venv` モジュールは、軽量の \"仮想環境\" の作成のサポートを提 供します。仮想環境には、仮想環境ごとの site ディレクトリがあり、これはシステ ムの site ディレクトリから分離させることができます。それぞれの仮想環境には、 それ自身の Python バイナリ (様々な Python バージョンで環境を作成できます) が あり、仮想環境ごとの site ディレクトリに独立した Python パッケージ群をインス トールできます。" # 820a6caf28e84ebc8ee891636ed18977 #: ../../library/venv.rst:26 ======================================= --- /locale/ja/LC_MESSAGES/reference/lexical_analysis.po Mon Oct 15 23:19:12 2012 +++ /locale/ja/LC_MESSAGES/reference/lexical_analysis.po Thu Oct 25 10:03:54 2012 @@ -5,7 +5,7 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-07-15 15:24+0000\n" +"PO-Revision-Date: 2012-10-16 01:07+0000\n" "Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" ======================================= --- /locale/ja/LC_MESSAGES/tutorial/introduction.po Tue Oct 16 01:53:55 2012 +++ /locale/ja/LC_MESSAGES/tutorial/introduction.po Thu Oct 25 10:03:54 2012 @@ -5,8 +5,8 @@ "Project-Id-Version: Python Document Japanese\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-12 22:50\n" -"PO-Revision-Date: 2012-07-02 14:51+0000\n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2012-10-16 08:48+0000\n" +"Last-Translator: Arihiro TAKASE <hinac****@gmail*****>\n" "Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" ======================================= --- /tools/i18nutil.py Thu Oct 18 22:00:55 2012 +++ /tools/i18nutil.py Thu Oct 25 10:03:54 2012 @@ -5,17 +5,18 @@ import itertools import sys import argparse +import subprocess +import shlex import polib join = os.path.join +subcall = subprocess.call -maindir = join(os.path.abspath(os.path.dirname(__file__)), os.pardir) +maindir = os.path.abspath(join(os.path.dirname(__file__), os.pardir)) txpydir = join(maindir, 'locale') localedir = join(maindir, 'locale', 'ja', 'LC_MESSAGES') -htmldir = join(maindir, 'build', 'html') -i18ndir = join(maindir, 'build', 'en') # 一つの po ファイルからなるパート SINGLE = ['about', 'bugs', 'contents', 'copyright', 'glossary', 'license'] @@ -36,29 +37,38 @@ source_lang = en ''' +def subcall(command_line): + subprocess.call(shlex.split(command_line)) + def pofilename(entry): return entry.occurrences[0][0].split('/')[-1].split('.rst')[0] -def make_html(build=False, tx=False): +def make_html(build=False, tx=False, htmldir=''): + if not htmldir: + htmldir = join(maindir, 'build', 'html') + if tx: - os.system('tx -r {0} pull'.format(txpydir)) + subcall('tx -r {0} pull -a'.format(txpydir)) for part in SINGLE: - os.system('msgfmt -o {0}/{1}.mo {0}/{1}.po'.format(localedir, part)) + subcall('msgfmt -o {0}/{1}.mo {0}/{1}.po'.format(localedir, part)) for part in MULTI: - os.system('msgcat -o {0}/{1}.po --use-first {0}/{1}/*.po'.format(localedir, part)) - os.system('msgfmt -o {0}/{1}.mo {0}/{1}.po'.format(localedir, part)) + subcall('msgcat -o {0}/{1}.po --use-first -D {0}/{1}'.format(localedir, part)) + subcall('msgfmt -o {0}/{1}.mo {0}/{1}.po'.format(localedir, part)) if build: - os.system('sphinx-build -E {0} {1}'.format(maindir, htmldir)) + subcall('sphinx-build -E {0} {1}'.format(maindir, htmldir)) + +def make_gettext(build=False, tx=False, i18ndir=''): + if not i18ndir: + i18ndir = join(maindir, 'build', 'html') -def make_gettext(build=False, tx=False): if build: - os.system('sphinx-build -b gettext -E {0} {1}'.format(maindir, i18ndir)) + subcall('sphinx-build -b gettext -E {0} {1}'.format(maindir, i18ndir)) for part in SINGLE + MULTI: - os.system('msginit -i {0}/{1}.pot -o {0}/{1}.po -l ja --no-translator'.format(i18ndir, part)) + subcall('msginit -i {0}/{1}.pot -o {0}/{1}.po -l ja --no-translator'.format(i18ndir, part)) if tx: try: @@ -91,11 +101,16 @@ if __name__ == '__main__': parser = argparse.ArgumentParser() - parser.add_argument('-w', '--work', default='html') + parser.add_argument('-w', '--work', default='html', choices=['html', 'i18n']) parser.add_argument('-b', '--build', action='store_true') parser.add_argument('-t', '--tx', action='store_true') + parser.add_argument('-o', '--outputdir', default='') args = parser.parse_args() + if args.outputdir: + absoutdir = os.path.abspath(args.outputdir) + else: + absoutdir = '' if args.work == 'html': - make_html(args.build, args.tx) + make_html(args.build, args.tx, absoutdir) elif args.work == 'i18n': - make_gettext(args.build, args.tx) + make_gettext(args.build, args.tx, absoutdir)