Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

[pt_PT] Translation #176

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 27 additions & 25 deletions content/pt_PT/es6.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
# ES6 on io.js
# ES6 no io.js

io.js is built against modern versions of [V8](https://code.google.com/p/v8/). By keeping up-to-date with the latest releases of this engine we ensure new features from the [JavaScript ECMA-262 specification](http://www.ecma-international.org/publications/standards/Ecma-262.htm) are brought to io.js developers in a timely manner, as well as continued performance and stability improvements.
O io.js é compilado com versões modernas do [V8](https://code.google.com/p/v8/). Mantendo-nos atualizados com a última versão deste motor, garantimos que as novas funcionalidades da [especificação JavaScript ECMA-262](http://www.ecma-international.org/publications/standards/Ecma-262.htm) são disponibilizadas rapidamente aos programadores io.js, bem como as melhorias de performance e estabilidade.

Version 1.2.0 of io.js ships with V8 4.1.0.14, which includes ES6 features well beyond version 3.26.33 that will be shipped with joyent/node@0.12.x.
A versão 1.2.0 do io.js vem com o V8 4.1.0.14 que inclui funcionalidades ES6 muito além da versão 3.26.33 presente no joyent/node@0.12.x.

## No more --harmony flag
## Chega de --harmony flag

On joyent/node@0.12.x (V8 3.26), the `--harmony` runtime flag enabled all **completed**, **staged** and **in progress** ES6 features together, in bulk (with the exception of nonstandard/non-harmonious semantics for `typeof` which were hidden under `--harmony-typeof`). This meant that some really buggy or even broken features like [proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) were just as readily available for developers as [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*), which had very little or even no known-issues. As such, it was best practice to either enable only certain features by using specific runtime harmony feature flags (e.g. `--harmony-generators`), or simply enable all of them and then use a restricted subset.
No joyent/node@0.12.x (V8 3.26), a flag de runtime `--harmony` ativava todas as funcionalidades **entregues**, **em teste**, e **em desenvolvimento** do ES6, em simultâneo e de uma só vez (com a exceção da não-padrão/não-harmoniosa semântica para `typeof` que estava escondida sob `--harmony-typeof`). Isto significava que algumas funcionalidades com bugs ou até mesmo funcionalidades partidas como os [proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy), estavam imediatamente disponíveis aos programadores, tal como os [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*), que tinham poucos ou nenhum problema conhecido. Como tal, era boa prática apenas habilitar algumas funcionalidades utilizando flags específicas de runtime harmony (p.e `--harmony-generators`), ou simplesmente habilitar todas as funcionalidades e usar apenas um subconjunto específico.

With io.js@1.x (V8 4.1+), all that complexity goes away. All harmony features are now logically split into three groups for **shipping**, **staged** and **in progress** features:
Com o io.js@1.x (V8 4.1+), toda essa complexidade deixa de existir. Todas as funcionalidades harmony estão agora logicamente separadas em três grupos: **entregues**, **em testes** e **em desenvolvimento**:

* All **shipping** features, the ones that V8 has considered stable, like [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*), [templates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings), [new string methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object) and many others are turned **on by default on io.js** and do **NOT** require any kind of runtime flag.
* Then there are **staged** features which are almost-completed features that haven't been completely tested or updated to the latest spec yet and therefore are not considered stable by the V8 team (e.g. there might be some edge cases left to discover). This is probably the equivalent of the state of [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) on 3.26. These are the "use at your own risk" type of features that now require a runtime flag: `--es_staging` (or its synonym, `--harmony`).
* Finally, all **in progress** features can be activated individually by their respective harmony flag (e.g. `--harmony_arrow_functions`), although this is highly discouraged unless for testing purposes.
* Todas as funcionalidades **entregues**, aquelas consideradas estáveis pelo V8, como [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*), [templates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings), [novos métodos string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object) estão ligados **por omissão no io.js** e **NÃO** precisam qualquer tipo de flag runtime.

## Which ES6 features ship with io.js by default (no runtime flag required)?
* Depois existem as funcionalidades **em testes** que são funcionalidades quase completas mas que ainda não foram totalmente testadas ou não foram atualizadas para a última especificação, logo não são consideradas estáveis pela equipa do V8 (p.e. poderão existir alguns casos extremos ainda por descobrir). Este é provavelmente o estado dos [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) em 3.26. Estas são as funcionalidades do tipo "use por sua própria conta e risco" que agora precisam uma flag de runtime: `--es_staging` (ou o seu sinónimo, `--harmony`).

* Finalmente, todas as funcionalidades **em desenvolvimento** podem ser ativadas individualmente pelas suas respetivas flags harmony (p.e. `--harmony_arrow_functions`), no entanto isto é altamente desaconselhado, exceto em situações de testes.

* Block scoping
## Que funcionalidades ES6 estão disponíveis por omissão no io.js (não necessitam de flag runtime)?


* Contexto em bloco

* [let](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let)

* [const](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)

* `function`-in-blocks
* `function` em blocos

>As of v8 3.31.74.1, block-scoped declarations are [intentionally implemented with a non-compliant limitation to strict mode code](https://groups.google.com/forum/#!topic/v8-users/3UXNCkAU8Es). Developers should be aware that this will change as v8 continues towards ES6 specification compliance.
>A partir do v8 3.31.74.1, declarações de contexto em bloco estão [intencionalmente implementadas com uma limitação em não conformidade com código em strict mode](https://groups.google.com/forum/#!topic/v8-users/3UXNCkAU8Es). Os programadores deverão estar atentos ao facto de que isto irá mudar à medida que o v8 se aproxima da conformidade com a especificação ES6.

* Collections
* Coleções

* [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)

Expand All @@ -39,32 +41,32 @@ With io.js@1.x (V8 4.1+), all that complexity goes away. All harmony features ar

* [Generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)

* [Binary and Octal literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Numeric_literals)
* [Literais Binários e Octais](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Numeric_literals)

* [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)

* [New String methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object)
* [Novos métodos de Strings](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object)

* [Symbols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)

* [Template strings](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings)

You can view a more detailed list, including a comparison with other engines, on the [compat-table](https://kangax.github.io/compat-table/es6/) project page.
Podem consultar uma lista mais detalhada, incluíndo a comparação com outros motores na [tabela de compatibilidades](https://kangax.github.io/compat-table/es6/).

## Which ES6 features are behind the --es_staging flag?
## Que funcionalidades ES6 estão sob a flag --es_staging?

* [Classes](https://github.com/lukehoban/es6features#classes) (strict mode only)
* [Object literal extensions](https://github.com/lukehoban/es6features#enhanced-object-literals)
* [Classes](https://github.com/lukehoban/es6features#classes) (apenas strict mode)
* [Extensões de literais de objectos](https://github.com/lukehoban/es6features#enhanced-object-literals)

* [`Symbol.toStringTag`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) (user-definable results for `Object.prototype.toString`)
* [`Symbol.toStringTag`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) (resultados definidos pelo utilizador para `Object.prototype.toString`)

## I have my infrastructure set up to leverage the --harmony flag. Should I remove it?
## Tenho a minha infraestrutura configurada para usar a flag --harmony. Devo removê-la?

The current behaviour of the `--harmony` flag on io.js is to enable **staged** features only. After all, it is now a synonym of `--es_staging`. As mentioned above, these are completed features that have not been considered stable yet. If you want to play safe, especially on production environments, consider removing this runtime flag until it ships by default on V8 and, consequently, on io.js. If you keep this enabled, you should be prepared for further io.js upgrades to break your code if V8 changes their semantics to more closely follow the standard.
O comportamento atual da flag `--harmony` no io.js é ativar funcionalidades **em teste** apenas. Afinal de contas, é agora um sinónimo de `--es_staging`. Como foi mencionado em cima, estas são funcionalidades desenvolvidas que ainda não foram consideradas estáveis. Se quiser jogar pelo seguro, especialmente em ambientes de produção, considere remover esta flag de runtime até sair por omissão no V8 e consequentemente no io.js. Se mantiver esta flag ativa, deverá estar preparado para que atualizações no io.js possam partir o seu código se o V8 mudar a semântica para estar mais de acordo com a especificação.

## How do I find which version of V8 ships with a particular version of io.js?
## Como descubro a versão do V8 que vem com uma versão específica do io.js?

io.js provides a simple way to list all dependencies and respective versions that ship with a specific binary through the `process` global object. In case of the V8 engine, type the following in your terminal to retrieve its version:
O io.js disponibiliza uma maneira simples de listar todas as dependências e respetivas versões que vêm incluídas num binário específico através do objecto global `process`. No caso do motor V8, basta escrever o seguinte no terminal para obter a versão do mesmo:

```sh
iojs -p process.versions.v8
Expand Down
33 changes: 15 additions & 18 deletions content/pt_PT/faq.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
# FAQ

## What is io.js?
## O que é o io.js?

[io.js](https://github.com/iojs/io.js) is a JavaScript platform built on [Chrome's V8 runtime](http://code.google.com/p/v8/). This project began as a fork of [Joyent's Node.js™](https://nodejs.org/) and is compatible with the [npm](https://www.npmjs.org/) ecosystem.
O [io.js](https://github.com/iojs/io.js) é uma plataforma JavaScript construída sob o [runtime do Chrome V8](http://code.google.com/p/v8/). Este projeto começou como um fork do [Node.js™ da Joyent](https://nodejs.org/) e é compatível com o ecossistema do [npm](https://www.npmjs.org/).

Why? io.js aims to provide faster and predictable release cycles. It currently merges in the latest language, API and performance improvements to V8 while also updating libuv and other base libraries.
Porquê? O io.js procura disponibilizar ciclos de release mais rápidos e previsíveis. Atualmente junta as melhorias mais recentes da linguagem, API e performance do V8 e ao mesmo tempo atualiza a libuv e outras bibliotecas base.

This comment was marked as off-topic.

This comment was marked as off-topic.


This project aims to continue development of io.js under an "[open governance model](https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme)" as opposed to corporate stewardship.
Este projeto procura continuar o desenvolvimento do io.js sob um "[modelo de governança aberta](https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme)", ao invés de uma administração corporativa.

## Version 1.0.x?
## Versão 1.0.x?

io.js has moved to [Semver](http://semver.org/) and the changes between Node.js™ 0.10 and io.js 1.0.0 were significant enough
to warrant a major version increment.
O io.js passou a usar [Semver](http://semver.org/) e as alterações entre o Node.js™ 0.10 e o io.js 1.0.0 foram significativas o suficiente para justificar um incremento na versão.

Our [CHANGELOG](https://github.com/iojs/io.js/blob/v1.x/CHANGELOG.md) for v1.x provides a [summary of changes from Node.js v0.10.35 to io.js v1.0.x](https://github.com/iojs/io.js/blob/v1.x/CHANGELOG.md#summary-of-changes-from-nodejs-v01035-to-iojs-v100).
O nosso [CHANGELOG](https://github.com/iojs/io.js/blob/v1.x/CHANGELOG.md) da v1.x disponibiliza um [resumo das alterações do Node.js v0.10.35 para o io.js v1.0.x](https://github.com/iojs/io.js/blob/v1.x/CHANGELOG.md#summary-of-changes-from-nodejs-v01035-to-iojs-v100).

## How can I contribute?
## Como posso contribuir?

Everyone can help. io.js adheres to a [code of conduct](https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-of-conduct), and contributions, releases, and contributorship are under an [open governance](https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme) model.
Todos podem ajudar. O io.js adere a um [código de conduta](https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-of-conduct), e as contribuições, lançamentos e autoria estão sob um modelo de [governança aberta](https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme).

This comment was marked as off-topic.


To get started, there are open [ discussions on GitHub](https://github.com/iojs/io.js/issues), and we'd love to hear your feedback.
Becoming involved in discussions is a good way to get a feel of where you can help out further. If there is
something there you feel you can tackle, please [make a pull request](https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-contributions).
Para começar, existem [ discussões abertas no GitHub](https://github.com/iojs/io.js/issues), e adoraríamos ouvir o seu feedback. Envolver-se nas discussões é uma boa maneira de saber onde poderá ajudar mais. Se existir algo que sente que pode fazer, por favor [crie um pull request](https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-contributions).

In addition, using [Nodebug.me](http://nodebug.me/) is a good way to help Triage the issues in the backlog.
Além disso, usar o [Nodebug.me](http://nodebug.me/) é uma boa maneira de ajudar a fazer a triagem dos issues no backlog.

## Where do discussions take place?
## Onde é que as discussões acontecem?

There is an #io.js channel on Freenode IRC. We keep logs of the channel [here](http://logs.libuv.org/io.js/latest).
Existe um canal #io.js no IRC Freenode. Guardamos os logs do canal [aqui](http://logs.libuv.org/io.js/latest).

## What is open source governance?
## O que é governança de software livre?

Open source governance advocates the application of the philosophies of the open source and open content movements in order to enable any interested party to add to the creation of the end product, as with a wiki document. Legislation is democratically opened to the general citizenry, employing their collective wisdom to benefit the decision-making process and improve democracy. [[source]](https://en.wikipedia.org/wiki/Open-source_governance)
A governança de software livre defende a aplicação das filosofias dos movimentos software livre e conteúdo aberto de modo a permitir que todos os interessados que possam contribuir na criação do produto final, tal como acontece com um documento wiki. A legislação é democraticamente aberta à cidadania em geral, aplicando a sua inteligência coletiva para o benefício do processo de tomada de decisão e melhoria da democracia. [[fonte]](https://en.wikipedia.org/wiki/Open-source_governance)
12 changes: 6 additions & 6 deletions content/pt_PT/index.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# JavaScript I/O

Bringing [ES6](es6.html) to the Node Community!
A trazer [ES6](es6.html) à comunidade Node!

[io.js](https://github.com/iojs/io.js) is an [npm](https://www.npmjs.org/) compatible platform originally based on [node.js](https://nodejs.org/)™.
[io.js](https://github.com/iojs/io.js) é uma plataforma compatível com o [npm](https://www.npmjs.org/) originalmente baseada em [node.js](https://nodejs.org/)™.

[![io.js](../images/1.0.0.png)](https://iojs.org/dist/v1.2.0/)

[Version 1.2.0](https://iojs.org/dist/v1.2.0/)

Download for
Download para
[Linux](https://iojs.org/dist/v1.2.0/iojs-v1.2.0-linux-x64.tar.xz),
[Win32](https://iojs.org/dist/v1.2.0/iojs-v1.2.0-x86.msi), [Win64](https://iojs.org/dist/v1.2.0/iojs-v1.2.0-x64.msi),
or
ou
[Mac](https://iojs.org/dist/v1.2.0/iojs-v1.2.0.pkg).


[Changelog](https://github.com/iojs/io.js/blob/v1.x/CHANGELOG.md)

[Nightly releases](https://iojs.org/download/nightly/) are available for testing.
[Versões Nightly](https://iojs.org/download/nightly/) estão disponíveis para teste.

[Frequently Asked Questions](/faq.html)
[Perguntas Frequentes (FAQ)](/faq.html)
10 changes: 5 additions & 5 deletions content/pt_PT/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"logo-text":"io.js",
"faq-link":"FAQ",
"es6-link":"ES6",
"api-link":"API Docs",
"issues-link":"GitHub Issues",
"org-link":"GitHub Org",
"irc-link":"IRC Chat",
"api-link":"Documentação da API",
"issues-link":"Issues no GitHub",
"org-link":"Perfil GitHub",
"irc-link":"Chat IRC",
"irc-logs-link":"Logs",
"gov-link":"Governance"
"gov-link":"Governança"
}