Skip to content

Commit b6c48dc

Browse files
jakubdrozdekcvqprs
authored andcommitted
Translate texts in components and templates (#55)
* Translate texts in components and templates * Update src/pages/acknowledgements.html.js Co-Authored-By: jakubdrozdek <30927218+jakubdrozdek@users.noreply.github.com> * Update src/pages/languages.js Co-Authored-By: jakubdrozdek <30927218+jakubdrozdek@users.noreply.github.com>
1 parent 3c37c84 commit b6c48dc

File tree

14 files changed

+71
-77
lines changed

14 files changed

+71
-77
lines changed

src/components/CodeEditor/CodeEditor.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ class CodeEditor extends Component {
6262
if (showBabelErrorMessage) {
6363
errorMessage = (
6464
<span>
65-
Babel could not be loaded.
65+
Nie można załadować Babela.
6666
<br />
6767
<br />
68-
This can be caused by an ad blocker. If you're using one, consider
69-
adding reactjs.org to the whitelist so the live code examples will
70-
work.
68+
Może to być spowodowane wtyczką blokującą reklamy. Jeśli używasz takiej,
69+
rozważ dodanie strony reactjs.org do listy wyjątków. Bez tego edytory
70+
kodu nie będą działały.
7171
</span>
7272
);
7373
} else if (error != null) {

src/components/CodeExample/CodeExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CodeExample extends Component {
6161
{loaded ? (
6262
<CodeEditor code={code} containerNodeID={containerNodeID} />
6363
) : (
64-
<h4>Loading code example...</h4>
64+
<h4>Ładowanie przykładowego kodu...</h4>
6565
)}
6666
</div>
6767
);

src/components/ErrorDecoder/ErrorDecoder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function replaceArgs(msg: string, argList: Array<string>): string {
1313
let argIdx = 0;
1414
return msg.replace(/%s/g, function() {
1515
const arg = argList[argIdx++];
16-
return arg === undefined ? '[missing argument]' : arg;
16+
return arg === undefined ? '[brakujący argument]' : arg;
1717
});
1818
}
1919

@@ -69,16 +69,16 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
6969
if (!code) {
7070
return (
7171
<p>
72-
When you encounter an error, you'll receive a link to this page for that
73-
specific error and we'll show you the full error text.
72+
Kiedy napotkasz na błąd, otrzymasz link do strony dotyczącej
73+
konkretnego błędu. Tutaj wyświetli się jego treść.
7474
</p>
7575
);
7676
}
7777

7878
return (
7979
<div>
8080
<p>
81-
<b>The full text of the error you just encountered is:</b>
81+
<b>Pełna treść napotkanego błędu to:</b>
8282
</p>
8383
<code>
8484
<b>{urlify(errorMsg)}</b>

src/components/LayoutFooter/Footer.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
6060
},
6161
}}>
6262
<FooterNav layoutHasSidebar={layoutHasSidebar}>
63-
<MetaTitle onDark={true}>Docs</MetaTitle>
63+
<MetaTitle onDark={true}>Dokumentacja</MetaTitle>
6464
{sectionListDocs.map(section => {
6565
const defaultItem = section.items[0];
6666
return (
@@ -73,7 +73,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
7373
})}
7474
</FooterNav>
7575
<FooterNav layoutHasSidebar={layoutHasSidebar}>
76-
<MetaTitle onDark={true}>Channels</MetaTitle>
76+
<MetaTitle onDark={true}>Kanały</MetaTitle>
7777
<ExternalFooterLink
7878
href="https://github.com/facebook/react"
7979
target="_blank"
@@ -90,19 +90,19 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
9090
href="https://discuss.reactjs.org"
9191
target="_blank"
9292
rel="noopener">
93-
Discussion Forum
93+
Forum dyskusyjne
9494
</ExternalFooterLink>
9595
<ExternalFooterLink
9696
href="https://discord.gg/0ZcbPKXt5bZjGY5n"
9797
target="_blank"
9898
rel="noopener">
99-
Reactiflux Chat
99+
Czat Reactiflux
100100
</ExternalFooterLink>
101101
<ExternalFooterLink
102102
href="https://dev.to/t/react"
103103
target="_blank"
104104
rel="noopener">
105-
DEV Community
105+
Społeczność portalu DEV
106106
</ExternalFooterLink>
107107
<ExternalFooterLink
108108
href="https://www.facebook.com/react"
@@ -118,7 +118,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
118118
</ExternalFooterLink>
119119
</FooterNav>
120120
<FooterNav layoutHasSidebar={layoutHasSidebar}>
121-
<MetaTitle onDark={true}>Community</MetaTitle>
121+
<MetaTitle onDark={true}>Społeczność</MetaTitle>
122122
{sectionListCommunity.map(section => (
123123
<FooterLink
124124
to={`/community/${section.items[0].id}.html`}
@@ -128,11 +128,11 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
128128
))}
129129
</FooterNav>
130130
<FooterNav layoutHasSidebar={layoutHasSidebar}>
131-
<MetaTitle onDark={true}>More</MetaTitle>
132-
<FooterLink to="/tutorial/tutorial.html">Tutorial</FooterLink>
131+
<MetaTitle onDark={true}>Więcej</MetaTitle>
132+
<FooterLink to="/tutorial/tutorial.html">Samouczek</FooterLink>
133133
<FooterLink to="/blog/">Blog</FooterLink>
134134
<FooterLink to="/acknowledgements.html">
135-
Acknowledgements
135+
Podziękowania
136136
</FooterLink>
137137
<ExternalFooterLink
138138
href="https://facebook.github.io/react-native/"

src/components/LayoutHeader/DocSearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class DocSearch extends Component<{}, State> {
9797
}}
9898
id="algolia-doc-search"
9999
type="search"
100-
placeholder="Search"
101-
aria-label="Search docs"
100+
placeholder="Szukaj"
101+
aria-label="Szukaj w dokumentacji"
102102
/>
103103
</form>
104104
) : null;

src/components/LayoutHeader/Header.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ const Header = ({location}: {location: Location}) => (
122122
}}>
123123
<HeaderLink
124124
isActive={location.pathname.includes('/docs/')}
125-
title="Docs"
125+
title="Dokumentacja"
126126
to="/docs/getting-started.html"
127127
/>
128128
<HeaderLink
129129
isActive={location.pathname.includes('/tutorial/')}
130-
title="Tutorial"
130+
title="Samouczek"
131131
to="/tutorial/tutorial.html"
132132
/>
133133
<HeaderLink
@@ -137,7 +137,7 @@ const Header = ({location}: {location: Location}) => (
137137
/>
138138
<HeaderLink
139139
isActive={location.pathname.includes('/community/')}
140-
title="Community"
140+
title="Społeczność"
141141
to="/community/support.html"
142142
/>
143143
</nav>
@@ -209,7 +209,7 @@ const Header = ({location}: {location: Location}) => (
209209
display: 'none',
210210
},
211211
}}>
212-
Languages
212+
Języki
213213
</span>
214214
</Link>
215215
<a

src/components/LayoutHeader/SearchSvg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import React from 'react';
88

99
const SearchSvg = () => (
1010
<svg
11-
alt="Search"
11+
alt="Szukaj"
1212
height="16"
1313
xmlns="http://www.w3.org/2000/svg"
1414
viewBox="0 0 16 16">
15-
<title>Search</title>
15+
<title>Szukaj</title>
1616
<path
1717
d={`
1818
M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,

src/components/MarkdownPage/MarkdownPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const MarkdownPage = ({
8888
{date}{' '}
8989
{hasAuthors && (
9090
<span>
91-
by{' '}
91+
dodane przez{' '}
9292
{toCommaSeparatedList(authors, author => (
9393
<a
9494
css={sharedStyles.link}
@@ -115,7 +115,7 @@ const MarkdownPage = ({
115115
href={`https://github.com/reactjs/reactjs.org/tree/master/${
116116
markdownRemark.fields.path
117117
}`}>
118-
Edit this page
118+
Edytuj tę stronę
119119
</a>
120120
</div>
121121
)}

src/pages/404.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ const PageNotFound = ({location}: Props) => (
2121
<Container>
2222
<div css={sharedStyles.articleLayout.container}>
2323
<div css={sharedStyles.articleLayout.content}>
24-
<Header>Page Not Found</Header>
25-
<TitleAndMetaTags title="React - Page Not Found" />
24+
<Header>Nie znaleziono strony</Header>
25+
<TitleAndMetaTags title="React - Nie znaleziono strony" />
2626
<div css={sharedStyles.markdown}>
27-
<p>We couldn't find what you were looking for.</p>
27+
<p>Nie udało nam się znaleźć tego, czego szukasz.</p>
2828
<p>
29-
Please contact the owner of the site that linked you to the
30-
original URL and let them know their link is broken.
29+
Prosimy o kontakt z administratorami strony, która przekierowała cię tutaj,
30+
i poinformowanie ich, że ten link jest nieprawidłowy.
3131
</p>
3232
</div>
3333
</div>

src/pages/acknowledgements.html.js

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ const Acknowlegements = ({data, location}) => (
1919
<Container>
2020
<div css={sharedStyles.articleLayout.container}>
2121
<div css={sharedStyles.articleLayout.content}>
22-
<Header>Acknowledgements</Header>
22+
<Header>Podziękowania</Header>
2323
<TitleAndMetaTags
2424
ogUrl={`${urlRoot}/acknowledgements.html`}
25-
title="React - Acknowledgements"
25+
title="React - Podziękowania"
2626
/>
2727

2828
<div css={sharedStyles.markdown}>
29-
<p>We'd like to thank all of our contributors:</p>
29+
<p>Chcielibyśmy podziękować osobom, które wniosły wkład w powstanie Reacta:</p>
3030

3131
<ul
3232
css={{
@@ -44,38 +44,32 @@ const Acknowlegements = ({data, location}) => (
4444
))}
4545
</ul>
4646

47-
<p>In addition, we're grateful to</p>
47+
<p>Oprócz tego, jesteśmy wdzięczni:</p>
4848
<ul>
4949
<li>
50-
<a href="https://github.com/jeffbski">Jeff Barczewski</a> for
51-
allowing us to use the{' '}
52-
<a href="https://www.npmjs.com/package/react">react</a> package
53-
name on npm.
50+
<a href="https://github.com/jeffbski">Jeffowi Barczewskiemu</a> za pozwolenie nam na wykorzystanie nazwy{' '}
51+
<a href="https://www.npmjs.com/package/react">react</a> dla naszej paczki w rejestrze NPM.
5452
</li>
5553
<li>
56-
<a href="https://christopheraue.net/">Christopher Aue</a> for
57-
letting us use the{' '}
58-
<a href="https://reactjs.com/">reactjs.com</a> domain name and
59-
the <a href="https://twitter.com/reactjs">@reactjs</a> username
60-
on Twitter.
54+
<a href="https://christopheraue.net/">Christopherowi Aue</a> za pozwolenie nam na wykorzystanie domeny{' '}
55+
<a href="https://reactjs.com/">reactjs.com</a> oraz nazwy{' '}
56+
<a href="https://twitter.com/reactjs">@reactjs</a> na Twitterze.
6157
</li>
6258
<li>
63-
<a href="https://github.com/ProjectMoon">ProjectMoon</a> for
64-
letting us use the{' '}
65-
<a href="https://www.npmjs.com/package/flux">flux</a> package
66-
name on npm.
59+
<a href="https://github.com/ProjectMoon">ProjectMoon</a> za pozwolenie nam na wykorzystanie nazwy{' '}
60+
<a href="https://www.npmjs.com/package/flux">flux</a> dla naszej paczki w rejestrze NPM.
6761
</li>
6862
<li>
69-
Shane Anderson for allowing us to use the{' '}
70-
<a href="https://github.com/react">react</a> org on GitHub.
63+
Shane'owi Andersonowi za pozwolenie nam na wykorzystanie nazwy{' '}
64+
<a href="https://github.com/react">react</a> dla organizacji na GitHubie.
7165
</li>
7266
<li>
73-
<a href="https://github.com/voronianski">Dmitri Voronianski</a>{' '}
74-
for letting us use the{' '}
67+
<a href="https://github.com/voronianski">Dmitriowi Voronianskiemu</a>{' '}
68+
za pozwolenie nam na wykorzystanie motywu{' '}
7569
<a href="https://labs.voronianski.com/oceanic-next-color-scheme/">
7670
Oceanic Next
7771
</a>{' '}
78-
color scheme on this website.
72+
na naszej stronie.
7973
</li>
8074
</ul>
8175
</div>

src/pages/blog/all.html.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ const AllBlogPosts = ({data, location}: Props) => (
2828
<Container>
2929
<div css={sharedStyles.articleLayout.container}>
3030
<div css={sharedStyles.articleLayout.content}>
31-
<Header>All Posts</Header>
31+
<Header>Wszystkie posty</Header>
3232
<TitleAndMetaTags
3333
ogUrl={`${urlRoot}/blog/all.html`}
34-
title="React - All Posts"
34+
title="React - Wszystkie posty"
3535
/>
3636
<ul
3737
css={{

src/pages/languages.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,29 @@ const Languages = ({location}: Props) => (
4646
<Container>
4747
<div css={sharedStyles.articleLayout.container}>
4848
<div css={sharedStyles.articleLayout.content}>
49-
<Header>Languages</Header>
50-
<TitleAndMetaTags title="React - Languages" />
49+
<Header>Języki</Header>
50+
<TitleAndMetaTags title="React - Języki" />
5151

5252
<div css={sharedStyles.markdown}>
5353
<p>
54-
The React documentation is available in the following languages:
54+
Dokumentacja Reacta jest dostępna w następujących językach:
5555
</p>
5656

5757
<LanguagesGrid languages={complete} />
5858

59-
<h2>In Progress</h2>
59+
<h2>Prace w toku</h2>
6060
<LanguagesGrid languages={partial} />
6161

62-
<h2>Needs Contributors</h2>
62+
<h2>Potrzebna pomoc w tłumaczeniu</h2>
6363
<LanguagesGrid languages={incomplete} />
6464

6565
<p>
66-
Don't see your language above?{' '}
66+
Nie widzisz swojego języka na liście?{' '}
6767
<a
6868
href="https://github.com/reactjs/reactjs.org-translation#reactjsorg-translation"
6969
target="_blank"
7070
rel="noopener">
71-
Let us know
71+
Daj nam o tym znać
7272
</a>
7373
.
7474
</p>
@@ -149,7 +149,7 @@ const Language = ({code, name, status, translatedName}) => {
149149
href={`https://github.com/reactjs/${prefix}reactjs.org/`}
150150
target="_blank"
151151
rel="noopener">
152-
Contribute
152+
Wspomóż nas
153153
</a>
154154
</div>
155155
</li>

src/pages/versions.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ const Versions = ({location}: Props) => (
2424
<Container>
2525
<div css={sharedStyles.articleLayout.container}>
2626
<div css={sharedStyles.articleLayout.content}>
27-
<Header>React Versions</Header>
28-
<TitleAndMetaTags title="React - Versions" />
27+
<Header>Wersje Reacta</Header>
28+
<TitleAndMetaTags title="React - Wersje" />
2929
<div css={sharedStyles.markdown}>
3030
<p>
31-
A complete release history for React is available{' '}
31+
Kompletna historia wypuszczonych wersji Reacta jest dostępna{' '}
3232
<a
3333
href="https://github.com/facebook/react/releases"
3434
target="_blank"
3535
rel="noopener">
36-
on GitHub
36+
na GitHubie
3737
</a>
3838
.<br />
39-
Documentation for recent releases can also be found below.
39+
Dokumentacje dla ostatnich wersji można również znaleźć poniżej.
4040
</p>
4141
<p>
42-
See our FAQ for information about{' '}
42+
Przeczytaj nasze FAQ, aby dowiedzieć się na temat{' '}
4343
<a href="/docs/faq-versioning.html">
44-
our versioning policy and commitment to stability
44+
naszej polityki wersjonowania i gwarancji stabilności
4545
</a>
4646
.
4747
</p>
@@ -51,13 +51,13 @@ const Versions = ({location}: Props) => (
5151
<ul>
5252
<li>
5353
<a href={version.changelog} target="_blank" rel="noopener">
54-
Changelog
54+
Dziennik zmian
5555
</a>
5656
</li>
5757
{version.path && (
5858
<li>
5959
<a href={version.path} rel="nofollow">
60-
Documentation
60+
Dokumentacja
6161
</a>
6262
</li>
6363
)}

0 commit comments

Comments
 (0)