From e12e119381ab1170c8394f62bb26cccce6703bf1 Mon Sep 17 00:00:00 2001
From: Plusb Preco
Date: Mon, 16 Nov 2015 12:15:21 +0900
Subject: [PATCH] Update as upstream
* Update as upstream
* Fix typos
* Improve grammar
---
docs-translations/ko-KR/README.md | 30 +++---
docs-translations/ko-KR/api/app.md | 8 +-
docs-translations/ko-KR/api/auto-updater.md | 6 +-
.../ko-KR/api/chrome-command-line-switches.md | 13 ++-
docs-translations/ko-KR/api/clipboard.md | 5 +-
.../ko-KR/api/content-tracing.md | 9 +-
docs-translations/ko-KR/api/crash-reporter.md | 8 +-
docs-translations/ko-KR/api/dialog.md | 2 +-
docs-translations/ko-KR/api/download-item.md | 101 ++++++++++++++++++
.../ko-KR/api/frameless-window.md | 6 +-
.../ko-KR/api/global-shortcut.md | 5 +-
docs-translations/ko-KR/api/ipc-main.md | 12 +--
docs-translations/ko-KR/api/menu.md | 10 +-
docs-translations/ko-KR/api/native-image.md | 33 +++---
docs-translations/ko-KR/api/power-monitor.md | 4 +-
.../ko-KR/api/power-save-blocker.md | 4 +-
docs-translations/ko-KR/api/protocol.md | 7 +-
docs-translations/ko-KR/api/remote.md | 21 +++-
docs-translations/ko-KR/api/screen.md | 7 +-
docs-translations/ko-KR/api/session.md | 6 +-
docs-translations/ko-KR/api/shell.md | 2 +-
docs-translations/ko-KR/api/synopsis.md | 59 +++++++---
docs-translations/ko-KR/api/tray.md | 25 ++---
docs-translations/ko-KR/api/web-frame.md | 16 ++-
docs-translations/ko-KR/api/web-view-tag.md | 20 ++--
.../ko-KR/tutorial/application-packaging.md | 24 ++---
.../desktop-environment-integration.md | 15 +--
.../ko-KR/tutorial/devtools-extension.md | 5 +-
.../ko-KR/tutorial/online-offline-events.md | 22 ++--
.../ko-KR/tutorial/quick-start.md | 9 +-
.../tutorial/using-pepper-flash-plugin.md | 19 +---
.../tutorial/using-selenium-and-webdriver.md | 4 +-
32 files changed, 340 insertions(+), 177 deletions(-)
create mode 100644 docs-translations/ko-KR/api/download-item.md
diff --git a/docs-translations/ko-KR/README.md b/docs-translations/ko-KR/README.md
index 73df1624..c4c77119 100644
--- a/docs-translations/ko-KR/README.md
+++ b/docs-translations/ko-KR/README.md
@@ -31,32 +31,32 @@
### ë©ì¸ íë¡ì¸ì¤ìì ì¬ì©í ì ìë 모ë:
* [app](api/app.md)
-* [auto-updater](api/auto-updater.md)
-* [browser-window (0% ë²ìë¨)](api/browser-window.md)
-* [content-tracing](api/content-tracing.md)
+* [autoUpdater](api/auto-updater.md)
+* [BrowserWindow (0% ë²ìë¨)](api/browser-window.md)
+* [contentTracing](api/content-tracing.md)
* [dialog](api/dialog.md)
-* [global-shortcut](api/global-shortcut.md)
-* [ipc-main](api/ipc-main.md)
-* [menu](api/menu.md)
-* [menu-item](api/menu-item.md)
-* [power-monitor](api/power-monitor.md)
-* [power-save-blocker](api/power-save-blocker.md)
+* [globalShortcut](api/global-shortcut.md)
+* [ipcMain](api/ipc-main.md)
+* [Menu](api/menu.md)
+* [MenuItem](api/menu-item.md)
+* [powerMonitor](api/power-monitor.md)
+* [powerSaveBlocker](api/power-save-blocker.md)
* [protocol](api/protocol.md)
* [session](api/session.md)
-* [web-contents (0% ë²ìë¨)](api/web-contents.md)
-* [tray](api/tray.md)
+* [webContents (0% ë²ìë¨)](api/web-contents.md)
+* [Tray](api/tray.md)
### ëëë¬ íë¡ì¸ì¤ìì ì¬ì©í ì ìë 모ë (ì¹ íì´ì§):
-* [ipc-renderer](api/ipc-renderer.md)
+* [ipcRenderer](api/ipc-renderer.md)
* [remote](api/remote.md)
-* [web-frame](api/web-frame.md)
+* [webFrame](api/web-frame.md)
### ë íë¡ì¸ì¤ 모ë ì¬ì©í ì ìë 모ë:
* [clipboard](api/clipboard.md)
-* [crash-reporter](api/crash-reporter.md)
-* [native-image](api/native-image.md)
+* [crashReporter](api/crash-reporter.md)
+* [nativeImage](api/native-image.md)
* [screen](api/screen.md)
* [shell](api/shell.md)
diff --git a/docs-translations/ko-KR/api/app.md b/docs-translations/ko-KR/api/app.md
index f5e8e8d9..e3764274 100644
--- a/docs-translations/ko-KR/api/app.md
+++ b/docs-translations/ko-KR/api/app.md
@@ -5,7 +5,7 @@
ë°ì ìì ë ë§ì§ë§ ìëì°ì°½ê° ì¢
ë£ëìì ë, ì´í리ì¼ì´ì
ì ì¢
ë£ìí¤ë ìì ì
ëë¤:
```javascript
-var app = require('app');
+const app = require('electron').app;
app.on('window-all-closed', function() {
app.quit();
});
@@ -240,6 +240,12 @@ GPUê° ìëíë ì¤ í¬ëìê° ì¼ì´ë¬ì ë ë°ìíë ì´ë²¤í¸ì
* `userDesktop` - íì¬ ì¬ì©ìì ë°ì¤í¸í ëë í°ë¦¬.
* `exe` - íì¬ ì¤íì¤ì¸ Electron ë°ì´ë리 íì¼.
* `module` - `libchromiumcontent` ë¼ì´ë¸ë¬ë¦¬.
+* `desktop` - ì¬ì©ìì ë°ì¤í¬í ëë í°ë¦¬.
+* `documents` - ì¬ì©ìì "ë´ ë¬¸ì" ëë í°ë¦¬.
+* `downloads` - ì¬ì©ìì ë¤ì´ë¡ë ëë í°ë¦¬.
+* `music` - ì¬ì©ìì ìì
ëë í°ë¦¬.
+* `pictures` - ì¬ì©ìì ì¬ì§ ëë í°ë¦¬.
+* `videos` - ì¬ì©ìì ëìì ëë í°ë¦¬.
### `app.setPath(name, path)`
diff --git a/docs-translations/ko-KR/api/auto-updater.md b/docs-translations/ko-KR/api/auto-updater.md
index f12d0404..1b0d9c03 100644
--- a/docs-translations/ko-KR/api/auto-updater.md
+++ b/docs-translations/ko-KR/api/auto-updater.md
@@ -62,7 +62,7 @@ Returns:
* `releaseNotes` String
* `releaseName` String
* `releaseDate` Date
-* `updateUrl` String
+* `updateURL` String
ì
ë°ì´í¸ì ë¤ì´ë¡ëê° ìë£ëìì ë ë°ìíë ì´ë²¤í¸ì
ëë¤.
@@ -70,7 +70,7 @@ Returns:
`autoUpdater` ê°ì²´ìì ì¬ì©í ì ìë ë©ìëì
ëë¤:
-### `autoUpdater.setFeedUrl(url)`
+### `autoUpdater.setFeedURL(url)`
* `url` String
@@ -78,7 +78,7 @@ Returns:
### `autoUpdater.checkForUpdates()`
-ìë²ì ìë¡ì´ ì
ë°ì´í¸ê° ìëì§ ìì²ì ë³´ë´ íì¸í©ëë¤. API를 ì¬ì©í기 ì ì `setFeedUrl`를 í¸ì¶í´ì¼ í©ëë¤.
+ìë²ì ìë¡ì´ ì
ë°ì´í¸ê° ìëì§ ìì²ì ë³´ë´ íì¸í©ëë¤. API를 ì¬ì©í기 ì ì `setFeedURL`를 í¸ì¶í´ì¼ í©ëë¤.
### `autoUpdater.quitAndInstall()`
diff --git a/docs-translations/ko-KR/api/chrome-command-line-switches.md b/docs-translations/ko-KR/api/chrome-command-line-switches.md
index aea9c49a..216d402c 100644
--- a/docs-translations/ko-KR/api/chrome-command-line-switches.md
+++ b/docs-translations/ko-KR/api/chrome-command-line-switches.md
@@ -5,7 +5,7 @@
ì´í리ì¼ì´ì
ë´ë¶ìì ì¤ìì¹ë¤ì ì¶ê°í ì ììµëë¤:
```javascript
-var app = require('app');
+const app = require('electron').app;
app.commandLine.appendSwitch('remote-debugging-port', '8315');
app.commandLine.appendSwitch('host-rules', 'MAP * 127.0.0.1');
@@ -28,7 +28,16 @@ HTTP ìì² ìºì를 ë¹íì±í í©ëë¤.
## --remote-debugging-port=`port`
-ì§ì í `port`ì HTTP기ë°ì ë¦¬ëª¨í¸ ëë²ê±°ë¥¼ íì±í ìíµëë¤. (ê°ë°ì ì½ì)
+ì§ì í `port`ì HTTP 기ë°ì ë¦¬ëª¨í¸ ëë²ê±°ë¥¼ íì±í ìíµëë¤. (ê°ë°ì ì½ì)
+
+## --js-flags=`flags`
+
+JS ìì§ì ì§ì í íë그를 ì ë¬í©ëë¤.
+`flags`를 ë©ì¸ íë¡ì¸ì¤ìì íì±ííê³ ì íë¤ë©´, Electronì´ ììë기 ì ì ì¤ìì¹ë¥¼ ì ë¬í´ì¼ í©ëë¤.
+
+```bash
+$ electron --js-flags="--harmony_proxies --harmony_collections" your-app
+```
## --proxy-server=`address:port`
diff --git a/docs-translations/ko-KR/api/clipboard.md b/docs-translations/ko-KR/api/clipboard.md
index 08007827..01f19458 100644
--- a/docs-translations/ko-KR/api/clipboard.md
+++ b/docs-translations/ko-KR/api/clipboard.md
@@ -3,14 +3,13 @@
`clipboard` 모ëì ë³µì¬/ë¶ì¬ë£ê¸° ìì
ì ìííë ë°©ë²ì ì ê³µí©ëë¤. ë¤ì ìì ë í´ë¦½ë³´ëì 문ìì´ì ìëë¤:
```javascript
-var clipboard = require('clipboard');
+const clipboard = require('electron').clipboard;
clipboard.writeText('Example String');
```
X Window ìì¤í
ìì selection í´ë¦½ë³´ëë ì¡´ì¬í©ëë¤. ì´ë¥¼ ì¬ì©íë ¤ë©´ ì¸ì ë¤ì `selection` 문ìì´ì ê°ì´ ì§ì í´ì£¼ì´ì¼ í©ëë¤:
```javascript
-var clipboard = require('clipboard');
clipboard.writeText('Example String', 'selection');
console.log(clipboard.readText('selection'));
```
@@ -78,7 +77,6 @@ console.log(clipboard.readText('selection'));
í´ë¦½ë³´ëê° ì§ì í `data`ì íìì ì§ìíëì§ íì¸í©ëë¤.
```javascript
-var clipboard = require('clipboard');
console.log(clipboard.has('selection
'));
```
@@ -98,7 +96,6 @@ console.log(clipboard.has('selection
'));
* `type` String (optional)
```javascript
-var clipboard = require('clipboard');
clipboard.write({text: 'test', html: "test"});
```
diff --git a/docs-translations/ko-KR/api/content-tracing.md b/docs-translations/ko-KR/api/content-tracing.md
index 08221fbc..f5f8b03d 100644
--- a/docs-translations/ko-KR/api/content-tracing.md
+++ b/docs-translations/ko-KR/api/content-tracing.md
@@ -4,9 +4,14 @@
ì´ ëª¨ëì ì¹ ì¸í°íì´ì¤ë¥¼ í¬í¨íê³ ìì§ ìì¼ë©° í¬ë¡¬ ë¸ë¼ì°ì ìì `chrome://tracing/` íì´ì§ë¥¼ ì´ì´ ìì±ë íì¼ì ë¡ëíë©´ 결과를 ë³¼ ì ììµëë¤.
```javascript
-var contentTracing = require('content-tracing');
+const contentTracing = require('electron').contentTracing;
-contentTracing.startRecording('*', contentTracing.DEFAULT_OPTIONS, function() {
+const options = {
+ categoryFilter: '*',
+ traceOptions: 'record-until-full,enable-sampling'
+};
+
+contentTracing.startRecording(options, function() {
console.log('Tracing started');
setTimeout(function() {
diff --git a/docs-translations/ko-KR/api/crash-reporter.md b/docs-translations/ko-KR/api/crash-reporter.md
index 88cd3b82..a5d29551 100644
--- a/docs-translations/ko-KR/api/crash-reporter.md
+++ b/docs-translations/ko-KR/api/crash-reporter.md
@@ -5,12 +5,12 @@
ë¤ì ìì ë ì격 ìë²ì ì´í리ì¼ì´ì
í¬ëì ì 보를 ìëì¼ë¡ ë³´ê³ íë ìì ì
ëë¤:
```javascript
-var crashReporter = require('crash-reporter');
+const crashReporter = require('electron').crashReporter;
crashReporter.start({
productName: 'YourName',
companyName: 'YourCompany',
- submitUrl: 'https://your-domain.com/url-to-submit',
+ submitURL: 'https://your-domain.com/url-to-submit',
autoSubmit: true
});
```
@@ -25,7 +25,7 @@ crashReporter.start({
* `productName` String, 기본ê°: Electron
* `companyName` String, 기본ê°: GitHub, Inc
-* `submitUrl` String, 기본ê°: http://54.249.141.255:1127/post
+* `submitURL` String, 기본ê°: http://54.249.141.255:1127/post
* í¬ëì 리í¬í¸ë POST ë°©ìì¼ë¡ ì´ URLë¡ ì ì¡ë©ëë¤.
* `autoSubmit` Boolean, 기본ê°: true
* trueë¡ ì§ì í ê²½ì° ì ì ì ì¹ì¸ ìì´ ìëì¼ë¡ ì¤ë¥ë¥¼ ë³´ê³ í©ëë¤.
@@ -52,7 +52,7 @@ crashReporter.start({
## crash-reporter ì
ë¡ë íì
-Crash Reporterë ë¤ìê³¼ ê°ì ë°ì´í°ë¥¼ `submitUrl`ì `POST` ë°©ìì¼ë¡ ì ì¡í©ëë¤:
+Crash Reporterë ë¤ìê³¼ ê°ì ë°ì´í°ë¥¼ `submitURL`ì `POST` ë°©ìì¼ë¡ ì ì¡í©ëë¤:
* `ver` String - Electronì ë²ì
* `platform` String - ìì 'win32'
diff --git a/docs-translations/ko-KR/api/dialog.md b/docs-translations/ko-KR/api/dialog.md
index 08530c05..e7e81240 100644
--- a/docs-translations/ko-KR/api/dialog.md
+++ b/docs-translations/ko-KR/api/dialog.md
@@ -7,7 +7,7 @@
```javascript
var win = ...; // ëí ìì를 ì¬ì©í BrowserWindow ê°ì²´
-var dialog = require('dialog');
+const dialog = require('electron').dialog;
console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', 'multiSelections' ]}));
```
diff --git a/docs-translations/ko-KR/api/download-item.md b/docs-translations/ko-KR/api/download-item.md
new file mode 100644
index 00000000..756353b8
--- /dev/null
+++ b/docs-translations/ko-KR/api/download-item.md
@@ -0,0 +1,101 @@
+# DownloadItem
+
+`DownloadItem` is an EventEmitter represents a download item in Electron. It
+is used in `will-download` event of `Session` module, and allows users to
+control the download item.
+
+```javascript
+// In the main process.
+win.webContents.session.on('will-download', function(event, item, webContents) {
+ // Set the save path, making Electron not to prompt a save dialog.
+ item.setSavePath('/tmp/save.pdf');
+ console.log(item.getMimeType());
+ console.log(item.getFilename());
+ console.log(item.getTotalBytes());
+ item.on('updated', function() {
+ console.log('Received bytes: ' + item.getReceivedBytes());
+ });
+ item.on('done', function(e, state) {
+ if (state == "completed") {
+ console.log("Download successfully");
+ } else {
+ console.log("Download is cancelled or interrupted that can't be resumed");
+ }
+ });
+```
+
+## Events
+
+### Event: 'updated'
+
+Emits when the `downloadItem` gets updated.
+
+### Event: 'done'
+
+* `event` Event
+* `state` String
+ * `completed` - The download completed successfully.
+ * `cancelled` - The download has been cancelled.
+ * `interrupted` - An error broke the connection with the file server.
+
+Emits when the download is in a terminal state. This includes a completed
+download, a cancelled download(via `downloadItem.cancel()`), and interrupted
+download that can't be resumed.
+
+## Methods
+
+The `downloadItem` object has the following methods:
+
+### `downloadItem.setSavePath(path)`
+
+* `path` String - Set the save file path of the download item.
+
+The API is only available in session's `will-download` callback function.
+If user doesn't set the save path via the API, Electron will use the original
+routine to determine the save path(Usually prompts a save dialog).
+
+### `downloadItem.pause()`
+
+Pauses the download.
+
+### `downloadItem.resume()`
+
+Resumes the download that has been paused.
+
+### `downloadItem.cancel()`
+
+Cancels the download operation.
+
+### `downloadItem.getURL()`
+
+Returns a `String` represents the origin url where the item is downloaded from.
+
+### `downloadItem.getMimeType()`
+
+Returns a `String` represents the mime type.
+
+### `downloadItem.hasUserGesture()`
+
+Returns a `Boolean` indicates whether the download has user gesture.
+
+### `downloadItem.getFilename()`
+
+Returns a `String` represents the file name of the download item.
+
+**Note:** The file name is not always the same as the actual one saved in local
+disk. If user changes the file name in a prompted download saving dialog, the
+actual name of saved file will be different.
+
+### `downloadItem.getTotalBytes()`
+
+Returns a `Integer` represents the total size in bytes of the download item.
+If the size is unknown, it returns 0.
+
+### `downloadItem.getReceivedBytes()`
+
+Returns a `Integer` represents the received bytes of the download item.
+
+### `downloadItem.getContentDisposition()`
+
+Returns a `String` represents the Content-Disposition field from the response
+header.
diff --git a/docs-translations/ko-KR/api/frameless-window.md b/docs-translations/ko-KR/api/frameless-window.md
index 28662c31..decc0217 100644
--- a/docs-translations/ko-KR/api/frameless-window.md
+++ b/docs-translations/ko-KR/api/frameless-window.md
@@ -9,7 +9,7 @@ Frameless Windowë [í
ë리](https://developer.mozilla.org/en-US/docs/Glossar
Frameless Window를 ë§ëë ¤ë©´ [BrowserWindow](browser-window.md) ê°ì²´ì `options`ìì `frame` ìµì
ì `false`ë¡ ì§ì íë©´ ë©ëë¤:
```javascript
-var BrowserWindow = require('browser-window');
+const BrowserWindow = require('electron').BrowserWindow;
var win = new BrowserWindow({ width: 800, height: 600, frame: false });
```
@@ -20,8 +20,8 @@ OS X 10.10 Yosemite ì´íì ìµì ë²ì ë¶í°ë í
ëë¦¬ê° ìë ì°½ì
ìµì
ì íµí´ ì ëª©ë§ ì¨ê¸°ê³ ì°½ êµ¬ì± ìì("íí ì í¸ë±ì¼ë¡ ìê³ ìë")ì 기ë¥ê³¼ ì°½ í¬ê¸°ë¥¼ ê·¸ëë¡ ì ì§í ì ììµëë¤:
```javascript
-var BrowserWindow = require('browser-window');
-var win = new BrowserWindow({ width: 800, height: 600, 'title-bar-style': 'hidden' });
+var win = new BrowserWindow({ 'title-bar-style': 'hidden' });
+```
## í¬ëª
í ì°½ ë§ë¤ê¸°
diff --git a/docs-translations/ko-KR/api/global-shortcut.md b/docs-translations/ko-KR/api/global-shortcut.md
index f000a3bd..2120f73c 100644
--- a/docs-translations/ko-KR/api/global-shortcut.md
+++ b/docs-translations/ko-KR/api/global-shortcut.md
@@ -7,8 +7,9 @@
ì´ ëª¨ëì `app` 모ëì `ready` ì´ë²¤í¸ ì´ì ì ì¬ì©í ì ììµëë¤.
```javascript
-var app = require('app');
-var globalShortcut = require('global-shortcut');
+const electron = require('electron');
+const app = electron.app;
+const globalShortcut = electron.globalShortcut;
app.on('ready', function() {
// 'ctrl+x' ë¨ì¶í¤ë¥¼ 리ì¤ëì ë±ë¡í©ëë¤.
diff --git a/docs-translations/ko-KR/api/ipc-main.md b/docs-translations/ko-KR/api/ipc-main.md
index cecbf980..fae8aa4d 100644
--- a/docs-translations/ko-KR/api/ipc-main.md
+++ b/docs-translations/ko-KR/api/ipc-main.md
@@ -16,25 +16,25 @@
```javascript
// ë©ì¸ íë¡ì¸ì¤
-var ipc = require('ipc');
+const ipcMain = require('electron').ipcMain;
ipc.on('asynchronous-message', function(event, arg) {
- console.log(arg); // prints "ping"
+ console.log(arg); // "ping" ì¶ë ¥
event.sender.send('asynchronous-reply', 'pong');
});
ipc.on('synchronous-message', function(event, arg) {
- console.log(arg); // prints "ping"
+ console.log(arg); // "ping" ì¶ë ¥
event.returnValue = 'pong';
});
```
```javascript
// ëëë¬ íë¡ì¸ì¤ (ì¹ íì´ì§)
-var ipc = require('ipc');
-console.log(ipc.sendSync('synchronous-message', 'ping')); // prints "pong"
+const ipcRenderer = require('electron').ipcRenderer;
+console.log(ipc.sendSync('synchronous-message', 'ping')); // "pong" ì¶ë ¥
ipc.on('asynchronous-reply', function(arg) {
- console.log(arg); // prints "pong"
+ console.log(arg); // "pong" ì¶ë ¥
});
ipc.send('asynchronous-message', 'ping');
```
diff --git a/docs-translations/ko-KR/api/menu.md b/docs-translations/ko-KR/api/menu.md
index 56b7f4a1..d55fa807 100644
--- a/docs-translations/ko-KR/api/menu.md
+++ b/docs-translations/ko-KR/api/menu.md
@@ -11,9 +11,9 @@
```html
-
+
+