Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Add missing translation PT-BR #211

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<td>Languages :</td>
<td><a href="./README.md"><img src="http://flags.fmcdn.net/data/flags/w580/gb.png" width="30" height="20"></a></td>
<td><a href="./README_FR.md"><img src="http://flags.fmcdn.net/data/flags/w580/fr.png" width="30" height="20"></a></td>
<td><a href="./README_BR.md"><img src="http://flags.fmcdn.net/data/flags/w580/br.png" width="30" height="20"></a></td>
</tr>
</table>
</h2>
Expand Down
97 changes: 97 additions & 0 deletions README_BR.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<h2 align="center">
<table align="center">
<tr>
<td>Idiomas :</td>
<td><a href="./README.md"><img src="http://flags.fmcdn.net/data/flags/w580/gb.png" width="30" height="20"></a></td>
<td><a href="./README_FR.md"><img src="http://flags.fmcdn.net/data/flags/w580/fr.png" width="30" height="20"></a></td>
<td><a href="./README_BR.md"><img src="http://flags.fmcdn.net/data/flags/w580/br.png" width="30" height="20"></a></td>
</tr>
</table>
</h2>

<h1 align="center">
wallet-web
<br>
</h1>

<h4 align="center">
Carteira digital para <a href="https://tron.network">Protocolo Tron</a>
</h4>

<p align="center">
<a href="https://join.slack.com/t/tronfoundation/shared_invite/enQtMzAzNzg4NTI4NDM3LTAyZGQzMzEzMjNkNDU0ZjNkNTA4OTYyNTA5YWZmYjE3MTEyOWZhNzljNzQwODM3NDQ0OWRiMTIyMDhlYzgyOGQ">
<img src="https://img.shields.io/badge/chat-on%20slack-brightgreen.svg">
</a>

<a href="https://travis-ci.org/tronprotocol/wallet-web">
<img src="https://travis-ci.org/tronprotocol/wallet-web.svg?branch=develop">
</a>

<a href="https://github.com/tronprotocol/wallet-web/issues">
<img src="https://img.shields.io/github/issues/tronprotocol/wallet-web.svg">
</a>

<a href="https://github.com/tronprotocol/wallet-web/pulls">
<img src="https://img.shields.io/github/issues-pr/tronprotocol/wallet-web.svg">
</a>

<a href="https://github.com/tronprotocol/wallet-web/graphs/contributors">
<img src="https://img.shields.io/github/contributors/tronprotocol/wallet-web.svg">
</a>

<a href="LICENSE">
<img src="https://img.shields.io/github/license/tronprotocol/wallet-web.svg">
</a>
</p>

<p align="center">
<a href="#how-to-use">Como utilizar</a> •
<a href="#links">Links</a> •
<a href="http://wiki.tron.network">Wiki</a> •
<a href="#community">Comunidade</a>
</p>

# Como Utilizar

## Requisitos

* Node v9.8.0
* Yarn

## Funcionamento

```bash
> yarn install
> yarn start
```

A carteira então pode ser acessada através do endereço: [http://localhost:3000](http://localhost:3000)

## Alterando o URL da API padrão

Por padrão, o Explorer se conectará à https://tronscan.io para obter os dados.

Quando executada localmente, o URL pode ser alterado definindo a variável de ambiente `API_URL`

```bash
> API_URL=http://127.0.0.0:8088 yarn start
```

Isto deve alterar a variável API_URL, apontando para o serviço local `wallet-cli`

# Comunidade

* [Slack](https://join.slack.com/t/tronfoundation/shared_invite/enQtMzAzNzg4NTI4NDM3LTAyZGQzMzEzMjNkNDU0ZjNkNTA4OTYyNTA5YWZmYjE3MTEyOWZhNzljNzQwODM3NDQ0OWRiMTIyMDhlYzgyOGQ)
* [Telegram](https://t.me/tronnetworkEN)

# Links

* [Website](https://tron.network/)
* [Documentação](https://github.com/tronprotocol/wallet-web)
* [Blog](https://tronprotocol.github.io/tron-blog/)
* [TRON Wiki](http://wiki.tron.network/en/latest/)

# Projetos

* [TRON Protocol](https://github.com/tronprotocol/protocol)
* [Wallet-CLI](https://github.com/tronprotocol/wallet-cli)
1 change: 1 addition & 0 deletions README_FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<td>Langues :</td>
<td><a href="./README.md"><img src="http://flags.fmcdn.net/data/flags/w580/gb.png" width="30" height="20"></a></td>
<td><a href="./README_FR.md"><img src="http://flags.fmcdn.net/data/flags/w580/fr.png" width="30" height="20"></a></td>
<td><a href="./README_BR.md"><img src="http://flags.fmcdn.net/data/flags/w580/br.png" width="30" height="20"></a></td>
</tr>
</table>
</h2>
Expand Down
24 changes: 10 additions & 14 deletions src/components/account/Account.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {Component} from 'react';
import {connect} from "react-redux";
import {tu} from "../../utils/i18n";
import {tu, tup} from "../../utils/i18n";
import {loadTokenBalances} from "../../actions/account";
import {BarLoader} from "../common/loaders";
import xhr from "axios";
Expand Down Expand Up @@ -273,7 +273,7 @@ class Account extends Component {
<Modal isOpen={true} toggle={this.hideModal} fade={false} className="modal-dialog-centered" >
<ModalBody className="text-center">
<p>
Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.
{tu("unfreeze_error")}
</p>
<button className="btn btn-primary mr-2" onClick={() => this.setState({ modal: null })}>
{tu("Close")}
Expand All @@ -291,18 +291,18 @@ class Account extends Component {
modal: (
<Modal isOpen={true} toggle={this.hideModal} fade={false} className="modal-dialog-centered" >
<ModalHeader className="text-center" toggle={this.hideModal}>
{tu("Unfreeze TRX")}
{tu("unfreeze_trx")}
</ModalHeader>
<ModalBody className="text-center">
<p>
Are you sure you want to unfreeze your TRX?
{tu("unfreeze_question")}
</p>
<button className="btn btn-secondary mr-2" onClick={() => this.setState({ modal: null })}>
{tu("Cancel")}
{tu("cancel")}
</button>
<button className="btn btn-danger" onClick={this.unfreeze}>
<i className="fa fa-fire mr-2"/>
{tu("Unfreeze TRX")}
{tu("unfreeze_trx")}
</button>
</ModalBody>
</Modal>
Expand Down Expand Up @@ -399,26 +399,22 @@ class Account extends Component {
<div className="col-md-12">
<div className="card">
<div className="card-header border-bottom-0 text-center bg-dark text-white">
{tu("Frozen TRX Tokens")}
{tu("frozen_trx_tokens")}
</div>
{this.renderFrozenTokens()}
<div className="card-body text-center">
<p className="card-text">
TRX can be frozen/locked to enable additional features.
For example, with your frozen TRX you can vote for super delegates.<br/>
Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX
cannot be traded.<br/>
After this period you can unfreeze the TRX and trade the tokens.
{tup("freeze_trx_txt")}
</p>
{
hasFrozen && <button className="btn btn-danger mr-2" onClick={this.unfreezeBalance}>
<i className="fa fa-fire mr-2"/>
Unfreeze
{tu("unfreeze")}
</button>
}
<button className="btn btn-primary mr-2" onClick={this.showFreezeBalance}>
<i className="fa fa-snowflake mr-2"/>
Freeze
{tu("freeze")}
</button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/account/FreezeBalanceModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ class FreezeBalanceModal extends React.PureComponent {
return (
<Modal isOpen={true} toggle={this.hideModal} fade={false} className="modal-dialog-centered" >
<ModalHeader className="text-center" toggle={this.hideModal}>
{tu("Freeze TRX")}
{tu("freeze_trx")}
</ModalHeader>
<ModalBody className="text-center">
<form>
<div className="form-group">
<label>{tu("TRX Amount")}</label>
<label>{tu("trx_amount")}</label>
<input type="text"
pattern="[0-9]*"
value={amount}
Expand All @@ -108,7 +108,7 @@ class FreezeBalanceModal extends React.PureComponent {
onClick={this.freeze}
>
<i className="fa fa-snowflake mr-2"/>
{tu("Freeze TRX")}
{tu("freeze_trx")}
</button>
</p>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/components/transfer/Receive.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Receive extends React.Component {
let rootUrl = process.env.PUBLIC_URL || window.location.origin;

if (account.isLoggedIn) {
QRCode.toDataURL(`${rootUrl}/#/send?to=${account.address}`, (err, url) => {
QRCode.toDataURL(`${account.key}`, (err, url) => {
this.setState({
qrcode: url,
});
Expand Down
65 changes: 53 additions & 12 deletions src/translations/br.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@ export const messages = {
"view": "visualizar",
"create": "novo",
"country": "região",
"address": "endereço",
"address": "endereços",
"balance": "saldo",
"votes": "votos",
"password": "senha",
"password": "Chave privada",
"showpassword":'mostrar senha',
"my_vote": "meus votos",
"submit_votes": "enviar votos",
"submit": "enviar",
"your_personal_website_address": "Digite seu site pessoal",
"send": "enviar",
"amount": "quantidade",
"to": "para",
"apply_for_delegate_description": `
"apply_for_delegate_description": `
Titulares do TRX podem aplicar para se tornar um super representante utilizando a função de gerenciamento de conta, e votando nos candidados.
Cada conta pode atualizar suas informações de voto, também é permitido votar em vários candidatos.
O número máximo de votos é menor ou igual a quantidade de TRX que o usuário retém no momento
Expand All @@ -43,23 +42,23 @@ export const messages = {
`,
"unknown_error": "Ocoreu um erro desconhecido",
"representative_understand": "Eu compreendo como ser um representante TRON",
"generate_account": "Clique para gerar seu endereço de conta e senha",
"generate_account": "Gerar nova conta e chave privada",
"create_account_confirm_1": "Eu compreendo que, se eu perder minha senha, nunca acessarei meus ativos",
"create_account_confirm_2": "Eu compreendo que se eu esquecer ou perder minha senha, ninguém poderá me ajudar a recuperá-la",
"create_account_confirm_3": "Eu escrevi minha senha em um papel",
"vote_thanks": "Obrigado por enviar seu voto!",
"return_vate":"Devolva o voto",
"recent_transactions": "transações recentes",
"newest_account": "conta mais recente",
"most_trx": "maior carteira",
"representatives": "representantes",
"most_votes": "mais votado",
"start_end_time": "Data Início / Fim ",
"account": "conta",
"accounts": "contas",
"scan_qr_code": "Digitalize a imagem com um scanner de QR code",
"send_trx": "send TRX",
"send_trx": "Send TRX",
"receive_trx": "receber TRX",
"send_trx_address": "Envie TRX para o seguinte endereço",
"require_account_to_send": "Você precisa estar logado para enviar moedas",
"require_account_to_receive": "Você precisa estar logado para receber moedas",
"successful_send": "Enviado com sucesso!",
Expand Down Expand Up @@ -118,6 +117,13 @@ export const messages = {
"thanks_for_applying": "Obrigado por se inscrever!",
"too_many_votes": "Votos excedentes",
"no_trx_remaining": "Não há TRX restante",
"previous": "anterior",
"next": "próximo",
"block": "bloco",
"height": "altura",
"time": "hora",
"size": "tamanho",
"no_transactions": "Nenhuma transação no momento",
"vote": "votar",
"produced_by": "Produzido por {witnessAddress}",
"show_more": "Mostrar mais {countriesLength}",
Expand All @@ -141,7 +147,9 @@ export const messages = {
"bytes": "bytes",
"blockchain": "blockchain",
"tokens": "tokens",
"not_started_yet": "Ainda não iniciado",
"participate": "participar",
"participated_error": "Ocorreu um erro",
"issue_a_token": "emitir um token",
"token_name": "Nome do token",
"exchange_rate": "câmbio",
Expand All @@ -161,13 +169,46 @@ export const messages = {
"participation_short_txt": `Especifique o período de participação no qual os tokens serão emitidos.
     Durante o período de participação, os usuários podem trocar seus TRX por {name} tokens.`,
"success_short_txt": "Token emitido com sucesso",
"witness": "representante",
"supply": "oferta",
"my_transactions": "Minhas Transações",
"from": "de",
"to": "para",
"the_url": "A URL",
"external_link_warning": "é um link externo e pode ser inseguro. Prossiga com cuidado.",
"proceed": "Prosseguir",
"bytes": "bytes",
"create_account": "Criar conta",
"register_new_account": "ou Criar nova conta",
"account_address": "endereço da conta",
"welcome_to_tron": "Benvindo a TRON",
"your_wallet": "Sua carteira",
"search_token": "Localizar Token por nome",
"send_trx_address": "Envie TRX para o seguinte endereço",
"Send TRX": "Enviar TRX",
"supply": "oferta",
"parenthash": "Parent Hash",
"search_representatives":"Search representatives"
"trx_balance": "Saldo TRX",
"remaining": "restantes",
"vote_info_link": "Para mais informações sobre os Super Representantes Tron, visite ",
"sr_guide": "Guia SR",
"votes_remaining": "Votos Restantes",
"countdown_txt": "Próximas contagem de votos em...",
"counting_votes":"Contando Votos",
"private_key": "Chave privada",
"show_private_key": "Exibir chave privada",
"most_trx": "maior carteira",
"parenthash": "Hash pai",
"no_tokens_found":"Nenhum Token Encontrado",
"search_representatives":"Localizar representantes",
"cancel": "Cancelar",
"freeze": "Congelar",
"unfreeze": "Descongelar",
"freeze_trx_txt": `TRX poden ser congelados/bloqueados para habilitar recursos adicionais. Por exemplo, com seu TRX congelado você pode votar em super delegados.
Os tokens congelados são "bloqueados" por um período de 3 dias. Durante este período, o TRX congelado não pode ser negociado.
Após este período, você pode descongelar o TRX e trocar os tokens.`,
"unfreeze_error": "Não é possível descongelar o TRX. Isso pode ser causado porque o período mínimo de congelamento ainda não foi atingido.",
"unfreeze_question": "Tem certeza de que deseja descongelar os seus TRX?",
"frozen_trx_tokens": "TRX Tokens Congelados",
"freeze_trx": "Congelar TRX",
"unfreeze_trx": "Descongelar TRX",
"trx_amount": "Quantidade de TRX",
"expires": "Expira em"
};

21 changes: 17 additions & 4 deletions src/translations/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const messages = {
"accounts": "accounts",
"account": "account",
"scan_qr_code": "Or scan this QR code on a mobile device",
"send_trx": "send TRX",
"receive_trx": "receive TRX",
"send_trx": "Send TRX",
"receive_trx": "Receive TRX",
"send_trx_address": "Send TRX to the following address",
"require_account_to_send": "You must be logged in to send coins",
"require_account_to_receive": "You must be logged in to receive coins",
Expand Down Expand Up @@ -190,6 +190,19 @@ export const messages = {
"show_private_key": "Show Private Key",
"most_trx": "Most TRX",
"parenthash": "Parent Hash",
"no_tokens_found":"No Tokens Found",
"search_representatives":"Search representatives"
"no_tokens_found": "No Tokens Found",
"search_representatives": "Search representatives",
"cancel": "Cancel",
"freeze": "Freeze",
"unfreeze": "Unfreeze",
"freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates.
Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded.
After this period you can unfreeze the TRX and trade the tokens.`,
"unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.",
"unfreeze_question": "Are you sure you want to unfreeze your TRX?",
"frozen_trx_tokens": "Frozen TRX Tokens",
"freeze_trx": "Freeze TRX",
"unfreeze_trx": "Unfreeze TRX",
"trx_amount": "TRX Amount",
"expires": "expires"
};
15 changes: 14 additions & 1 deletion src/translations/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,18 @@ export const messages = {
"send_trx_address": "Send TRX to the following address",
"most_trx": "Most TRX",
"parenthash": "Parent Hash",
"search_representatives":"Search representatives"
"search_representatives":"Search representatives",
"cancel": "Cancel",
"freeze": "Freeze",
"unfreeze": "Unfreeze",
"freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates.
Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded.
After this period you can unfreeze the TRX and trade the tokens.`,
"unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.",
"unfreeze_question": "Are you sure you want to unfreeze your TRX?",
"frozen_trx_tokens": "Frozen TRX Tokens",
"freeze_trx": "Freeze TRX",
"unfreeze_trx": "Unfreeze TRX",
"trx_amount": "TRX Amount",
"expires": "expires"
};
Loading