-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy path__main__.po
More file actions
60 lines (56 loc) · 2.58 KB
/
__main__.po
File metadata and controls
60 lines (56 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2021, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# tomo, 2020
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-01 16:06+0000\n"
"PO-Revision-Date: 2020-05-30 11:55+0000\n"
"Last-Translator: tomo, 2020\n"
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../library/__main__.rst:3
msgid ":mod:`__main__` --- Top-level script environment"
msgstr ":mod:`__main__` --- トップレベルのスクリプト環境"
#: ../../library/__main__.rst:10
msgid ""
"``'__main__'`` is the name of the scope in which top-level code executes. A "
"module's __name__ is set equal to ``'__main__'`` when read from standard "
"input, a script, or from an interactive prompt."
msgstr ""
"``'__main__'`` はトップレベルのコードが実行されるスコープの名前です。モジュー"
"ルが、標準入力から読み込まれたとき、スクリプトとして実行されたとき、あるいは"
"インタラクティブプロンプトのとき、__name__ には ``'__main__'`` が設定されま"
"す。"
#: ../../library/__main__.rst:14
msgid ""
"A module can discover whether or not it is running in the main scope by "
"checking its own ``__name__``, which allows a common idiom for conditionally "
"executing code in a module when it is run as a script or with ``python -m`` "
"but not when it is imported::"
msgstr ""
"モジュールは、自身の ``__name__`` をチェックすることでメインスコープで実行さ"
"れているかどうかを確認できます。これはモジュールがスクリプトとして、あるいは"
"インポートでなく ``python -m`` で起動されたときに実行するコードの条件として使"
"用できる一般的なイディオムです::"
#: ../../library/__main__.rst:23
msgid ""
"For a package, the same effect can be achieved by including a ``__main__."
"py`` module, the contents of which will be executed when the module is run "
"with ``-m``."
msgstr ""
"パッケージについては、``__main__.py`` モジュールを用意することで同じ効果を得"
"られます。``__main__.py`` にモジュールが ``-m`` オプションで呼びだされたとき"
"に実行したいコードを書くことができます。"