8000 [skip ci] Update .po files · python/python-docs-ja@49c5bfe · GitHub
[go: up one dir, main page]

Skip to content

Commit 49c5bfe

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent bef83da commit 49c5bfe

File tree

5 files changed

+4670
-4546
lines changed

5 files changed

+4670
-4546
lines changed

howto/logging-cookbook.po

Lines changed: 114 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.7\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2019-08-08 08:00+0000\n"
14+
"POT-Creation-Date: 2019-11-19 04:08+0000\n"
1515
"PO-Revision-Date: 2019-09-01 03:37+0000\n"
1616
"Last-Translator: tomo, 2019\n"
1717
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
@@ -1752,3 +1752,116 @@ msgid ""
17521752
msgstr ""
17531753
"もちろんここで説明した手法は、例えば一時的にロギングフィルターを取り付けたりするのに一般化できます。\n"
17541754
"上のコードは Python 2 だけでなく Python 3 でも動くことに注意してください。"
1755+
1756+
#: ../../howto/logging-cookbook.rst:2592
1757+
msgid "A CLI application starter template"
1758+
msgstr ""
1759+
1760+
#: ../../howto/logging-cookbook.rst:2594
1761+
msgid "Here's an example which shows how you can:"
1762+
msgstr ""
1763+
1764+
#: ../../howto/logging-cookbook.rst:2596
1765+
msgid "Use a logging level based on command-line arguments"
1766+
msgstr ""
1767+
1768+
#: ../../howto/logging-cookbook.rst:2597
1769+
msgid ""
1770+
"Dispatch to multiple subcommands in separate files, all logging at the same "
1771+
"level in a consistent way"
1772+
msgstr ""
1773+
1774+
#: ../../howto/logging-cookbook.rst:2599
1775+
msgid "Make use of simple, minimal configuration"
1776+
msgstr ""
1777+
1778+
#: ../../howto/logging-cookbook.rst:2601
1779+
msgid ""
1780+
"Suppose we have a command-line application whose job is to stop, start or "
1781+
"restart some services. This could be organised for the purposes of "
1782+
"illustration as a file ``app.py`` that is the main script for the "
1783+
"application, with individual commands implemented in ``start.py``, "
1784+
"``stop.py`` and ``restart.py``. Suppose further that we want to control the "
1785+
"verbosity of the application via a command-line argument, defaulting to "
1786+
"``logging.INFO``. Here's one way that ``app.py`` could be written::"
1787+
msgstr ""
1788+
1789+
#: ../../howto/logging-cookbook.rst:2650
1790+
msgid ""
1791+
"And the ``start``, ``stop`` and ``restart`` commands can be implemented in "
1792+
"separate modules, like so for starting::"
1793+
msgstr ""
1794+
1795+
#: ../../howto/logging-cookbook.rst:2663
1796+
msgid "and thus for stopping::"
1797+
msgstr ""
1798+
1799+
#: ../../howto/logging-cookbook.rst:2684
1800+
msgid "and similarly for restarting::"
1801+
msgstr ""
1802+
1803+
#: ../../howto/logging-cookbook.rst:2705
1804+
msgid ""
1805+
"If we run this application with the default log level, we get output like "
1806+
"this:"
1807+
msgstr ""
1808+
1809+
#: ../../howto/logging-cookbook.rst:2718
1810+
msgid ""
1811+
"The first word is the logging level, and the second word is the module or "
1812+
"package name of the place where the event was logged."
1813+
msgstr ""
1814+
1815+
#: ../../howto/logging-cookbook.rst:2721
1816+
msgid ""
1817+
"If we change the logging level, then we can change the information sent to "
1818+
"the log. For example, if we want more information:"
1819+
msgstr ""
1820+
1821+
#: ../../howto/logging-cookbook.rst:2738
1822+
msgid "And if we want less:"
1823+
msgstr ""
1824+
1825+
#: ../../howto/logging-cookbook.rst:2746
1826+
msgid ""
1827+
"In this case, the commands don't print anything to the console, since "
1828+
"nothing at ``WARNING`` level or above is logged by them."
1829+
msgstr ""
1830+
1831+
#: ../../howto/logging-cookbook.rst:2752
1832+
msgid "A Qt GUI for logging"
1833+
msgstr ""
1834+
1835+
#: ../../howto/logging-cookbook.rst:2754
1836+
msgid ""
1837+
"A question that comes up from time to time is about how to log to a GUI "
1838+
"application. The `Qt <https://www.qt.io/>`_ framework is a popular cross-"
1839+
"platform UI framework with Python bindings using `PySide2 "
1840+
"<https://pypi.org/project/PySide2/>`_ or `PyQt5 "
1841+
"<https://pypi.org/project/PyQt5/>`_ libraries."
1842+
msgstr ""
1843+
1844+
#: ../../howto/logging-cookbook.rst:2760
1845+
msgid ""
1846+
"The following example shows how to log to a Qt GUI. This introduces a simple"
1847+
" ``QtHandler`` class which takes a callable, which should be a slot in the "
1848+
"main thread that does GUI updates. A worker thread is also created to show "
1849+
"how you can log to the GUI from both the UI itself (via a button for manual "
1850+
"logging) as well as a worker thread doing work in the background (here, just"
1851+
" logging messages at random levels with random short delays in between)."
1852+
msgstr ""
1853+
1854+
#: ../../howto/logging-cookbook.rst:2767
1855+
msgid ""
1856+
"The worker thread is implemented using Qt's ``QThread`` class rather than "
1857+
"the :mod:`threading` module, as there are circumstances where one has to use"
1858+
" ``QThread``, which offers better integration with other ``Qt`` components."
1859+
msgstr ""
1860+
1861+
#: ../../howto/logging-cookbook.rst:2771
1862+
msgid ""
1863+
"The code should work with recent releases of either ``PySide2`` or "
1864+
"``PyQt5``. You should be able to adapt the approach to earlier versions of "
1865+
"Qt. Please refer to the comments in the code snippet for more detailed "
1866+
"information."
1867+
msgstr ""

0 commit comments

Comments
 (0)
0