From c4931c9775e4af95c109d90f0a7d9b4239423ab1 Mon Sep 17 00:00:00 2001 From: Lucas Bastianik Date: Mon, 17 Dec 2018 10:19:40 -0200 Subject: [PATCH] =?UTF-8?q?i18n=20-=20Translation=20pt-BR=20(=F0=9F=87=A7?= =?UTF-8?q?=F0=9F=87=B7)=20(#3155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Translation of form and monitor (pt-BR) * Change flag of Portugal (pt-PT) to Brazil (pt-BR) --- src/components/SelectLang/index.js | 18 ++++----- src/components/SiderMenu/BaseMenu.js | 1 - src/locales/pt-BR.js | 2 +- src/locales/pt-BR/form.js | 55 ++++++++++++++-------------- src/locales/pt-BR/monitor.js | 30 +++++++-------- 5 files changed, 53 insertions(+), 53 deletions(-) diff --git a/src/components/SelectLang/index.js b/src/components/SelectLang/index.js index 5e1d6fa3..f6abe2f2 100644 --- a/src/components/SelectLang/index.js +++ b/src/components/SelectLang/index.js @@ -13,18 +13,18 @@ export default class SelectLang extends PureComponent { render() { const { className } = this.props; const selectedLang = getLocale(); - const locales = ["zh-CN", "zh-TW", "en-US", "pt-BR"]; + const locales = ['zh-CN', 'zh-TW', 'en-US', 'pt-BR']; const languageLabels = { - "zh-CN": "简体中文", - "zh-TW": "繁体中文", - "en-US": "English", - "pt-BR": "Português", + 'zh-CN': '简体中文', + 'zh-TW': '繁体中文', + 'en-US': 'English', + 'pt-BR': 'Português', }; const languageIcons = { - "zh-CN": "🇨🇳", - "zh-TW": "🇭🇰", - "en-US": "🇬🇧", - "pt-BR": "🇵🇹", + 'zh-CN': '🇨🇳', + 'zh-TW': '🇭🇰', + 'en-US': '🇬🇧', + 'pt-BR': '🇧🇷', }; const langMenu = ( diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index 4448c5a5..2ad61134 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -24,7 +24,6 @@ const getIcon = icon => { }; export default class BaseMenu extends PureComponent { - /** * 获得菜单子节点 * @memberof SiderMenu diff --git a/src/locales/pt-BR.js b/src/locales/pt-BR.js index 45df10bb..d0fe21b7 100644 --- a/src/locales/pt-BR.js +++ b/src/locales/pt-BR.js @@ -18,7 +18,7 @@ export default { 'app.home.introduce': 'introduzir', 'app.forms.basic.title': 'Basic form', 'app.forms.basic.description': - 'Form pages are used to collect or verify information to users, and basic forms are common in scenarios where there are fewer data items.', + 'Páginas de formulário são usadas para coletar e verificar as informações dos usuários e formulários básicos são comuns nos cenários onde existem alguns formatos de informações.', ...analysis, ...exception, ...form, diff --git a/src/locales/pt-BR/form.js b/src/locales/pt-BR/form.js index ae8ec7df..8e5b7602 100644 --- a/src/locales/pt-BR/form.js +++ b/src/locales/pt-BR/form.js @@ -6,33 +6,34 @@ export default { 'form.confirm-password.placeholder': 'Confirme a senha', 'form.phone-number.placeholder': 'Telefone', 'form.verification-code.placeholder': 'Código de verificação', - 'form.optional': ' (optional) ', - 'form.submit': 'Submit', - 'form.save': 'Save', - 'form.title.label': 'Title', - 'form.title.placeholder': 'Give the target a name', - 'form.date.label': 'Start and end date', - 'form.date.placeholder.start': 'Start date', - 'form.date.placeholder.end': 'End date', - 'form.goal.label': 'Goal description', - 'form.goal.placeholder': 'Please enter your work goals', - 'form.standard.label': 'Metrics', - 'form.standard.placeholder': 'Please enter a metric', - 'form.client.label': 'Client', + 'form.optional': ' (opcional) ', + 'form.submit': 'Enviar', + 'form.save': 'Salvar', + 'form.title.label': 'Titulo', + 'form.title.placeholder': 'Dê o nome do input', + 'form.date.label': 'Período', + 'form.date.placeholder.start': 'Data Inicial', + 'form.date.placeholder.end': 'Data Final', + 'form.goal.label': 'Objetivos', + 'form.goal.placeholder': 'Por favor, digite os seus objetivos', + 'form.standard.label': 'Métricas', + 'form.standard.placeholder': 'Por favor, digite suas métricas', + 'form.client.label': 'Cliente', 'form.client.label.tooltip': 'Target service object', 'form.client.placeholder': - 'Please describe your customer service, internal customers directly @ Name / job number', - 'form.invites.label': 'Inviting critics', - 'form.invites.placeholder': 'Please direct @ Name / job number, you can invite up to 5 people', - 'form.weight.label': 'Weight', - 'form.weight.placeholder': 'Please enter weight', - 'form.public.label': 'Target disclosure', - 'form.public.label.help': 'Customers and invitees are shared by default', - 'form.public.radio.public': 'Public', - 'form.public.radio.partially-public': 'Partially public', - 'form.public.radio.private': 'Private', - 'form.publicUsers.placeholder': 'Open to', - 'form.publicUsers.option.A': 'Colleague A', - 'form.publicUsers.option.B': 'Colleague B', - 'form.publicUsers.option.C': 'Colleague C', + 'Por favor, descreva seu atendimento ao cliente, clientes internos diretamente @ Nome / número do trabalho', + 'form.invites.label': 'Convidados críticos', + 'form.invites.placeholder': + 'Por favor, dirija @ Nome / número do trabalho, você pode convidar até 5 pessoas', + 'form.weight.label': 'Peso', + 'form.weight.placeholder': 'Por favor, entre com o peso', + 'form.public.label': 'Revelação de objetivo', + 'form.public.label.help': 'Clientes e convidados são compartilhados por padrão', + 'form.public.radio.public': 'Publico', + 'form.public.radio.partially-public': 'Parcialmente publico', + 'form.public.radio.private': 'Privado', + 'form.publicUsers.placeholder': 'Aberto para', + 'form.publicUsers.option.A': 'Colega A', + 'form.publicUsers.option.B': 'Colega B', + 'form.publicUsers.option.C': 'Colega C', }; diff --git a/src/locales/pt-BR/monitor.js b/src/locales/pt-BR/monitor.js index 572a79ed..44a26084 100644 --- a/src/locales/pt-BR/monitor.js +++ b/src/locales/pt-BR/monitor.js @@ -1,19 +1,19 @@ export default { - 'app.monitor.trading-activity': 'Real-Time Trading Activity', - 'app.monitor.total-transactions': 'Total transactions today', - 'app.monitor.sales-target': 'Sales target completion rate', - 'app.monitor.remaining-time': 'Remaining time of activity', - 'app.monitor.total-transactions-per-second': 'Total transactions per second', - 'app.monitor.activity-forecast': 'Activity forecast', - 'app.monitor.efficiency': 'Efficiency', - 'app.monitor.ratio': 'Ratio', - 'app.monitor.proportion-per-category': 'Proportion Per Category', + 'app.monitor.trading-activity': 'Atividade de Trading Real-time', + 'app.monitor.total-transactions': 'Total de transações hoje', + 'app.monitor.sales-target': 'Taxa de conclusão da meta de vendas', + 'app.monitor.remaining-time': 'Tempo restante da atividade', + 'app.monitor.total-transactions-per-second': 'Total de transações por segundo', + 'app.monitor.activity-forecast': 'Previsão atual', + 'app.monitor.efficiency': 'Eficiência', + 'app.monitor.ratio': 'Relação', + 'app.monitor.proportion-per-category': 'Proporção por categoria', 'app.monitor.fast-food': 'Fast food', - 'app.monitor.western-food': 'Western food', + 'app.monitor.western-food': 'Comida Ocidental', 'app.monitor.hot-pot': 'Hot pot', - 'app.monitor.waiting-for-implementation': 'Waiting for implementation', - 'app.monitor.popular-searches': 'Popular Searches', - 'app.monitor.resource-surplus': 'Resource Surplus', - 'app.monitor.fund-surplus': 'Fund Surplus', - 'app.exception.back': 'Back to home', + 'app.monitor.waiting-for-implementation': 'Aguardando implementação', + 'app.monitor.popular-searches': 'Buscas populares', + 'app.monitor.resource-surplus': 'Excedente de recursos', + 'app.monitor.fund-surplus': 'Excedente do fundo', + 'app.exception.back': 'Voltar a home', }; -- GitLab