Skip to content

Commit 5c593de

Browse files
committed
translate sections/windows/crash-hang.html
1 parent acf75a5 commit 5c593de

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

sections/windows/crash-hang.html

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,62 @@
44
<div class="section-wrapper">
55
<h1>
66
<svg class="section-icon"><use xlink:href="assets/img/icons.svg#icon-windows"></use></svg>
7-
Handling Window Crashes and Hangs
7+
ハングとクラッシュのハンドリング
88
</h1>
9-
<h3>The <code>BrowserWindow</code> module will emit events when the renderer process crashes or hangs. You can listen for these events and give users the chance to reload, wait or close that window.</h3>
9+
<h3>
10+
<code>BrowserWindow</code>モジュールは、レンダラープロセスがクラッシュまたはハングしたときにイベントを発行します。<br>
11+
これらのイベントリスナーを使うことで、ユーザーに再読み込み、待機、またはウィンドウを閉じる選択肢が与えることができます。
12+
</h3>
1013

11-
<p>Open the <a href="http://electron.atom.io/docs/api/browser-window">full API documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> in your browser.</p>
14+
<p>ブラウザで<a href="http://electron.atom.io/docs/api/browser-window">APIドキュメント<span class="u-visible-to-screen-reader">(新しいウィンドウが開きます。)</span></a>を開きます。</p>
1215
</div>
1316
</header>
1417

1518
<div class="demo">
1619
<div class="demo-wrapper">
17-
<button id="new-window-crashes-demo-toggle" class="js-container-target demo-toggle-button">Relaunch window after the process crashes
20+
<button id="new-window-crashes-demo-toggle" class="js-container-target demo-toggle-button">プロセスがクラッシュした後にウィンドウを再起動する
1821
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
1922
</button>
2023
<div class="demo-box">
2124
<div class="demo-controls">
2225
<button class="demo-button" id="process-crash">View Demo</button>
2326
</div>
24-
<p>In this demo we create a new window (via the <code>remote</code> module) and provide a link that will force a crash using <code>process.crash()</code>.</p>
25-
<p>The window is listening for the crash event and when the event occurs it prompts the user with two options: reload or close.</p>
27+
<p>このデモでは、(<code>remote</code>モジュールを介して)新しいウィンドウを作成し、<code>process.crash()</code>を使って強制的にクラッシュさせます。</p>
28+
<p>ウィンドウのクラッシュイベントリスナーを使って、イベントが発生した時、リロードまたは閉じるという2つのオプションでプロンプ​​トを表示します。</p>
2629

27-
<h5>Renderer Process</h5>
30+
<h5>レンダラープロセス</h5>
2831
<pre><code data-path="renderer-process/windows/process-crash.js"></code></pre>
2932
</div>
3033
</div>
3134
</div>
3235

3336
<div class="demo">
3437
<div class="demo-wrapper">
35-
<button id="new-window-hangs-demo-toggle" class="js-container-target demo-toggle-button">Relaunch window after the process hangs
38+
<button id="new-window-hangs-demo-toggle" class="js-container-target demo-toggle-button">プロセスがハングした後にウィンドウを再起動する
3639
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
3740
</button>
3841
<div class="demo-box">
3942
<div class="demo-controls">
4043
<button class="demo-button" id="process-hang">View Demo</button>
4144
</div>
42-
<p>In this demo we create a new window (via the <code>remote</code> module) and provide a link that will force the process to hang using <code>process.hang()</code>.</p>
43-
<p>The window is listening for the process to become officially unresponsive (this can take up to 30 seconds). When this event occurs it prompts the user with two options: reload or close.</p>
45+
<p>このデモでは、(<code>remote</code>モジュールを介して)新しいウィンドウを作成し、<code>process.hang()</code>を使って強制的にハングさせます。</p>
46+
<p>
47+
ウィンドウは、プロセスが正式に応答しなくなるまでを待機します。(これには最大30秒かかる場合があります)<br>
48+
イベントが発生すると、リロードまたは閉じるという2つのオプションでプロンプ​​トを表示します。
49+
</p>
4450

45-
<h5>Renderer Process</h5>
51+
<h5>レンダラープロセス</h5>
4652
<pre><code data-path="renderer-process/windows/process-hang.js"></code></pre>
4753

4854
<div class="demo-protip">
4955
<h2>ProTip</h2>
50-
<strong>Wait for the process to become responsive again.</strong>
51-
<p>A third option in the case of a process that is hanging is to wait and see if the problem resolves, allowing the process to become responsive again. To do this, use the <code>BrowserWindow</code> event 'responsive' as shown below.</p>
56+
<strong>プロセスが再び応答するまで待つ</strong>
57+
<p>
58+
プロセスがハングしている場合の第3のオプションは、待機して問題が解決するかどうかを確認し、再度プロセスが応答可能になるようにすることです。<br>
59+
オプションを使うためには、以下のように<code>BrowserWindow</code>イベントの'responsive'を使用します。
60+
</p>
5261
<pre><code class="language-js">win.on('responsive', function () {
53-
// Do something when the window is responsive again
62+
// ウィンドウが再び反応したときの処理
5463
})</code></pre>
5564
</div>
5665
</div>

sections/windows/windows.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h5>レンダラープロセス</h5>
3737

3838
<div class="demo-protip">
3939
<h2>ProTip</h2>
40-
<strong>バックグラウンドタスクを実行するには、非表示のウィンドウを使用します。</strong>
40+
<strong>バックグラウンドタスクを実行するには、非表示のウィンドウを使用する</strong>
4141
<p>アプリのバックグラウンドでJavaScriptを実行する一種の新しいスレッドとして追加のレンダラープロセスを使用するために、新しいウィンドウを非表示に設定できます。<br>
4242
<code>show</code>プロパティを<code>false</code>にすることで作成できます。</p>
4343
<pre>

0 commit comments

Comments
 (0)