Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ce7b16

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent0c30b24 commit8ce7b16

File tree

10 files changed

+14889
-14569
lines changed

10 files changed

+14889
-14569
lines changed

‎c-api/object.po

Lines changed: 87 additions & 86 deletions
Large diffs are not rendered by default.

‎howto/argparse.po

Lines changed: 155 additions & 153 deletions
Large diffs are not rendered by default.

‎library/argparse.po

Lines changed: 387 additions & 374 deletions
Large diffs are not rendered by default.

‎library/enum.po

Lines changed: 223 additions & 189 deletions
Large diffs are not rendered by default.

‎library/filesys.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
# Translators:
77
# tomo, 2021
88
# Osamu NAKAMURA, 2021
9-
#qqfunc, 2024
9+
#石井明久, 2024
1010
#
1111
#,fuzzy
1212
msgid ""
1313
msgstr ""
1414
"Project-Id-Version:Python 3.13\n"
1515
"Report-Msgid-Bugs-To:\n"
16-
"POT-Creation-Date:2024-12-06 14:18+0000\n"
16+
"POT-Creation-Date:2024-12-27 14:16+0000\n"
1717
"PO-Revision-Date:2021-06-28 01:06+0000\n"
18-
"Last-Translator:qqfunc, 2024\n"
18+
"Last-Translator:石井明久, 2024\n"
1919
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
2020
"ja/)\n"
2121
"MIME-Version:1.0\n"
@@ -40,34 +40,34 @@ msgstr ""
4040
"操作する、テンポラリファイルを作成するためのモジュールです。この章の完全な一"
4141
"覧は:"
4242

43-
#:../../library/filesys.rst:29
43+
#:../../library/filesys.rst:28
4444
msgid"Module :mod:`os`"
4545
msgstr":mod:`os` モジュール"
4646

47-
#:../../library/filesys.rst:30
47+
#:../../library/filesys.rst:29
4848
msgid""
4949
"Operating system interfaces, including functions to work with files at a "
5050
"lower level than Python :term:`file objects <file object>`."
5151
msgstr""
5252
"オペレーティングシステムのインターフェース、Python の :term:`ファイルオブジェ"
5353
"クト <file object>` より低レベルでのファイル操作を含みます。"
5454

55-
#:../../library/filesys.rst:33
55+
#:../../library/filesys.rst:32
5656
msgid"Module :mod:`io`"
5757
msgstr":mod:`io` モジュール"
5858

59-
#:../../library/filesys.rst:34
59+
#:../../library/filesys.rst:33
6060
msgid""
6161
"Python's built-in I/O library, including both abstract classes and some "
6262
"concrete classes such as file I/O."
6363
msgstr""
6464
"Python 組み込みの I/O ライブラリで、抽象クラスとファイル I/O のようないくつか"
6565
"の具象クラスを含みます。"
6666

67-
#:../../library/filesys.rst:37
67+
#:../../library/filesys.rst:36
6868
msgid"Built-in function :func:`open`"
6969
msgstr":func:`open` 組み込み関数"
7070

71-
#:../../library/filesys.rst:38
71+
#:../../library/filesys.rst:37
7272
msgid"The standard way to open files for reading and writing with Python."
7373
msgstr"Python で読み書きのためにファイルを開く標準的な方法です。"

‎library/getopt.po

Lines changed: 76 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version:Python 3.13\n"
1313
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2024-12-13 14:18+0000\n"
14+
"POT-Creation-Date:2024-12-27 14:16+0000\n"
1515
"PO-Revision-Date:2021-06-28 01:06+0000\n"
1616
"Last-Translator:tomo, 2021\n"
1717
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -30,22 +30,16 @@ msgstr ""
3030
msgid"**Source code:** :source:`Lib/getopt.py`"
3131
msgstr"**ソースコード:** :source:`Lib/getopt.py`"
3232

33-
#:../../library/getopt.rst:10
33+
#:../../library/getopt.rst:12
3434
msgid""
35-
"The :mod:`getopt` module is :term:`soft deprecated` and will not be "
36-
"developed further; development will continue with the :mod:`argparse` module."
35+
"This module is considered feature complete. A more declarative and "
36+
"extensible alternative to this API is provided in the :mod:`optparse` "
37+
"module. Further functional enhancements for command line parameter "
38+
"processing are provided either as third party modules on PyPI, or else as "
39+
"features in the :mod:`argparse` module."
3740
msgstr""
3841

39-
#:../../library/getopt.rst:17
40-
msgid""
41-
"The :mod:`getopt` module is a parser for command line options whose API is "
42-
"designed to be familiar to users of the C :c:func:`!getopt` function. Users "
43-
"who are unfamiliar with the C :c:func:`!getopt` function or who would like "
44-
"to write less code and get better help and error messages should consider "
45-
"using the :mod:`argparse` module instead."
46-
msgstr""
47-
48-
#:../../library/getopt.rst:25
42+
#:../../library/getopt.rst:20
4943
msgid""
5044
"This module helps scripts to parse the command line arguments in ``sys."
5145
"argv``. It supports the same conventions as the Unix :c:func:`!getopt` "
@@ -54,11 +48,21 @@ msgid ""
5448
"be used as well via an optional third argument."
5549
msgstr""
5650

57-
#:../../library/getopt.rst:31
51+
#:../../library/getopt.rst:26
52+
msgid""
53+
"Users who are unfamiliar with the Unix :c:func:`!getopt` function should "
54+
"consider using the :mod:`argparse` module instead. Users who are familiar "
55+
"with the Unix :c:func:`!getopt` function, but would like to get equivalent "
56+
"behavior while writing less code and getting better help and error messages "
57+
"should consider using the :mod:`optparse` module. See :ref:`choosing-an-"
58+
"argument-parser` for additional details."
59+
msgstr""
60+
61+
#:../../library/getopt.rst:33
5862
msgid"This module provides two functions and an exception:"
5963
msgstr"このモジュールは2つの関数と1つの例外を提供しています:"
6064

61-
#:../../library/getopt.rst:37
65+
#:../../library/getopt.rst:39
6266
msgid""
6367
"Parses command line options and parameter list. *args* is the argument list "
6468
"to be parsed, without the leading reference to the running program. "
@@ -68,14 +72,14 @@ msgid ""
6872
"func:`!getopt` uses)."
6973
msgstr""
7074

71-
#:../../library/getopt.rst:45
75+
#:../../library/getopt.rst:47
7276
msgid""
7377
"Unlike GNU :c:func:`!getopt`, after a non-option argument, all further "
7478
"arguments are considered also non-options. This is similar to the way non-"
7579
"GNU Unix systems work."
7680
msgstr""
7781

78-
#:../../library/getopt.rst:49
82+
#:../../library/getopt.rst:51
7983
msgid""
8084
"*longopts*, if specified, must be a list of strings with the names of the "
8185
"long options which should be supported. The leading ``'--'`` characters "
@@ -97,7 +101,7 @@ msgstr ""
97101
"foo`` にマッチしますが、``--f`` では一意に決定できないので、:exc:"
98102
"`GetoptError` が送出されます。"
99103

100-
#:../../library/getopt.rst:60
104+
#:../../library/getopt.rst:62
101105
msgid""
102106
"The return value consists of two elements: the first is a list of ``(option, "
103107
"value)`` pairs; the second is the list of program arguments left after the "
@@ -118,7 +122,7 @@ msgstr ""
118122
"順に並んでいて、複数回同じオプションを指定できます。長形式と短形式のオプショ"
119123
"ンは混在できます。"
120124

121-
#:../../library/getopt.rst:73
125+
#:../../library/getopt.rst:75
122126
msgid""
123127
"This function works like :func:`getopt`, except that GNU style scanning mode "
124128
"is used by default. This means that option and non-option arguments may be "
@@ -130,14 +134,14 @@ msgstr ""
130134
"混在させることができます。:func:`getopt` 関数はオプションでない引数を見つける"
131135
"と解析を停止します。"
132136

133-
#:../../library/getopt.rst:78
137+
#:../../library/getopt.rst:80
134138
msgid""
135139
"If the first character of the option string is ``'+'``, or if the "
136140
"environment variable :envvar:`!POSIXLY_CORRECT` is set, then option "
137141
"processing stops as soon as a non-option argument is encountered."
138142
msgstr""
139143

140-
#:../../library/getopt.rst:85
144+
#:../../library/getopt.rst:87
141145
msgid""
142146
"This is raised when an unrecognized option is found in the argument list or "
143147
"when an option requiring an argument is given none. The argument to the "
@@ -148,16 +152,16 @@ msgid ""
148152
"which the exception relates, :attr:`!opt` is an empty string."
149153
msgstr""
150154

151-
#:../../library/getopt.rst:96
155+
#:../../library/getopt.rst:98
152156
msgid"Alias for :exc:`GetoptError`; for backward compatibility."
153157
msgstr""
154158
":exc:`GetoptError` へのエイリアスです。後方互換性のために残されています。"
155159

156-
#:../../library/getopt.rst:98
160+
#:../../library/getopt.rst:100
157161
msgid"An example using only Unix style options:"
158162
msgstr"Unix スタイルのオプションを使った例です:"
159163

160-
#:../../library/getopt.rst:100
164+
#:../../library/getopt.rst:102
161165
msgid""
162166
">>> import getopt\n"
163167
">>> args = '-a -b -cfoo -d bar a1 a2'.split()\n"
@@ -170,11 +174,11 @@ msgid ""
170174
"['a1', 'a2']"
171175
msgstr""
172176

173-
#:../../library/getopt.rst:112
177+
#:../../library/getopt.rst:114
174178
msgid"Using long option names is equally easy:"
175179
msgstr"長形式のオプションを使っても同様です:"
176180

177-
#:../../library/getopt.rst:114
181+
#:../../library/getopt.rst:116
178182
msgid""
179183
">>> s = '--condition=foo --testing --output-file abc.def -x a1 a2'\n"
180184
">>> args = s.split()\n"
@@ -190,11 +194,11 @@ msgid ""
190194
"['a1', 'a2']"
191195
msgstr""
192196

193-
#:../../library/getopt.rst:127
197+
#:../../library/getopt.rst:129
194198
msgid"In a script, typical usage is something like this:"
195199
msgstr""
196200

197-
#:../../library/getopt.rst:129
201+
#:../../library/getopt.rst:131
198202
msgid""
199203
"import getopt, sys\n"
200204
"\n"
@@ -220,36 +224,69 @@ msgid ""
220224
" output = a\n"
221225
" else:\n"
222226
" assert False,\"unhandled option\"\n"
223-
"# ...\n"
227+
"process(args, output=output, verbose=verbose)\n"
224228
"\n"
225229
"if __name__ ==\"__main__\":\n"
226230
" main()"
227231
msgstr""
228232

229-
#:../../library/getopt.rst:158
233+
#:../../library/getopt.rst:160
230234
msgid""
231235
"Note that an equivalent command line interface could be produced with less "
232236
"code and more informative help and error messages by using the :mod:"
233-
"`argparse` module:"
237+
"`optparse` module:"
238+
msgstr""
239+
240+
#:../../library/getopt.rst:163
241+
msgid""
242+
"import optparse\n"
243+
"\n"
244+
"if __name__ == '__main__':\n"
245+
" parser = optparse.OptionParser()\n"
246+
" parser.add_option('-o', '--output')\n"
247+
" parser.add_option('-v', dest='verbose', action='store_true')\n"
248+
" opts, args = parser.parse_args()\n"
249+
" process(args, output=opts.output, verbose=opts.verbose)"
234250
msgstr""
235251

236-
#:../../library/getopt.rst:161
252+
#:../../library/getopt.rst:174
253+
msgid""
254+
"A roughly equivalent command line interface for this case can also be "
255+
"produced by using the :mod:`argparse` module:"
256+
msgstr""
257+
258+
#:../../library/getopt.rst:177
237259
msgid""
238260
"import argparse\n"
239261
"\n"
240262
"if __name__ == '__main__':\n"
241263
" parser = argparse.ArgumentParser()\n"
242264
" parser.add_argument('-o', '--output')\n"
243265
" parser.add_argument('-v', dest='verbose', action='store_true')\n"
266+
" parser.add_argument('rest', nargs='*')\n"
244267
" args = parser.parse_args()\n"
245-
" # ... do something with args.output ...\n"
246-
" # ... do something with args.verbose .."
268+
" process(args.rest, output=args.output, verbose=args.verbose)"
247269
msgstr""
248270

249-
#:../../library/getopt.rst:175
271+
#:../../library/getopt.rst:189
272+
msgid""
273+
"See :ref:`choosing-an-argument-parser` for details on how the ``argparse`` "
274+
"version of this code differs in behaviour from the ``optparse`` (and "
275+
"``getopt``) version."
276+
msgstr""
277+
278+
#:../../library/getopt.rst:195
279+
msgid"Module :mod:`optparse`"
280+
msgstr""
281+
282+
#:../../library/getopt.rst:196
283+
msgid"Declarative command line option parsing."
284+
msgstr""
285+
286+
#:../../library/getopt.rst:198
250287
msgid"Module :mod:`argparse`"
251288
msgstr":mod:`argparse` モジュール"
252289

253-
#:../../library/getopt.rst:176
254-
msgid"Alternative command line option and argument parsing library."
255-
msgstr"別のコマンドラインオプションと引数の解析ライブラリ。"
290+
#:../../library/getopt.rst:199
291+
msgid"More opinionated command line option and argument parsing library."
292+
msgstr""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp