[윈도우 크기와 스크롤] 번역 완료 #830
[윈도우 크기와 스크롤] 번역 완료 #830
Conversation
|
@Violet-Bora-Lee 리뷰 요청드립니다. |
|
모범사례 한번 정독하시고 다시 done 코멘트 남겨주세요. |
| @@ -1,50 +1,50 @@ | |||
| # Window sizes and scrolling | |||
| # 윈도우의 크기와 스크롤 | |||
Violet-Bora-Lee
Sep 3, 2020
Member
Suggested change
# 윈도우의 크기와 스크롤
# 윈도우 크기와 스크롤
아래 글 한번 확인해주세요.
https://m.blog.naver.com/ojhnews/220840570533
| # 윈도우의 크기와 스크롤 | |
| # 윈도우 크기와 스크롤 |
아래 글 한번 확인해주세요.
https://m.blog.naver.com/ojhnews/220840570533
|
|
||
| How do we find the width and height of the browser window? How do we get the full width and height of the document, including the scrolled out part? How do we scroll the page using JavaScript? | ||
| 우리는 어떻게 브라우저 윈도우의 너비와 높이를 찾을 수 있을까요? 우리는 스크롤 된 부분을 포함한 문서의 전체 너비와 높이를 어떻게 얻을 수 있을까요? 우리는 자바스크립트를 이용하여 어떻게 페이지 스크롤을 할 수 있을까요? |
Violet-Bora-Lee
Sep 3, 2020
Member
인칭 대명사 번역에 관한 사항은 이제 코멘트 안남길게요. 아래쪽에 있는 내용들을 수정부탁드립니다.
인칭 대명사 번역에 관한 사항은 이제 코멘트 안남길게요. 아래쪽에 있는 내용들을 수정부탁드립니다.
|
|
||
| For most such requests, we can use the root document element `document.documentElement`, that corresponds to the `<html>` tag. But there are additional methods and peculiarities important enough to consider. | ||
| 대부분의 경우, 우리는 대부분 `<html>` 태그에 해당하는 문서의 루트 요소인 `document.documentElement`를 사용할 수 있습니다. 그러나, 부가적인 방법과 중요하게 고려해야 할 특성도 있습니다. |
Violet-Bora-Lee
Sep 3, 2020
Member
Suggested change
대부분의 경우, 우리는 대부분 `<html>` 태그에 해당하는 문서의 루트 요소인 `document.documentElement`를 사용할 수 있습니다. 그러나, 부가적인 방법과 중요하게 고려해야 할 특성도 있습니다.
대부분의 경우 `document.documentElement`를 사용하면 `<html>` 태그에 해당하는 문서의 루트 요소에 접근할 수 있습니다. 그런데 `document.documentElement`를 사용하는것 말고도 루트 요소에 접근할 수 있는 방법이 여러가지가 있습니다. 그리고 이때 고려해야 할 특성도 있습니다.
| 대부분의 경우, 우리는 대부분 `<html>` 태그에 해당하는 문서의 루트 요소인 `document.documentElement`를 사용할 수 있습니다. 그러나, 부가적인 방법과 중요하게 고려해야 할 특성도 있습니다. | |
| 대부분의 경우 `document.documentElement`를 사용하면 `<html>` 태그에 해당하는 문서의 루트 요소에 접근할 수 있습니다. 그런데 `document.documentElement`를 사용하는것 말고도 루트 요소에 접근할 수 있는 방법이 여러가지가 있습니다. 그리고 이때 고려해야 할 특성도 있습니다. |
|
|
||
| ## Width/height of the window | ||
| ## 윈도우의 너비/높이 |
|
|
||
| To get window width and height we can use `clientWidth/clientHeight` of `document.documentElement`: | ||
| 우리는 윈도우의 너비와 높이를 구하기 위해서 `document.documentElement`의 `clientWidth/clientHeight`를 사용할 수 있습니다.: |
Violet-Bora-Lee
Sep 3, 2020
Member
쌍점 관련해서는 이제 코멘트 안남길게요.
전체적으로 반영 부탁드려요.
쌍점 관련해서는 이제 코멘트 안남길게요.
전체적으로 반영 부탁드려요.
| ````warn header="Not `window.innerWidth/Height`" | ||
| Browsers also support properties `window.innerWidth/innerHeight`. They look like what we want. So why not to use them instead? | ||
| ````warn header="`window.innerWidth/Height`은 안됩니다." | ||
| 브라우저들은 또한 `window.innerWidth/innerHeight` 속성도 제공합니다. 그것들은 우리가 원한 것처럼 보여집니다. 그러나 왜 그것들을 대신 사용하지 않을까요? |
Violet-Bora-Lee
Sep 3, 2020
Member
모범사례 확인 부탁드립니다.
Suggested change
브라우저들은 또한 `window.innerWidth/innerHeight` 속성도 제공합니다. 그것들은 우리가 원한 것처럼 보여집니다. 그러나 왜 그것들을 대신 사용하지 않을까요?
브라우저는 `clientWidth/clientHeight`말고 `window.innerWidth/innerHeight` 프로퍼티도 제공합니다. `window.innerWidth/innerHeight`만으로도 우리가 원하는 작업을 충분히 할 수 있을 것 같긴 합니다. 그런데 왜 `window.innerWidth`와 `innerHeight`를 사용하지 말라고 했을까요?
모범사례 확인 부탁드립니다.
| 브라우저들은 또한 `window.innerWidth/innerHeight` 속성도 제공합니다. 그것들은 우리가 원한 것처럼 보여집니다. 그러나 왜 그것들을 대신 사용하지 않을까요? | |
| 브라우저는 `clientWidth/clientHeight`말고 `window.innerWidth/innerHeight` 프로퍼티도 제공합니다. `window.innerWidth/innerHeight`만으로도 우리가 원하는 작업을 충분히 할 수 있을 것 같긴 합니다. 그런데 왜 `window.innerWidth`와 `innerHeight`를 사용하지 말라고 했을까요? |
| If there exists a scrollbar, and it occupies some space, `clientWidth/clientHeight` provide the width/height without it (subtract it). In other words, they return width/height of the visible part of the document, available for the content. | ||
| 만약 스크롤 바가 있고, 스크롤 바가 공간을 어느 정도 차지하는 경우, `clientWidth/clientHeight`는 스크롤 바 공간이 없는 너비/높이를 제공할 것입니다. (스크롤 바 공간을 제외합니다) 다시 말하면, 그것들은 문서에서 보이는 부분의 너비/높이를 반환하고, 콘텐츠를 위해 사용할 수 있습니다. |
| If there's a scrollbar, and it occupies some space, then these two lines show different values: | ||
| 스크롤 바가 있고, 스크롤 바가 공간을 어느 정도 차지한다면, 아래 두 줄은 다른 값을 보여줍니다: |
|
Please make the requested changes. After it, add a comment "/done". |
|
@Violet-Bora-Lee done |
|
불필요한 커밋들부터 삭제해주시면 리뷰 진행하겠습니다. |
ce1ee71
to
0908da4
|
@Violet-Bora-Lee 지웠습니다. |
|
반 정도 리뷰 마쳤는데, 아직 모범사례 숙지가 안되신 것 같아 |
|
|
||
| For most such requests, we can use the root document element `document.documentElement`, that corresponds to the `<html>` tag. But there are additional methods and peculiarities important enough to consider. | ||
| 대부분, `document.documentElement`를 사용하면 `<html>` 태그에 해당하는 문서의 루트 요소에 접근할 수 있습니다. 그리고 이 때, 중요하게 고려해야 할 특성도 있습니다. |
Violet-Bora-Lee
Sep 10, 2020
Member
the root document element는 document.documentElement를 수식하는 말인데요, 오역인것같습니다
the root document element는 document.documentElement를 수식하는 말인데요, 오역인것같습니다
Violet-Bora-Lee
Sep 10, 2020
Member
additional methods 번역 누락
additional methods 번역 누락
|
|
||
| To get window width and height we can use `clientWidth/clientHeight` of `document.documentElement`: | ||
| 윈도우 너비와 높이를 구하기 위해서 `document.documentElement`의 `clientWidth/clientHeight`를 사용할 수 있습니다. |
| If there exists a scrollbar, and it occupies some space, `clientWidth/clientHeight` provide the width/height without it (subtract it). In other words, they return width/height of the visible part of the document, available for the content. | ||
| 스크롤 바가 있고 스크롤 바가 공간을 어느 정도 차지하는 경우 `clientWidth/clientHeight`는 스크롤 바 공간이 없는 너비/높이를 제공할 것입니다. (스크롤 바 공간을 제외합니다) 다시 말하면, `clientWidth/clientHeight`는 문서에서 보이는 부분의 너비·높이를 반환하고, 콘텐츠에 사용할 수 있습니다. |
| ...And `window.innerWidth/innerHeight` include the scrollbar. | ||
| ...그리고 `window.innerWidth/innerHeight`는 스크롤 바를 포함하고 있습니다. |
Violet-Bora-Lee
Sep 10, 2020
Member
지난주에 같이 리뷰하면서 문장 맨 앞 '...'은 빼달라고 부탁드렸습니다
지난주에 같이 리뷰하면서 문장 맨 앞 '...'은 빼달라고 부탁드렸습니다
| ``` | ||
| In most cases we need the *available* window width: to draw or position something. That is: inside scrollbars if there are any. So we should use `documentElement.clientHeight/Width`. | ||
| 대부분의 경우 무언가를 그리거나 배치하기 위해 *이용할 수 있는* 창 너비값이 필요합니다. 즉, 스크롤 바가 있으면 `documentElement.clientHeight/Width`를 반드시 사용해야만 합니다. |
Violet-Bora-Lee
Sep 10, 2020
Member
대부분의 경우 무언가를 그리거나 배치하기 위해 이용할 수 있는 창 너비값이 필요합니다.
이 문장이 이해가 잘 안되네요. 누군가 같이 일하는 분께 읽어봐 달라고 해주세요.
대부분의 경우 무언가를 그리거나 배치하기 위해 이용할 수 있는 창 너비값이 필요합니다.
이 문장이 이해가 잘 안되네요. 누군가 같이 일하는 분께 읽어봐 달라고 해주세요.
|
|
||
| Theoretically, as the root document element is `document.documentElement`, and it encloses all the content, we could measure document full size as `document.documentElement.scrollWidth/scrollHeight`. | ||
| 이론적으로 문서의 루트 요소가 `document.documentElement`이고 `document.documentElement`가 모든 콘텐츠를 둘러싸므로, 문서의 전체 크기를 `document.documentElement.scrollWidth/scrollHeight`를 통해 측정할 수 있습니다. |
Violet-Bora-Lee
Sep 10, 2020
Member
Suggested change
이론적으로 문서의 루트 요소가 `document.documentElement`이고 `document.documentElement`가 모든 콘텐츠를 둘러싸므로, 문서의 전체 크기를 `document.documentElement.scrollWidth/scrollHeight`를 통해 측정할 수 있습니다.
이론적으로 문서의 루트 요소가 `document.documentElement`이고 `document.documentElement`가 모든 콘텐츠를 둘러싸므로, 문서 전체 크기는 `document.documentElement.scrollWidth`, `document.documentElement.scrollHeight`를 사용해 측정할 수 있습니다.
| 이론적으로 문서의 루트 요소가 `document.documentElement`이고 `document.documentElement`가 모든 콘텐츠를 둘러싸므로, 문서의 전체 크기를 `document.documentElement.scrollWidth/scrollHeight`를 통해 측정할 수 있습니다. | |
| 이론적으로 문서의 루트 요소가 `document.documentElement`이고 `document.documentElement`가 모든 콘텐츠를 둘러싸므로, 문서 전체 크기는 `document.documentElement.scrollWidth`, `document.documentElement.scrollHeight`를 사용해 측정할 수 있습니다. |
|
|
||
| But on that element, for the whole page, these properties do not work as intended. In Chrome/Safari/Opera if there's no scroll, then `documentElement.scrollHeight` may be even less than `documentElement.clientHeight`! Sounds like a nonsense, weird, right? | ||
| 그러나 페이지 전체로 봤을 때, `document.documentElement.scrollWidth/scrollHeight` 프로퍼티는 의도대로 동작하지 않을 수 있습니다. Chrome/Safari/Opera 브라우저에서는 스크롤이 없는 경우 `documentElement.scrollHeight`의 값은 `documentElement.clientHeight`값보다 작을 수 있습니다! 말도 안 되는 소리 같네요. 이상하죠? |
Violet-Bora-Lee
Sep 10, 2020
Member
모범사례 보시고 수정해주세요.
이 부분에 대해선 코멘트가 중복되어 더이상 달지 않겠습니다.
모범사례 보시고 수정해주세요.
이 부분에 대해선 코멘트가 중복되어 더이상 달지 않겠습니다.
|
|
||
| To reliably obtain the full document height, we should take the maximum of these properties: | ||
| 신뢰할 수 있는 문서의 전체 높이 값을 얻으려면 아래 프로퍼티 중 최댓값을 얻어와야 합니다. |
Violet-Bora-Lee
Sep 10, 2020
Member
신뢰할 수 있는 문서의 전체 높이 값 <-- 이렇게 번역하면
'신뢰할 수 있는 문서'의 전체 높이 값이 되어버리네요.
신뢰 여부와 상관 없이 정확한(신뢰할 수 잇는 ) 높이 값을 얻는게 목적이므로 수정부탁드립니다.
신뢰할 수 있는 문서의 전체 높이 값 <-- 이렇게 번역하면
'신뢰할 수 있는 문서'의 전체 높이 값이 되어버리네요.
신뢰 여부와 상관 없이 정확한(신뢰할 수 잇는 ) 높이 값을 얻는게 목적이므로 수정부탁드립니다.
| @@ -53,104 +53,104 @@ let scrollHeight = Math.max( | |||
| document.body.clientHeight, document.documentElement.clientHeight | |||
| ); | |||
| alert('Full document height, with scrolled out part: ' + scrollHeight); | |||
| alert('스크롤 아웃 부분이 포함된 전체 문서 높이: ' + scrollHeight); | |||
Violet-Bora-Lee
Sep 10, 2020
Member
스크롤 아웃에서 '아웃' 번역부탁드립니다
스크롤 아웃에서 '아웃' 번역부탁드립니다
| ``` | ||
|
|
||
| Why so? Better don't ask. These inconsistencies come from ancient times, not a "smart" logic. | ||
| 왜 그럴까요? 묻지 않는 것이 좋습니다. "똑똑한" 로직이 아닌 이 모순은 오래전부터 시작되었습니다. |
|
Please make the requested changes. After it, add a comment "/done". |
|
@Violet-Bora-Lee 수정 완료. 리뷰 부탁드립니다. |
|
/done |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Pull Request 체크리스트
TODO