diff --git a/README-ko.md b/README-ko.md index 4da9eb3f3f29..5f809bbf05f9 100644 --- a/README-ko.md +++ b/README-ko.md @@ -78,5 +78,4 @@ npm install electron-prebuilt --save-dev - [`electron-jp`](https://electron-jp-slackin.herokuapp.com/) *(일본)* 커뮤니티 [awesome-electron](https://github.com/sindresorhus/awesome-electron) 프로젝트에 -커뮤니티가 운영중인 유용한 예제 어플리케이션과 도구, 리소스가 있으니 한번 참고해 보시기 -바랍니다. +커뮤니티가 운영중인 유용한 예시 어플리케이션과 도구, 리소스가 있으니 참고하기 바랍니다. diff --git a/docs-translations/ko-KR/README.md b/docs-translations/ko-KR/README.md index c0949a83966d..63c8716e4fca 100644 --- a/docs-translations/ko-KR/README.md +++ b/docs-translations/ko-KR/README.md @@ -6,10 +6,9 @@ URL에 포함되어 있습니다. 만약 그렇지 않다면, 아마 현재 보 수 있습니다. 또한 GitHub 인터페이스의 "Switch branches/tags" 드롭다운 메뉴에서도 사용 중인 Electron 버전으로 변경할 수 있습니다. -**역주:** 한국어 번역 문서는 `atom.io`에 반영되어 있지 않습니다. 따라서 번역 문서는 -GitHub 프로젝트내에서만 볼 수 있으며 `master` 브랜치의 문서는 현재 개발중인 프로젝트의 -문서입니다. 한국어 번역 문서는 현재 `upstream` 원본 문서의 변경에 따라 최대한 문서의 -버전을 맞추려고 노력하고 있지만 가끔 누락된 번역이 존재할 수 있습니다. +**역주:** 한국어 번역 문서는 `atom.io`에 반영되어 있지 않습니다. 한국어 번역 문서는 +현재 `upstream` 원본 문서의 변경에 따라 최대한 문서의 버전을 맞추려고 노력하고 있지만 +가끔 누락된 번역이 존재할 수 있습니다. ## FAQ @@ -45,7 +44,7 @@ Electron에 대해 자주 묻는 질문이 있습니다. 이슈를 생성하기 * [크롬 명령줄 스위치 지원](api/chrome-command-line-switches.md) * [환경 변수](api/environment-variables.md) -### 커스텀 DOM elements: +### 커스텀 DOM 요소: * [`File` 객체](api/file-object.md) * [`` 태그](api/web-view-tag.md) diff --git a/docs-translations/ko-KR/api/system-preferences.md b/docs-translations/ko-KR/api/system-preferences.md index 8db4cc32cefa..c5707ea7eaf1 100644 --- a/docs-translations/ko-KR/api/system-preferences.md +++ b/docs-translations/ko-KR/api/system-preferences.md @@ -59,7 +59,7 @@ OS X에선 API가 `NSUserDefaults`를 읽어들입니다. 유명한 `key`와 `ty let browserOptions = {width: 1000, height: 800}; // 플랫폼이 지원하는 경우에만 투명 윈도우를 생성. -if (process.platform !== 'win32' || app.isAeroGlassEnabled()) { +if (process.platform !== 'win32' || systemPreferences.isAeroGlassEnabled()) { browserOptions.transparent = true; browserOptions.frame = false; } diff --git a/docs-translations/ko-KR/api/web-contents.md b/docs-translations/ko-KR/api/web-contents.md index fa6b69b61bc7..3405d5f0266e 100644 --- a/docs-translations/ko-KR/api/web-contents.md +++ b/docs-translations/ko-KR/api/web-contents.md @@ -647,8 +647,9 @@ mainWindow.webContents.on('devtools-opened', function() { * `options` Object (optional) * `detach` Boolean - 새 창에서 개발자 도구를 엽니다. * `mode` String - 개발자 도구 표시 상태를 지정합니다. 옵션은 "right", "bottom", - "undocked", "detach" 중 한 가지가 될 수 있습니다. 기본값은 마지막 표시 상태를 - 사용합니다. + "undocked", "detach"가 될 수 있습니다. 기본값은 마지막 표시 상태를 + 사용합니다. `undocked` 모드에선 다시 독을 할 수 있습니다. 하지만 `detach` + 모드에선 할 수 없습니다. 개발자 도구를 엽니다. diff --git a/docs-translations/ko-KR/development/build-instructions-linux.md b/docs-translations/ko-KR/development/build-instructions-linux.md index e5712fcac99e..3cd410a4bbf5 100644 --- a/docs-translations/ko-KR/development/build-instructions-linux.md +++ b/docs-translations/ko-KR/development/build-instructions-linux.md @@ -4,6 +4,7 @@ ## 빌드전 요구사양 +* 최소한 25GB 이상의 디스크 공간과 8GB 램이 필요합니다. * Python 2.7.x. 몇몇 CentOS와 같은 배포판들은 아직도 Python 2.6.x 버전을 사용합니다. 그래서 먼저 `python -V`를 통해 버전을 확인할 필요가 있습니다. * Node.js v0.12.x. Node를 설치하는 방법은 여러 가지가 있습니다. 먼저, @@ -36,11 +37,6 @@ $ sudo yum install clang dbus-devel gtk2-devel libnotify-devel libgnome-keyring- 패키지의 이름은 대부분 위 예시와 비슷할 것입니다. 또는 소스코드를 내려받아 직접 빌드하는 방법도 있습니다. -## 가상머신을 사용하여 빌드 하는 경우 - -만약 Electron을 가상머신으로 빌드 할 계획이라면 해당 가상머신의 스토리지를 최소 25GB -이상 확보해 놓아야 합니다. - ## 코드 가져오기 ```bash @@ -75,7 +71,7 @@ $ sudo apt-get install libc6-dev-armhf-cross linux-libc-dev-armhf-cross \ $ ./script/bootstrap.py -v --target_arch=arm ``` -## 빌드 하기 +## 빌드하기 `Release` 와 `Debug` 두 타겟 모두 빌드 합니다: @@ -104,7 +100,7 @@ $ ./script/build.py -c D 빌드가 모두 끝나면 `out/D` 디렉터리에서 `electron` 디버그 바이너리를 찾을 수 있습니다. -## 정리 하기 +## 정리하기 빌드 파일들을 정리합니다: @@ -114,8 +110,6 @@ $ ./script/clean.py ## 문제 해결 -개발 종속성 라이브러리들을 제대로 설치했는지 확인하세요. - ## libtinfo.so.5 동적 링크 라이브러리를 로드하는 도중 에러가 발생할 경우 미리 빌드된 `clang`은 `libtinfo.so.5`로 링크를 시도합니다. 따라서 플랫폼에 따라 @@ -130,7 +124,7 @@ $ sudo ln -s /usr/lib/libncurses.so.5 /usr/lib/libtinfo.so.5 프로젝트 코딩 스타일을 확인하려면: ```bash -$ ./script/cpplint.py +$ npm run lint ``` 테스트를 실행하려면: @@ -138,3 +132,73 @@ $ ./script/cpplint.py ```bash $ ./script/test.py ``` + +## 고급 주제 + +기본적인 빌드 구성은 가장 주력인 Linux 배포판에 초점이 맞춰져있으며, 특정 배포판이나 +기기에 빌드할 계획이라면 다음 정보들이 도움이 될 것입니다. + +### 로컬에서 `libchromiumcontent` 빌드하기 + +미리 빌드된 `libchromiumcontent`를 사용하는 것을 피하기 위해, `bootstrap.py` +스크립트에 `--build_libchromiumcontent` 스위치를 추가할 수 있습니다: + +```bash +$ ./script/bootstrap.py -v --build_libchromiumcontent +``` + +참고로 `shared_library` 구성은 기본적으로 빌드되어있지 않으며, 다음 모드를 사용하면 +`Release` 버전의 Electron만 빌드할 수 있습니다: + +```bash +$ ./script/build.py -c R +``` + +### 다운로드된 `clang` 바이너리 대신 시스템의 `clang` 사용하기 + +기본적으로 Electron은 Chromium 프로젝트에서 제공하는 미리 빌드된 `clang` 바이너리를 +통해 빌드됩니다. 만약 어떤 이유로 시스템에 설치된 `clang`을 사용하여 빌드하고 싶다면, +`bootstrap.py`를 `--clang_dir=` 스위치와 함께 실행함으로써 해결할 수 있습니다. +빌드 스크립트를 이 스위치와 함께 실행할 때 스크립트는 `/bin/`와 같은 경로로 +`clang` 바이너리를 찾습니다. + +예를 들어 `clang`을 `/user/local/bin/clang`에 설치했다면 다음과 같습니다: + +```bash +$ ./script/bootstrap.py -v --build_libchromiumcontent --clang_dir /usr/local +$ ./script/build.py -c R +``` + +### `clang` 대신 다른 컴파일러 사용하기 + +Electron을 `g++`과 같은 다른 컴파일러로 빌드하려면, 먼저 `--disable_clang` 스위치를 +통해 `clang`을 비활성화 시켜야 하고, 필요하다면 `CC`와 `CXX` 환경 변수도 설정합니다. + +예를 들어 GCC 툴체인을 사용하여 빌드한다면 다음과 같습니다: + +```bash +$ env CC=gcc CXX=g++ ./script/bootstrap.py -v --build_libchromiumcontent --disable_clang +$ ./script/build.py -c R +``` + +### 환경 변수 + +또한 `CC`와 `CXX`와는 별개로, 빌드 구성을 변경하기 위해 다음 환경 변수들을 사용할 수 +있습니다: + +* `CPPFLAGS` +* `CPPFLAGS_host` +* `CFLAGS` +* `CFLAGS_host` +* `CXXFLAGS` +* `CXXFLAGS_host` +* `AR` +* `AR_host` +* `CC` +* `CC_host` +* `CXX` +* `CXX_host` +* `LDFLAGS` + +이 환경 변수는 `bootstrap.py` 스크립트를 실행할 때 설정되어야 하며, `build.py` +스크립트에선 작동하지 않습니다. diff --git a/docs-translations/ko-KR/development/build-instructions-osx.md b/docs-translations/ko-KR/development/build-instructions-osx.md index 1a1a13a4576c..55a88b0cefd9 100644 --- a/docs-translations/ko-KR/development/build-instructions-osx.md +++ b/docs-translations/ko-KR/development/build-instructions-osx.md @@ -29,7 +29,7 @@ $ cd electron $ ./script/bootstrap.py -v ``` -## 빌드 하기 +## 빌드하기 `Release` 와 `Debug` 두 타겟 모두 빌드 합니다: diff --git a/docs-translations/ko-KR/development/build-instructions-windows.md b/docs-translations/ko-KR/development/build-instructions-windows.md index 4d1c57a33b49..7d30635a6a04 100644 --- a/docs-translations/ko-KR/development/build-instructions-windows.md +++ b/docs-translations/ko-KR/development/build-instructions-windows.md @@ -41,7 +41,7 @@ $ cd electron $ python script\bootstrap.py -v ``` -## 빌드 하기 +## 빌드하기 `Release` 와 `Debug` 두 타겟 모두 빌드 합니다: diff --git a/docs-translations/ko-KR/tutorial/testing-on-headless-ci.md b/docs-translations/ko-KR/tutorial/testing-on-headless-ci.md index 4fec05e15056..8343777e4364 100644 --- a/docs-translations/ko-KR/tutorial/testing-on-headless-ci.md +++ b/docs-translations/ko-KR/tutorial/testing-on-headless-ci.md @@ -1,4 +1,4 @@ -# Headless CI 시스템에서 테스팅하기 (Travis, Jenkins) (Travis CI, Jenkins) +# Headless CI 시스템에서 테스팅하기 (Travis, Jenkins) Chromium을 기반으로 한 Electron은 작업을 위해 디스플레이 드라이버가 필요합니다. 만약 Chromium이 디스플레이 드라이버를 찾기 못한다면, Electron은 그대로 실행에