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

Commit

Permalink
Translations of src/components files (#39)
Browse files Browse the repository at this point in the history
Translations of src/components files
  • Loading branch information
fjoshuajr committed Sep 10, 2019
2 parents c9aacc8 + 2c2b72e commit ad75380
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/components/CodeEditor/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ class CodeEditor extends Component {
if (showBabelErrorMessage) {
errorMessage = (
<span>
Babel could not be loaded.
Babel não pôde ser carregado.
<br />
<br />
This can be caused by an ad blocker. If you're using one, consider
adding reactjs.org to the whitelist so the live code examples will
work.
Isto pode ser causado por um bloqueador de anúncios. Se estás a usar
algum, considera adicionar o endereço reactjs.org na <i>whitelist</i>,
e feito isso os exemplos com <i>live code</i> irão funcionar.
</span>
);
} else if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeExample/CodeExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CodeExample extends Component {
{loaded ? (
<CodeEditor code={code} containerNodeID={containerNodeID} />
) : (
<h4>Loading code example...</h4>
<h4>A carregar o exemplo de código...</h4>
)}
</div>
);
Expand Down
7 changes: 4 additions & 3 deletions src/components/ErrorDecoder/ErrorDecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,17 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
if (!code) {
return (
<p>
When you encounter an error, you'll receive a link to this page for that
specific error and we'll show you the full error text.
Quando encontrares um erro, receberás um link para esta página em
relação à esse erro específico e mostraremos a descrição completa do
erro.
</p>
);
}

return (
<div>
<p>
<b>The full text of the error you just encountered is:</b>
<b>A descrição completa do erro que encontraste é:</b>
</p>
<code>
<b>{urlify(errorMsg)}</b>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutFooter/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
<MetaTitle onDark={true}>{navFooter.community.title}</MetaTitle>
<ExternalFooterLink
href={`https://github.com/facebook/react/blob/master/CODE_OF_CONDUCT.md`}>
Code of Conduct
Código de Conduta
</ExternalFooterLink>
{sectionListCommunity.map(section => (
<FooterLink
Expand Down
6 changes: 3 additions & 3 deletions src/components/LayoutHeader/DocSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DocSearch extends Component<{}, State> {
inputSelector: '#algolia-doc-search',
});
} else {
console.warn('Search has failed to load and now is being disabled');
console.warn('A pesquisa falhou ao ser carregada e agora será desativada');
this.setState({enabled: false});
}
}
Expand Down Expand Up @@ -97,8 +97,8 @@ class DocSearch extends Component<{}, State> {
}}
id="algolia-doc-search"
type="search"
placeholder="Search"
aria-label="Search docs"
placeholder="Pesquisar"
aria-label="Pesquisar na documentação"
/>
</form>
) : null;
Expand Down
4 changes: 2 additions & 2 deletions src/components/LayoutHeader/SearchSvg.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import React from 'react';

const SearchSvg = () => (
<svg
alt="Search"
alt="Pesquisa"
height="16"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16">
<title>Search</title>
<title>Pesquisa</title>
<path
d={`
M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,
Expand Down
6 changes: 3 additions & 3 deletions src/components/MarkdownPage/MarkdownPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const MarkdownPage = ({
{date}{' '}
{hasAuthors && (
<span>
by{' '}
por{' '}
{toCommaSeparatedList(authors, author => (
<a
css={sharedStyles.link}
Expand All @@ -112,10 +112,10 @@ const MarkdownPage = ({
<div css={{marginTop: 80}}>
<a
css={sharedStyles.articleLayout.editLink}
href={`https://github.com/reactjs/reactjs.org/tree/master/${
href={`https://github.com/reactjs/pt-pt.reactjs.org/tree/master/${
markdownRemark.fields.path
}`}>
Edit this page
Edite esta página
</a>
</div>
)}
Expand Down

0 comments on commit ad75380

Please sign in to comment.