Uh oh!
There was an error while loading. Please reload this page.
Translate "State and Lifecycle" (state-and-lifecycle.md) - #42
Conversation
Uh oh!
There was an error while loading. Please reload this page.
lex111
left a comment
There was a problem hiding this comment.
Спасибо! Начал смотреть перевод, но при беглом осмотре увидел много отклонений от руководства по переводу, пожалуйста, ознакомтесь с ним, и скорректируйте перевод, позже будет легче снова делать ревью перевода.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@lex111 спасибо, я раньше не переводил. Насколько мешает (довольно) вольная интерпретация перевода? Например, я иногда менял местами части предложения чтобы оживить и точнее передать смысл - это допустимо? Или вы имеете в виду только употребление терминов? |
lex111
commented
Feb 10, 2019
Это в основном, да. |
agoldis
commented
Feb 10, 2019
lex111
commented
Feb 10, 2019
@agoldis там ещё проблемы со знаками пунктации, в принципе это легко поправить (заменить дефисы на тире). |
agoldis
commented
Feb 10, 2019
gaearon
commented
Feb 10, 2019
Надо еще заголовок поменять в |
lex111
commented
Feb 10, 2019
О! Может добавить соответствующий пункт-чекбокс в шаблон пулреквеста? |
agoldis
commented
Feb 10, 2019
gaearon
left a comment
There was a problem hiding this comment.
Хорошее начало, первые замечания:
- мелкие отличия от терминологии
- кавычки «»
- местами, нагромождения существительных, которые читаются сложнее оригинального текста
Давайте поправим сначала эти проблемы. Я не читал до конца, т.к. в целом проблемы похожи, но когда поправите, почитаю ещё раз заново. Спасибо!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
agoldis
commented
Feb 10, 2019
@gaearon@another-guy thanks guys for your feedback, please check out the updated version |
lex111
left a comment
There was a problem hiding this comment.
- можно перевести текст в блоках кода
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
agoldis
commented
Feb 10, 2019
lex111
commented
Feb 10, 2019
Мне кажется, лучше переводить, мы переводом единое руководство, где написано, что необязательно, но можно переводить, и поскольку на главной странице уже переведены надписи в примерах, то для согласованности предлагаю придерживаться этого варианта. |
agoldis
commented
Feb 10, 2019
Хорошо, было бы здорово прояснить в правилах этот ньюанс :) |
lex111
commented
Feb 10, 2019
Сделаем в #61 |
gaearon
left a comment
There was a problem hiding this comment.
В целом уже хорошо. Несколько замечаний, потом можно мержить. Большое спасибо;
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
agoldis
commented
Feb 11, 2019
@gaearon спасибо за комментарии! ознакомься плз с новой версией |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| 3) Как только вывод рендера `Clock` вставлен в DOM, React вызывает метод жизненного цикла `componentDidMount()`. Внутри него компонент `Clock` указывает браузеру создать таймер, который будет вызывать `tick()` раз в секунду. | ||
| 4) Every second the browser calls the `tick()` method. Inside it, the `Clock` component schedules a UI update by calling `setState()` with an object containing the current time. Thanks to the `setState()` call, React knows the state has changed, and calls the `render()` method again to learn what should be on the screen. This time, `this.state.date` in the `render()` method will be different, and so the render output will include the updated time. React updates the DOM accordingly. | ||
| 4) Таймер вызывает метод `tick()` ежесекундно. Часть метода — вызов `setState()` с объектом текущего времени — таким образом компонент `Clock` планирует обновление UI. Благодаря вызову `setState()` React знает, что состояние изменилось, и снова вызывает метод `render()`, чтобы узнать, что должно отображаться на экране. На этот раз `this.state.date` в методе `render()` будет другим, рендер компонента будет включать обновлённое время и React обновит DOM соответственно. |
There was a problem hiding this comment.
Часть метода — вызов
setState()с объектом текущего времени — таким образом компонентClockпланирует обновление UI
Непонятная структура
There was a problem hiding this comment.
рендер компонента будет включать обновлённое время и React обновит
Нужна запятая, сложное предложение
There was a problem hiding this comment.
@gaearon посмотри пожалуйста новый вариант этого блока, я решил переписать после твоего отзыва. Спасибо!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
agoldis
commented
Feb 12, 2019
gaearon
commented
Feb 12, 2019
Отлично. |
* upstream/master: (108 commits) Update nav Translation List and keys (reactjs#64) Translate "State and Lifecycle" (state-and-lifecycle.md) (reactjs#42) Add the term fallback Update getting-started.md Update getting-started.md Update TRANSLATION.md Update getting-started.md Update getting-started.md Update TRANSLATION.md Терминология: уборка Исправить Условный рендеринг в нав панели Пропущенное исправление в conditional-rendering Терминология: code splitting Терминология: helper Терминология child [component] Упорядочить глоссарий по алфавиту Больше исправлений по замечаниям касательно conditional-rendering Исправил PR-замечания про conditional-rendering.md Translate "Conditional Rendering" into Russian ...
gcor
commented
Feb 16, 2019
Правда там локальное должно быть внутренним. |
Спасибо @lex111 за https://github.com/js-ru/react-ru/blob/master/content/docs/state-and-lifecycle.md - я использовал перевод как базу и референс, но изменил стилистику и переписал некоторые фразы, руководствуясь https://github.com/reactjs/ru.reactjs.org/blob/master/TRANSLATION.md