@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.12\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2024-03-08 14:14 +0000\n "
18
+ "POT-Creation-Date : 2024-03-15 14:13 +0000\n "
19
19
"PO-Revision-Date : 2021-06-28 00:53+0000\n "
20
20
"Last-Translator : TENMYO Masakazu, 2024\n "
21
21
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -1472,27 +1472,27 @@ msgstr ""
1472
1472
":class:`QueueListener` のサブクラスを作って、メッセージを他のキュー、例えば "
1473
1473
"ZeroMQ の 'subscribe' ソケットから取得する事もできます。サンプルです::"
1474
1474
1475
- #: ../../howto/logging-cookbook.rst:1910 ../../howto/logging-cookbook.rst:3950
1475
+ #: ../../howto/logging-cookbook.rst:1910 ../../howto/logging-cookbook.rst:3973
1476
1476
msgid "Module :mod:`logging`"
1477
1477
msgstr ":mod:`logging` モジュール"
1478
1478
1479
- #: ../../howto/logging-cookbook.rst:1910 ../../howto/logging-cookbook.rst:3950
1479
+ #: ../../howto/logging-cookbook.rst:1910 ../../howto/logging-cookbook.rst:3973
1480
1480
msgid "API reference for the logging module."
1481
1481
msgstr "logging モジュールの API リファレンス。"
1482
1482
1483
- #: ../../howto/logging-cookbook.rst:1913 ../../howto/logging-cookbook.rst:3953
1483
+ #: ../../howto/logging-cookbook.rst:1913 ../../howto/logging-cookbook.rst:3976
1484
1484
msgid "Module :mod:`logging.config`"
1485
1485
msgstr ":mod:`logging.config` モジュール"
1486
1486
1487
- #: ../../howto/logging-cookbook.rst:1913 ../../howto/logging-cookbook.rst:3953
1487
+ #: ../../howto/logging-cookbook.rst:1913 ../../howto/logging-cookbook.rst:3976
1488
1488
msgid "Configuration API for the logging module."
1489
1489
msgstr "logging モジュールの環境設定 API です。"
1490
1490
1491
- #: ../../howto/logging-cookbook.rst:1916 ../../howto/logging-cookbook.rst:3956
1491
+ #: ../../howto/logging-cookbook.rst:1916 ../../howto/logging-cookbook.rst:3979
1492
1492
msgid "Module :mod:`logging.handlers`"
1493
1493
msgstr ":mod:`logging.handlers` モジュール"
1494
1494
1495
- #: ../../howto/logging-cookbook.rst:1916 ../../howto/logging-cookbook.rst:3956
1495
+ #: ../../howto/logging-cookbook.rst:1916 ../../howto/logging-cookbook.rst:3979
1496
1496
msgid "Useful handlers included with the logging module."
1497
1497
msgstr "logging モジュールに含まれる、便利なハンドラです。"
1498
1498
@@ -2560,20 +2560,17 @@ msgstr ""
2560
2560
2561
2561
#: ../../howto/logging-cookbook.rst:3421
2562
2562
msgid ""
2563
- "The code should work with recent releases of either ``PySide2`` or "
2564
- "``PyQt5``. You should be able to adapt the approach to earlier versions of "
2565
- "Qt. Please refer to the comments in the code snippet for more detailed "
2566
- "information."
2563
+ "The code should work with recent releases of either ``PySide6``, ``PyQt6``, "
2564
+ "``PySide2`` or `` PyQt5``. You should be able to adapt the approach to "
2565
+ "earlier versions of Qt. Please refer to the comments in the code snippet for "
2566
+ "more detailed information."
2567
2567
msgstr ""
2568
- "このコードは最新の ``PySide2`` と ``PyQt5`` のどちらでも動作します。このコー"
2569
- "ドは以前のバージョンのQtにも適用できるはずです。詳細はコードスニペットのコメ"
2570
- "ントを参照してください。"
2571
2568
2572
- #: ../../howto/logging-cookbook.rst:3635
2569
+ #: ../../howto/logging-cookbook.rst:3658
2573
2570
msgid "Logging to syslog with RFC5424 support"
2574
2571
msgstr "RFC5424 をサポートする syslog へのロギング"
2575
2572
2576
- #: ../../howto/logging-cookbook.rst:3637
2573
+ #: ../../howto/logging-cookbook.rst:3660
2577
2574
msgid ""
2578
2575
"Although :rfc:`5424` dates from 2009, most syslog servers are configured by "
2579
2576
"default to use the older :rfc:`3164`, which hails from 2001. When "
@@ -2590,7 +2587,7 @@ msgstr ""
2590
2587
"に、 :class:`~logging.handlers.SysLogHandler` の機能は更新されてきませんでし"
2591
2588
"た。"
2592
2589
2593
- #: ../../howto/logging-cookbook.rst:3644
2590
+ #: ../../howto/logging-cookbook.rst:3667
2594
2591
msgid ""
2595
2592
"RFC 5424 contains some useful features such as support for structured data, "
2596
2593
"and if you need to be able to log to a syslog server with support for it, "
@@ -2600,7 +2597,7 @@ msgstr ""
2600
2597
"の機能をサポートする syslog サーバーへのロギングを可能にする必要がある場合、"
2601
2598
"以下のような派生ハンドラクラスを使うことで実現することができます::"
2602
2599
2603
- #: ../../howto/logging-cookbook.rst:3710
2600
+ #: ../../howto/logging-cookbook.rst:3733
2604
2601
msgid ""
2605
2602
"You'll need to be familiar with RFC 5424 to fully understand the above code, "
2606
2603
"and it may be that you have slightly different needs (e.g. for how you pass "
@@ -2614,11 +2611,11 @@ msgstr ""
2614
2611
"あります。上記のハンドラにより、構造化データは以下のように渡すことができるで"
2615
2612
"しょう::"
2616
2613
2617
- #: ../../howto/logging-cookbook.rst:3724
2614
+ #: ../../howto/logging-cookbook.rst:3747
2618
2615
msgid "How to treat a logger like an output stream"
2619
2616
msgstr "ロガーを出力ストリームのように取り扱う方法"
2620
2617
2621
- #: ../../howto/logging-cookbook.rst:3726
2618
+ #: ../../howto/logging-cookbook.rst:3749
2622
2619
msgid ""
2623
2620
"Sometimes, you need to interface to a third-party API which expects a file-"
2624
2621
"like object to write to, but you want to direct the API's output to a "
@@ -2630,19 +2627,19 @@ msgstr ""
2630
2627
"きあります。これは file-like な API でロガーをラップするクラスを使うことで実"
2631
2628
"現できます。以下はそのようなクラスを例解する短いスクリプトです:"
2632
2629
2633
- #: ../../howto/logging-cookbook.rst:3766
2630
+ #: ../../howto/logging-cookbook.rst:3789
2634
2631
msgid "When this script is run, it prints"
2635
2632
msgstr "このスクリプトを実行すると、次のように出力されます。"
2636
2633
2637
- #: ../../howto/logging-cookbook.rst:3773
2634
+ #: ../../howto/logging-cookbook.rst:3796
2638
2635
msgid ""
2639
2636
"You could also use ``LoggerWriter`` to redirect ``sys.stdout`` and ``sys."
2640
2637
"stderr`` by doing something like this:"
2641
2638
msgstr ""
2642
2639
"また、 ``sys.stdout`` や ``sys.stderr`` をリダイレクトするには "
2643
2640
"``LoggerWriter`` を使って以下のようにします:"
2644
2641
2645
- #: ../../howto/logging-cookbook.rst:3783
2642
+ #: ../../howto/logging-cookbook.rst:3806
2646
2643
msgid ""
2647
2644
"You should do this *after* configuring logging for your needs. In the above "
2648
2645
"example, the :func:`~logging.basicConfig` call does this (using the ``sys."
@@ -2654,7 +2651,7 @@ msgstr ""
2654
2651
"で上書きされる *前の* ``sys.stderr`` を使って) 設定を行います。そして、以下の"
2655
2652
"ような結果を得るでしょう:"
2656
2653
2657
- #: ../../howto/logging-cookbook.rst:3796
2654
+ #: ../../howto/logging-cookbook.rst:3819
2658
2655
msgid ""
2659
2656
"Of course, the examples above show output according to the format used by :"
2660
2657
"func:`~logging.basicConfig`, but you can use a different formatter when you "
@@ -2664,7 +2661,7 @@ msgstr ""
2664
2661
"とづく出力を示していますが、ロギングの設定で異なるフォーマッタを使うことがで"
2665
2662
"きます。"
2666
2663
2667
- #: ../../howto/logging-cookbook.rst:3800
2664
+ #: ../../howto/logging-cookbook.rst:3823
2668
2665
msgid ""
2669
2666
"Note that with the above scheme, you are somewhat at the mercy of buffering "
2670
2667
"and the sequence of write calls which you are intercepting. For example, "
@@ -2674,11 +2671,11 @@ msgstr ""
2674
2671
"いてはなすがままになっています。たとえば、上記の ``LoggerWriter`` の定義で、"
2675
2672
"次のようなコードの断片があったとします。"
2676
2673
2677
- #: ../../howto/logging-cookbook.rst:3809
2674
+ #: ../../howto/logging-cookbook.rst:3832
2678
2675
msgid "then running the script results in"
2679
2676
msgstr "このスクリプトを実行すると以下のような結果が得られます。"
2680
2677
2681
- #: ../../howto/logging-cookbook.rst:3827
2678
+ #: ../../howto/logging-cookbook.rst:3850
2682
2679
msgid ""
2683
2680
"As you can see, this output isn't ideal. That's because the underlying code "
2684
2681
"which writes to ``sys.stderr`` makes multiple writes, each of which results "
@@ -2694,19 +2691,19 @@ msgstr ""
2694
2691
"必要があります。そのようなわずかな改良をほどこした ``LoggerWriter`` の実装を"
2695
2692
"使ってみましょう:"
2696
2693
2697
- #: ../../howto/logging-cookbook.rst:3852
2694
+ #: ../../howto/logging-cookbook.rst:3875
2698
2695
msgid ""
2699
2696
"This just buffers up stuff until a newline is seen, and then logs complete "
2700
2697
"lines. With this approach, you get better output:"
2701
2698
msgstr ""
2702
2699
"この実装は改行があらわれるまでログをバッファリングし、行全体をログに出力する"
2703
2700
"だけです。このアプローチにより、より適切な出力が得られます:"
2704
2701
2705
- #: ../../howto/logging-cookbook.rst:3868
2702
+ #: ../../howto/logging-cookbook.rst:3891
2706
2703
msgid "Patterns to avoid"
2707
2704
msgstr "避けるべきパターン"
2708
2705
2709
- #: ../../howto/logging-cookbook.rst:3870
2706
+ #: ../../howto/logging-cookbook.rst:3893
2710
2707
msgid ""
2711
2708
"Although the preceding sections have described ways of doing things you "
2712
2709
"might need to do or deal with, it is worth mentioning some usage patterns "
@@ -2718,11 +2715,11 @@ msgstr ""
2718
2715
"れます。これは多くの場合避けるべきことです。これらの説明はどこから読んでも構"
2719
2716
"いません。"
2720
2717
2721
- #: ../../howto/logging-cookbook.rst:3876
2718
+ #: ../../howto/logging-cookbook.rst:3899
2722
2719
msgid "Opening the same log file multiple times"
2723
2720
msgstr "同じログファイルを何度も開く"
2724
2721
2725
- #: ../../howto/logging-cookbook.rst:3878
2722
+ #: ../../howto/logging-cookbook.rst:3901
2726
2723
msgid ""
2727
2724
"On Windows, you will generally not be able to open the same file multiple "
2728
2725
"times as this will lead to a \" file is in use by another process\" error. "
@@ -2734,23 +2731,23 @@ msgstr ""
2734
2731
"ではエラーがおきることなく、同じファイルを何度も開けます。これは次のように間"
2735
2732
"違って使われる可能性があります。"
2736
2733
2737
- #: ../../howto/logging-cookbook.rst:3883
2734
+ #: ../../howto/logging-cookbook.rst:3906
2738
2735
msgid ""
2739
2736
"Adding a file handler more than once which references the same file (e.g. by "
2740
2737
"a copy/paste/forget-to-change error)."
2741
2738
msgstr ""
2742
2739
"同じファイルを指すファイルハンドラを1度以上追加する(例えばコピー&ペーストし"
2743
2740
"て書き換え忘れによるエラー)。"
2744
2741
2745
- #: ../../howto/logging-cookbook.rst:3886
2742
+ #: ../../howto/logging-cookbook.rst:3909
2746
2743
msgid ""
2747
2744
"Opening two files that look different, as they have different names, but are "
2748
2745
"the same because one is a symbolic link to the other."
2749
2746
msgstr ""
2750
2747
"異なる名前を持つ、一見異なる2つのファイルを開くが、片方が他方へのシンボリック"
2751
2748
"リンクとなっている。"
2752
2749
2753
- #: ../../howto/logging-cookbook.rst:3889
2750
+ #: ../../howto/logging-cookbook.rst:3912
2754
2751
msgid ""
2755
2752
"Forking a process, following which both parent and child have a reference to "
2756
2753
"the same file. This might be through use of the :mod:`multiprocessing` "
@@ -2760,15 +2757,15 @@ msgstr ""
2760
2757
"を維持する。これは例えば、 :mod:`multiprocessing` モジュールなどを使うと発生"
2761
2758
"する可能性があります。"
2762
2759
2763
- #: ../../howto/logging-cookbook.rst:3893
2760
+ #: ../../howto/logging-cookbook.rst:3916
2764
2761
msgid ""
2765
2762
"Opening a file multiple times might *appear* to work most of the time, but "
2766
2763
"can lead to a number of problems in practice:"
2767
2764
msgstr ""
2768
2765
"ファイルを複数回開くことは、 *一見* 動作しているように見えますが、さまざまな"
2769
2766
"問題を引き起こす可能性があります:"
2770
2767
2771
- #: ../../howto/logging-cookbook.rst:3896
2768
+ #: ../../howto/logging-cookbook.rst:3919
2772
2769
msgid ""
2773
2770
"Logging output can be garbled because multiple threads or processes try to "
2774
2771
"write to the same file. Although logging guards against concurrent use of "
@@ -2782,7 +2779,7 @@ msgstr ""
2782
2779
"ラーのインスタンスに対し、2つのスレッドから同時に書き込みをした場合にはそのよ"
2783
2780
"うな保護は働きません。"
2784
2781
2785
- #: ../../howto/logging-cookbook.rst:3902
2782
+ #: ../../howto/logging-cookbook.rst:3925
2786
2783
msgid ""
2787
2784
"An attempt to delete a file (e.g. during file rotation) silently fails, "
2788
2785
"because there is another reference pointing to it. This can lead to "
@@ -2798,19 +2795,19 @@ msgstr ""
2798
2795
"ていたファイルが残っていたり、ファイルサイズにもとづくローテーションが行われ"
2799
2796
"ているにもかかわらずファイルサイズが予想外に増加したりすることもあります。"
2800
2797
2801
- #: ../../howto/logging-cookbook.rst:3909
2798
+ #: ../../howto/logging-cookbook.rst:3932
2802
2799
msgid ""
2803
2800
"Use the techniques outlined in :ref:`multiple-processes` to circumvent such "
2804
2801
"issues."
2805
2802
msgstr ""
2806
2803
"この問題を回避するには :ref:`multiple-processes` で紹介したテクニックを使用し"
2807
2804
"てください。"
2808
2805
2809
- #: ../../howto/logging-cookbook.rst:3913
2806
+ #: ../../howto/logging-cookbook.rst:3936
2810
2807
msgid "Using loggers as attributes in a class or passing them as parameters"
2811
2808
msgstr "ロガーをクラスの属性にするか、パラメータで渡す"
2812
2809
2813
- #: ../../howto/logging-cookbook.rst:3915
2810
+ #: ../../howto/logging-cookbook.rst:3938
2814
2811
msgid ""
2815
2812
"While there might be unusual cases where you'll need to do this, in general "
2816
2813
"there is no point because loggers are singletons. Code can always access a "
@@ -2828,15 +2825,15 @@ msgstr ""
2828
2825
"このパターンはクラスではなくモジュールがソフトウェア分解の単位となっているた"
2829
2826
"め、無意味です。"
2830
2827
2831
- #: ../../howto/logging-cookbook.rst:3924
2828
+ #: ../../howto/logging-cookbook.rst:3947
2832
2829
msgid ""
2833
2830
"Adding handlers other than :class:`~logging.NullHandler` to a logger in a "
2834
2831
"library"
2835
2832
msgstr ""
2836
2833
"ライブラリ内でロガーに :class:`~logging.NullHandler` 以外のハンドラーを追加す"
2837
2834
"る"
2838
2835
2839
- #: ../../howto/logging-cookbook.rst:3926
2836
+ #: ../../howto/logging-cookbook.rst:3949
2840
2837
msgid ""
2841
2838
"Configuring logging by adding handlers, formatters and filters is the "
2842
2839
"responsibility of the application developer, not the library developer. If "
@@ -2848,11 +2845,11 @@ msgstr ""
2848
2845
"イブラリのメンテナンスをしているのであれば、 :class:`~logging.NullHandler` イ"
2849
2846
"ンスタンス以外のロガーを追加してはいけない、ということを意味します。"
2850
2847
2851
- #: ../../howto/logging-cookbook.rst:3932
2848
+ #: ../../howto/logging-cookbook.rst:3955
2852
2849
msgid "Creating a lot of loggers"
2853
2850
msgstr "大量のロガーを作成する"
2854
2851
2855
- #: ../../howto/logging-cookbook.rst:3934
2852
+ #: ../../howto/logging-cookbook.rst:3957
2856
2853
msgid ""
2857
2854
"Loggers are singletons that are never freed during a script execution, and "
2858
2855
"so creating lots of loggers will use up memory which can't then be freed. "
@@ -2869,14 +2866,14 @@ msgstr ""
2869
2866
"ケーション内の説明の単位(通常はモジュールだが、場合によってはそれよりも小さ"
2870
2867
"い可能性もある)で作るように制限してください。"
2871
2868
2872
- #: ../../howto/logging-cookbook.rst:3945
2869
+ #: ../../howto/logging-cookbook.rst:3968
2873
2870
msgid "Other resources"
2874
2871
msgstr "その他のリソース"
2875
2872
2876
- #: ../../howto/logging-cookbook.rst:3958
2873
+ #: ../../howto/logging-cookbook.rst:3981
2877
2874
msgid ":ref:`Basic Tutorial <logging-basic-tutorial>`"
2878
2875
msgstr ":ref:`基本チュートリアル <logging-basic-tutorial>`"
2879
2876
2880
- #: ../../howto/logging-cookbook.rst:3960
2877
+ #: ../../howto/logging-cookbook.rst:3983
2881
2878
msgid ":ref:`Advanced Tutorial <logging-advanced-tutorial>`"
2882
2879
msgstr ":ref:`上級チュートリアル <logging-advanced-tutorial>`"
0 commit comments