Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate 'Home Page' #27

Merged
merged 5 commits into from
Feb 27, 2019
Merged

Conversation

jakubdrozdek
Copy link
Member

No description provided.

@jakubdrozdek jakubdrozdek added the needs review A pull request ready to be reviewed label Feb 24, 2019
@reactjs reactjs deleted a comment from netlify bot Feb 24, 2019
@reactjs reactjs deleted a comment from netlify bot Feb 24, 2019
@jakubdrozdek jakubdrozdek added this to the Core Pages milestone Feb 24, 2019
Copy link
Contributor

@g12i g12i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few suggestions

content/home/examples/a-simple-component.md Outdated Show resolved Hide resolved
order: 1
domid: timer-example
---

In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.
Poza danymi wejściowymi do komponentu (dostępnymi w zmiennej `this.props`), komponent może zarządzać swoim wewnętrznym stanem (dostępnym pod `this.state`). Przy każdej zmianie stanu komponentu następuje ponownie wywołanie metody `render()`, co skutkuje zaktualizowaniem wyrenderowanej struktury.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Poza danymi wejściowymi do komponentu (dostępnymi w zmiennej `this.props`), komponent może zarządzać swoim wewnętrznym stanem (dostępnym pod `this.state`). Przy każdej zmianie stanu komponentu następuje ponownie wywołanie metody `render()`, co skutkuje zaktualizowaniem wyrenderowanej struktury.
Poza danymi wejściowymi do komponentu (dostępnymi w zmiennej `this.props`), komponent może zarządzać swoim wewnętrznym stanem (dostępnym pod `this.state`). Przy każdej zmianie stanu komponentu, następuje ponownie wywołanie metody `render()`, co skutkuje zaktualizowaniem wyrenderowanej struktury.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moim zdaniem nie powinno być tutaj przecinka, bo nie pełni on żadnej funkcji.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

order: 2
domid: todos-example
---

Using `props` and `state`, we can put together a small Todo application. This example uses `state` to track the current list of items as well as the text that the user has entered. Although event handlers appear to be rendered inline, they will be collected and implemented using event delegation.
Przy pomocy zmiennych `props` oraz `state` możemy stworzyć małą aplikację z listą zadań. Ten przykład wykorzystuje `state` do śledzenia zmian w liście elementów oraz wartości z pola tekstowego. Mimo iż uchwyty do obsługi zdarzeń wydają się tu być renderowane wraz z komponentem, to tak naprawdę zostaną one zebrane i odpowiednio zaimplementowane przy użyciu mechanizmu obsługi zdarzeń.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just random suggestion

Suggested change
Przy pomocy zmiennych `props` oraz `state` możemy stworzyć małą aplikację z listą zadań. Ten przykład wykorzystuje `state` do śledzenia zmian w liście elementów oraz wartości z pola tekstowego. Mimo uchwyty do obsługi zdarzeń wydają się tu być renderowane wraz z komponentem, to tak naprawdę zostaną one zebrane i odpowiednio zaimplementowane przy użyciu mechanizmu obsługi zdarzeń.
Przy pomocy zmiennych `props` oraz `state` możemy stworzyć małą aplikację z listą zadań. Ten przykład wykorzystuje `state` do śledzenia zmian w liście elementów oraz wartości z pola tekstowego. Mimo, że uchwyty do obsługi zdarzeń wydają się tu być renderowane wraz z komponentem, to tak naprawdę zostaną one zebrane i odpowiednio zaimplementowane przy użyciu mechanizmu obsługi zdarzeń.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Mimo że" piszemy bez przecinka pomiędzy słowami.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
Logika komponentów pisana jest w JavaScripcie, nie w szablonach, dzięki czemu łatwiejsze staje się przekazywanie skomplikowanych struktur danych i przechowywanie stanu aplikacji poza drzewem DOM.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Logika komponentów pisana jest w JavaScripcie, nie w szablonach, dzięki czemu łatwiejsze staje się przekazywanie skomplikowanych struktur danych i przechowywanie stanu aplikacji poza drzewem DOM.
Jako, że logika komponentów pisana jest w JavaScripcie, a nie w szablonach, przekazywanie skomplikowanych struktur danych i przechowywanie stanu aplikacji poza drzewem DOM staje się łatwiejsze.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, ale znów zbędny przecinek przed "że" :-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

content/home/marketing/learn-once-write-anywhere.md Outdated Show resolved Hide resolved
src/pages/index.js Outdated Show resolved Hide resolved
src/pages/index.js Outdated Show resolved Hide resolved
src/pages/index.js Outdated Show resolved Hide resolved
src/pages/index.js Outdated Show resolved Hide resolved
src/components/TitleAndMetaTags/TitleAndMetaTags.js Outdated Show resolved Hide resolved
order: 1
domid: timer-example
---

In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.
Poza danymi wejściowymi do komponentu (dostępnymi w zmiennej `this.props`), komponent może zarządzać swoim wewnętrznym stanem (dostępnym pod `this.state`). Przy każdej zmianie stanu komponentu następuje ponownie wywołanie metody `render()`, co skutkuje zaktualizowaniem wyrenderowanej struktury.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pytanie czy powinniśmy nazywac this.props zmienną, czy może bezpieczniej obiektem?

order: 1
domid: timer-example
---

In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.
Poza danymi wejściowymi do komponentu (dostępnymi w zmiennej `this.props`), komponent może zarządzać swoim wewnętrznym stanem (dostępnym pod `this.state`). Przy każdej zmianie stanu komponentu następuje ponownie wywołanie metody `render()`, co skutkuje zaktualizowaniem wyrenderowanej struktury.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w this.props, ale pod this.state? Troche brak spójności.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Masz rację, przydałoby się zachować tu konsekwencję. "pod" to był skrót myślowy od "pod nazwą", ale to tak czy inaczej nie pasuje do tego kontekstu. Myślę, że "obiekt" lub "właściwość" będą tu lepiej pasować.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ewentualnie można pominąć to słowo przed i zostawić samo "dostępnym w this.props" i "dostępnym w this.state".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A ja nie widzę tu najmniejszego problemu. Co więcej wydaje mi się, że wersja początkowa brzmi lepiej.

Copy link
Contributor

@marcinostrouch marcinostrouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one thing, really.


**JSX is optional and not required to use React.** Try the [Babel REPL](babel://es5-syntax-example) to see the raw JavaScript code produced by the JSX compilation step.
**Używanie składni JSX nie jest wymagane w Reakcie.** W środowisku [Babel REPL](babel://es5-syntax-example) możesz podejrzeć surowy kod, powstały w wyniku kompilacji składni JSX.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proponuję nie pomijać tutaj JavaScript

Suggested change
**Używanie składni JSX nie jest wymagane w Reakcie.** W środowisku [Babel REPL](babel://es5-syntax-example) możesz podejrzeć surowy kod, powstały w wyniku kompilacji składni JSX.
**Używanie składni JSX nie jest wymagane w Reakcie.** W środowisku [Babel REPL](babel://es5-syntax-example) możesz podejrzeć surowy kod JavaScript, powstały w wyniku kompilacji składni JSX.

order: 1
domid: timer-example
---

In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.
Poza danymi wejściowymi do komponentu (dostępnymi w zmiennej `this.props`), komponent może zarządzać swoim wewnętrznym stanem (dostępnym pod `this.state`). Przy każdej zmianie stanu komponentu następuje ponownie wywołanie metody `render()`, co skutkuje zaktualizowaniem wyrenderowanej struktury.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A ja nie widzę tu najmniejszego problemu. Co więcej wydaje mi się, że wersja początkowa brzmi lepiej.

@jakubdrozdek
Copy link
Member Author

Naniosłem poprawki. Jeśli wszystko jest ok, dajcie approve. Trzeba kiedyś "odptaszkować" te rozdziały na liście ;-)

@jakubdrozdek jakubdrozdek added feedback addressed needs +1 Needs another approval before merging labels Feb 26, 2019
Copy link
Member

@cvqprs cvqprs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 👍 Gratuluje @jakubdrozdek :-)

@cvqprs cvqprs added can be merged and removed feedback addressed needs +1 Needs another approval before merging needs review A pull request ready to be reviewed labels Feb 27, 2019
@jakubdrozdek jakubdrozdek added 🌐 translated Translation is completed for this page and removed can be merged labels Feb 27, 2019
@jakubdrozdek jakubdrozdek merged commit 9dbac92 into reactjs:master Feb 27, 2019
@jakubdrozdek jakubdrozdek deleted the home-page branch February 27, 2019 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌐 translated Translation is completed for this page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants