The Wayback Machine - https://web.archive.org/web/20201025231901/https://github.com/angular/angular-pt/pull/34
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(directives): Directives to PT-BR #34

Open
wants to merge 1 commit into
base: master
from

Conversation

@willmendesneto
Copy link

@willmendesneto willmendesneto commented Aug 1, 2016

Adding a translation for Directive content

Closes #14

@googlebot googlebot added the cla: yes label Aug 1, 2016
:marked
Two *other* kinds of directives exist: _structural_ and _attribute_ directives.

Dois *outros* tipos de directivas são: _structurais_ e _attributos_.

This comment has been minimized.

@brunoravanhani

brunoravanhani Aug 3, 2016

Não seria: estruturais e atributos

This comment has been minimized.

@willmendesneto

willmendesneto Aug 3, 2016
Author

Boa sacada. Feito.

A diretiva `ngModel`, que implementa two-way data binding, é
  um exemplo de uma directiva no formato de um atributo. `ngModel` modifica o comportamento de
  um elemento existente (normalmente um elemento `<input>`)
  definindo sua propriedade valor de exibição e responder a mudar os acontecimentos.

This comment has been minimized.

@brunoravanhani

brunoravanhani Aug 3, 2016

Acho que ficaria melhor se manter o 'value' e tirar o exibição. O 'responder' ficou estranho ali.
Seria tipo isso: definindo sua propriedade value e respondendo à eventos

This comment has been minimized.

@willmendesneto

willmendesneto Aug 3, 2016
Author

Realmente a frase não passou a idéia, mas o value neste caso não faz sentido também, pois é referente a valor, não a algum nome de propriedade.

Algumas opções que poderiam ser usadas:

  • definindo o valor da propriedade e respondendo à eventos;
  • definindo sua propriedade valor e respondendo à eventos;

Sugestões?

This comment has been minimized.

@willmendesneto

willmendesneto Aug 7, 2016
Author

Alterando o trecho para a primeira versão das sugestões.

@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch from 89635f3 to 9026446 Aug 3, 2016
figure
img(src="/resources/images/devguide/architecture/directive.png" alt="Parent child" style="float:left; width:150px; margin-left:-40px;margin-right:10px" )
:marked
Angular templates are *dynamic*. When Angular renders them, it transforms the DOM
according to the instructions given by **directives**.

Templates no Angular são *dinâmicos*. Quando o Angular renderiza, ele transforma o DOM

This comment has been minimized.

@cironunes

cironunes Aug 4, 2016
Member

Quando o Angular os renderiza, ele transforma o DOM...

This comment has been minimized.

figure
img(src="/resources/images/devguide/architecture/directive.png" alt="Parent child" style="float:left; width:150px; margin-left:-40px;margin-right:10px" )
:marked
Angular templates are *dynamic*. When Angular renders them, it transforms the DOM
according to the instructions given by **directives**.

Templates no Angular são *dinâmicos*. Quando o Angular renderiza, ele transforma o DOM
de acordo com as instruções passadas para as **diretivas**.

This comment has been minimized.

@cironunes

cironunes Aug 4, 2016
Member

intruções passadas pelas diretivas

This comment has been minimized.

A directive is a class with directive metadata. In !{_Lang} we apply the `@Directive` !{_decorator}
to attach metadata to the class.

Uma diretiva é uma classe com metadados de uma diretiva. No !{_Lang} nós aplicamos o !{_decorator} `@Directive`
para vincular os metadados para a classe.

This comment has been minimized.

@cironunes

cironunes Aug 4, 2016
Member

"vincular os metadados a classe.""

O para não é necessário

This comment has been minimized.

@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch from 9026446 to 214eb75 Aug 7, 2016
@willmendesneto
Copy link
Author

@willmendesneto willmendesneto commented Aug 7, 2016

@cironunes @brunoravanhani Poderiam revisar novamente, por favor?

@rmdias
Copy link

@rmdias rmdias commented Aug 11, 2016

figure
img(src="/resources/images/devguide/architecture/directive.png" alt="Parent child" style="float:left; width:150px; margin-left:-40px;margin-right:10px" )
:marked
Angular templates are *dynamic*. When Angular renders them, it transforms the DOM
according to the instructions given by **directives**.

Templates no Angular são *dinâmicos*. Quando o Angular os renderiza, ele transforma o DOM
de acordo com as instruções passadas pelas as **diretivas**.

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

"passadas pelas diretivas"

This comment has been minimized.

@willmendesneto

willmendesneto Aug 15, 2016
Author

Feito. Boa sacada.

A directive is a class with directive metadata. In !{_Lang} we apply the `@Directive` !{_decorator}
to attach metadata to the class.

Uma diretiva é uma classe com metadados de uma diretiva. No !{_Lang} nós aplicamos o !{_decorator} `@Directive`
vincular os metadados para a classe.

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

no final da frase: "para vincular os metadados a classe"

This comment has been minimized.

<br clear="all">
:marked
We already met one form of directive: the component. A component is a *directive-with-a-template*;
a `@Component` !{_decorator} is actually a `@Directive` !{_decorator} extended with template-oriented features.

Nós já conhecemos um dos formatos da diretiva: componentes. Um componente é uma *diretiva-com-template*;
Um !{_decorator} `@Component` é atualmente o !{_decorator} da `@Directive` estendida com as funcionalidades orientadas a template.

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

"O decorator @Component na verdade é uma extensão do decorator '@Direective' com funcionalidades orientadas a templates."

@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch from 214eb75 to 94faf02 Aug 15, 2016
.l-sub-section
:marked
While **a component is technically a directive**,
components are so distinctive and central to Angular applications that we chose
to separate components from directives in this architectural overview.

Enquanto **um componente é tecnicamente uma diretiva**,

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

Mesmo que tecnicamente um componente é uma diretiva...

This comment has been minimized.

.l-sub-section
:marked
While **a component is technically a directive**,
components are so distinctive and central to Angular applications that we chose
to separate components from directives in this architectural overview.

Enquanto **um componente é tecnicamente uma diretiva**,
componentes são tão característicos e fundamentais para aplicações angulares que escolhemos

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

Aplicações angulares?

This comment has been minimized.

@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch from 94faf02 to 92602aa Aug 15, 2016
:marked
Two *other* kinds of directives exist: _structural_ and _attribute_ directives.

Dois *outros* tipos de directivas são: _estruturais_ e _atributos_.

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

"de atributo"

This comment has been minimized.

@willmendesneto

willmendesneto Aug 15, 2016
Author

Verdade. Neste caso faz todo o sentido o "de". feito

They tend to appear within an element tag as attributes do,
sometimes by name but more often as the target of an assignment or a binding.

Eles tendem a aparecer em um elemento como atributos HTML são,

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

Elas tendem a aparecer em um elemento assim como atributos HTML

This comment has been minimized.

@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch 2 times, most recently from 651ff8d to 0eb2d9c Aug 15, 2016
Our [example](#templates) template uses two built-in structural directives:

Nosso [template exemplo](#templates) usa duas diretivas contruídas usando esta estrutura:

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

"Nosso template de exemplo usa duas diretivas estruturais built-in."

Acredito que a melhor traducao para "built-in" eh deixar em ingles. 😄

block dart-bool
//- N/A
:marked
**Attribute** directives alter the appearance or behavior of an existing element.
In templates they look like regular HTML attributes, hence the name.

Diretivas no formato de **atributos** alteram a aparência ou o comportamento de um elemento existente.
Em templates eles se parecem com os atributos HTML padrão, por isso este nome.

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

Em templates elas se parecem com atributos HTML (sem o "os")

This comment has been minimized.

@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch from 0eb2d9c to 02c0114 Aug 15, 2016
The `ngModel` directive, which implements two-way data binding, is
an example of an attribute directive. `ngModel` modifies the behavior of
an existing element (typically an `<input>`)
by setting its display value property and responding to change events.

A diretiva `ngModel`, que implementa two-way data binding, é
  um exemplo de uma directiva no formato de um atributo. `ngModel` modifica o comportamento de

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

exemplo de diretiva de atributo

This comment has been minimized.

@willmendesneto

willmendesneto Aug 15, 2016
Author

Neste caso o formato atual passa mais informação e clareza quanto ao conteúdo (principalmente pensando em pessoas que não conhecem sobre o Angular).

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

directiva => diretiva
diretiva no formato de um atributo => diretiva no formato de atributo HTML => diretiva de atributo

Eu mudaria para uma das sugestões acima.

This comment has been minimized.

@willmendesneto

willmendesneto Aug 15, 2016
Author

Alterado para diretiva no formato de atributo HTML


A diretiva `ngModel`, que implementa two-way data binding, é
  um exemplo de uma directiva no formato de um atributo. `ngModel` modifica o comportamento de
  um elemento existente (normalmente um elemento `<input>`)

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

normalmente um <input>

This comment has been minimized.

@@ -412,10 +446,19 @@ block dart-bool
or modify aspects of DOM elements and components
(for example, [ngStyle](template-syntax.html#ngStyle) and [ngClass](template-syntax.html#ngClass)).

Angular possui outras directivas que podem alterar a estrutura de layout prontas para o uso

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

O Angular possui..

This comment has been minimized.

Of course, we can also write our own directives. Components such as
`HeroListComponent` are one kind of custom directive.
<!-- PENDING: link to where to learn more about other kinds! -->

Claro, também podemos escrever nossas próprias directivas. Componentes, como

This comment has been minimized.

@cironunes

cironunes Aug 15, 2016
Member

É claro que nós também podemos escrever nossas próprias diretivas. Componentes, como HeroListComponent são um tipo de diretiva personalizada.

This comment has been minimized.

@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch from 02c0114 to cc453b0 Aug 15, 2016
Adding a translation for Directive content

Closes #14
@willmendesneto willmendesneto force-pushed the willmendesneto:patch-2 branch from cc453b0 to c70bd40 Aug 15, 2016
@cironunes
Copy link
Member

@cironunes cironunes commented Aug 15, 2016

bom trabalho!

@eluizbr
Copy link

@eluizbr eluizbr commented Aug 16, 2016

Onde consigo acesso ao que já foi traduzido para ajudar na revisão ?

@cironunes
Copy link
Member

@cironunes cironunes commented Aug 16, 2016

Depois de fazer o rebase com os docs atuais tivemos alguns conflitos. Vc pode resolve-los @willmendesneto?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.
HTTPS · web.archive.org
← Home