Skip to content

Commit 608dc35

Browse files
authored
Merge pull request #113 from reactjs/gnuns-home-page
Translate Home Page
2 parents 43593f8 + 359aae3 commit 608dc35

13 files changed

+34
-37
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ The documentation is divided into several sections with a different tone and pur
5757

5858
## Translation
5959

60-
If you are interested in translating `reactjs.org`, please see the current translation efforts at [isreacttranslatedyet.com](https://www.isreacttranslatedyet.com/).
61-
62-
63-
If your language does not have a translation and you would like to create one, please follow the instructions at [reactjs.org Translations](https://github.com/reactjs/reactjs.org-translation#translating-reactjsorg).
60+
If you are interested in translating `reactjs.org` to **pt-BR**, check the translation progress and claim a section/page to translate **[here](https://github.com/reactjs/pt-BR.reactjs.org/issues/1)**. Also, when translating any content, make sure you follow our **[Glossary](GLOSSARY.md)**.
6461

6562
## Troubleshooting
6663

content/home/examples/a-component-using-external-plugins.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class MarkdownEditor extends React.Component {
22
constructor(props) {
33
super(props);
44
this.handleChange = this.handleChange.bind(this);
5-
this.state = { value: 'Hello, **world**!' };
5+
this.state = { value: 'Olá, **mundo**!' };
66
}
77

88
handleChange(e) {
@@ -17,16 +17,16 @@ class MarkdownEditor extends React.Component {
1717
render() {
1818
return (
1919
<div className="MarkdownEditor">
20-
<h3>Input</h3>
20+
<h3>Entrada</h3>
2121
<label htmlFor="markdown-content">
22-
Enter some markdown
22+
Escreva alguma coisa com markdown
2323
</label>
2424
<textarea
2525
id="markdown-content"
2626
onChange={this.handleChange}
2727
defaultValue={this.state.value}
2828
/>
29-
<h3>Output</h3>
29+
<h3>Saída</h3>
3030
<div
3131
className="content"
3232
dangerouslySetInnerHTML={this.getRawMarkup()}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: A Component Using External Plugins
2+
title: Um Componente Usando Plugins Externos
33
order: 3
44
domid: markdown-example
55
---
66

7-
React allows you to interface with other libraries and frameworks. This example uses **remarkable**, an external Markdown library, to convert the `<textarea>`'s value in real time.
7+
O React é flexível e facilita a interface com outras bibliotecas e frameworks. Este exemplo usa **remarkable**, uma biblioteca externa de Markdown, para converter o valor de uma `<textarea>` em tempo real.

content/home/examples/a-simple-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class HelloMessage extends React.Component {
22
render() {
33
return (
44
<div>
5-
Hello {this.props.name}
5+
Olá, {this.props.name}!
66
</div>
77
);
88
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: A Simple Component
2+
title: Um Componente Simples
33
order: 0
44
domid: hello-example
55
---
66

7-
React components implement a `render()` method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by `render()` via `this.props`.
7+
Os componentes do React implementam um método `render()` que recebe os dados de entrada e retornam o que deve ser exibido. Este exemplo usa uma sintaxe parecida com XML chamada JSX. Os dados de entrada que são passados para o componente podem ser acessados no `render()` via `this.props`.
88

9-
**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.
9+
**O JSX é opcional e não é necessário para usar o React.** Teste o [Babel REPL](babel://es5-syntax-example) para ver o código JavaScript bruto produzido pela etapa de compilação do JSX.

content/home/examples/a-stateful-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Timer extends React.Component {
2121
render() {
2222
return (
2323
<div>
24-
Seconds: {this.state.seconds}
24+
Segundos: {this.state.seconds}
2525
</div>
2626
);
2727
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: A Stateful Component
2+
title: Um Componente com Estado (stateful component)
33
order: 1
44
domid: timer-example
55
---
66

7-
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()`.
7+
Além de receber dados de entrada (acessados via `this.props`), um componente pode manter dados do *state* interno (acessados via `this.state`). Quando os dados do state de um componente são alterados, o código renderizado será atualizado invocando o método `render()` novamente.

content/home/examples/an-application.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ class TodoApp extends React.Component {
99
render() {
1010
return (
1111
<div>
12-
<h3>TODO</h3>
12+
<h3>Tarefas</h3>
1313
<TodoList items={this.state.items} />
1414
<form onSubmit={this.handleSubmit}>
1515
<label htmlFor="new-todo">
16-
What needs to be done?
16+
O que precisa ser feito?
1717
</label>
1818
<input
1919
id="new-todo"
2020
onChange={this.handleChange}
2121
value={this.state.text}
2222
/>
2323
<button>
24-
Add #{this.state.items.length + 1}
24+
Adicionar #{this.state.items.length + 1}
2525
</button>
2626
</form>
2727
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: An Application
2+
title: Uma Aplicação
33
order: 2
44
domid: todos-example
55
---
66

7-
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.
7+
Usando `props` e `state`, nós podemos montar uma pequena aplicação de Lista de Tarefas. Este exemplo usa `state` para manter a lista atual de itens, bem como o texto que o usuário inseriu. Apesar de parecer que os *event handlers* são renderizados *inline*, eles serão coletados e implementados usando a delegação de eventos (*event delegation*).
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Component-Based
2+
title: Baseado em componentes
33
order: 1
44
---
55

6-
Build encapsulated components that manage their own state, then compose them to make complex UIs.
6+
Crie componentes encapsulados que gerenciam seu próprio estado e então, combine-os para criar UIs complexas.
77

8-
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.
8+
Como a lógica do componente é escrita em JavaScript e não em templates, você pode facilmente passar diversos tipos de dados ao longo da sua aplicação e ainda manter o estado fora do DOM.

content/home/marketing/declarative.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Declarative
2+
title: Declarativo
33
order: 0
44
---
55

6-
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
6+
React faz com que a criação de UIs interativas seja uma tarefa fácil. Crie views simples para cada estado na sua aplicação, e o React irá atualizar e renderizar de forma eficiente apenas os componentes necessários na medida em que os dados mudam.
77

8-
Declarative views make your code more predictable and easier to debug.
8+
Views declarativas fazem com que seu código seja mais previsível e simples de depurar.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Learn Once, Write Anywhere
2+
title: Aprenda uma vez, use em qualquer lugar
33
order: 2
44
---
55

6-
We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.
6+
Não fazemos suposições sobre as outras tecnologias da sua stack, assim você pode desenvolver novos recursos com React sem reescrever o código existente.
77

8-
React can also render on the server using Node and power mobile apps using [React Native](https://facebook.github.io/react-native/).
8+
O React também pode ser renderizado no servidor, usando Node, e ser usado para criar aplicações mobile, através do [React Native](https://facebook.github.io/react-native/).

src/pages/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Home extends Component {
5151
return (
5252
<Layout location={location}>
5353
<TitleAndMetaTags
54-
title="React &ndash; A JavaScript library for building user interfaces"
54+
title="React &ndash; Uma biblioteca JavaScript para criar interfaces do usuário"
5555
ogUrl={createOgUrl('index.html')}
5656
/>
5757
<div css={{width: '100%'}}>
@@ -134,7 +134,7 @@ class Home extends Component {
134134
fontSize: 30,
135135
},
136136
}}>
137-
A JavaScript library for building user interfaces
137+
Uma biblioteca JavaScript para criar interfaces do usuário
138138
</p>
139139
<Flex
140140
valign="center"
@@ -149,12 +149,12 @@ class Home extends Component {
149149
<ButtonLink
150150
to="/docs/getting-started.html"
151151
type="primary">
152-
Get Started
152+
Comece a Usar
153153
</ButtonLink>
154154
</CtaItem>
155155
<CtaItem>
156156
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
157-
Take the Tutorial
157+
Faça o Tutorial
158158
</ButtonLink>
159159
</CtaItem>
160160
</Flex>
@@ -286,12 +286,12 @@ class Home extends Component {
286286
<Flex valign="center">
287287
<CtaItem>
288288
<ButtonLink to="/docs/getting-started.html" type="primary">
289-
Get Started
289+
Comece a Usar
290290
</ButtonLink>
291291
</CtaItem>
292292
<CtaItem>
293293
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
294-
Take the Tutorial
294+
Faça o Tutorial
295295
</ButtonLink>
296296
</CtaItem>
297297
</Flex>

0 commit comments

Comments
 (0)