From de8f61350a840cf159e1f0d387ef6380ffb837aa Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sun, 8 Jan 2017 22:47:36 +0100 Subject: [PATCH 01/14] Translation to Polish: redirect. --- _layouts/redirect.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_layouts/redirect.html b/_layouts/redirect.html index b5d59d25f..828d58a9e 100644 --- a/_layouts/redirect.html +++ b/_layouts/redirect.html @@ -13,6 +13,8 @@ "fr-FR": "fr", // Prevents 404 on existing links "ko": "ko-KR", "ko-KR": "ko-KR", + "pl": "pl-PL", + "pl-PL": "pl-PL", "pt": "pt-BR", // For now, since there's no pt-PT page, redirect to pt-BR "pt-BR": "pt-BR", "ru": "ru-RU", From 102f6ec536ce298636da47007e713a91f25e77b8 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sun, 8 Jan 2017 23:00:11 +0100 Subject: [PATCH 02/14] Translation to Polish: index. --- pl-PL/index.html | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pl-PL/index.html diff --git a/pl-PL/index.html b/pl-PL/index.html new file mode 100644 index 000000000..91738fd43 --- /dev/null +++ b/pl-PL/index.html @@ -0,0 +1,63 @@ +--- +layout: basic +title: Język Programowania Rust +--- + +
+
+

+ Rust to systemowy język programowania, + który jest niesamowicie szybki, + zapobiega naruszeniom pamięci + oraz gwarantuje bezpieczeństwo wątków. +
+ Zobacz kto używa Rust. +

+
+
+ +
Zainstaluj Rust {{ site.stable }}
+
+
{{ site.stable_date | date: "%-d %B %Y" }}
+
+
+ +
+
+

Zawiera

+
    +
  • abstrakcje o zerowym koszcie
  • +
  • semantyka przenoszenia
  • +
  • gwarancja bezpieczeństwa pamięci
  • +
  • wątki bez wyścigów (data races)
  • +
  • dziedziczenie oparte na cechach
  • +
  • pattern matching
  • +
  • inferencja typów
  • +
  • minimalny czas wykonania
  • +
  • wydajne bindingi do C
  • +
+
+
+
+ +
{% include example.rs %}
+
+ +
+
+
{% include example.rs.html %}
+ +
+
+ + From fc5077406a1ed292ffa0aff3f89d5e9cd90de1d6 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sun, 8 Jan 2017 23:10:49 +0100 Subject: [PATCH 03/14] Translation to Polish: examples. --- _includes/pl-PL/example.rs | 22 ++++++++++++++++ _includes/pl-PL/example.rs.html | 45 +++++++++++++++++++++++++++++++++ pl-PL/index.html | 4 +-- 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 _includes/pl-PL/example.rs create mode 100644 _includes/pl-PL/example.rs.html diff --git a/_includes/pl-PL/example.rs b/_includes/pl-PL/example.rs new file mode 100644 index 000000000..27eecb836 --- /dev/null +++ b/_includes/pl-PL/example.rs @@ -0,0 +1,22 @@ +// Ten kod można edytować oraz uruchomić! +fn main() { + // Prosty kalkulator dla liczb całkowitych: + // `+` lub `-` oznacza dodanie lub odjęcie 1 + // `*` lub `/` oznacza pomnożenie lub podzielenie przez 2 + + let program = "+ + * - /"; + let mut accumulator = 0; + + for token in program.chars() { + match token { + '+' => accumulator += 1, + '-' => accumulator -= 1, + '*' => accumulator *= 2, + '/' => accumulator /= 2, + _ => { /* ignoruj wszystkie pozostałe znaki */ } + } + } + + println!("Program \"{}\" wylicza wartość {}", + program, accumulator); +} diff --git a/_includes/pl-PL/example.rs.html b/_includes/pl-PL/example.rs.html new file mode 100644 index 000000000..029bf951b --- /dev/null +++ b/_includes/pl-PL/example.rs.html @@ -0,0 +1,45 @@ +
+fn main() {
+// Prosty kalkulator dla liczb całkowitych:
+// `+` lub `-` oznacza dodanie lub odjęcie 1
+// `*` lub `/` oznacza pomnożenie lub podzielenie przez 2
+
+let program = "+ + * - /";
+let mut accumulator = 0;
+
+for token in program.chars() {
+match token {
+    '+' => accumulator += 1,
+    '-' => accumulator -= 1,
+    '*' => accumulator *= 2,
+    '/' => accumulator /= 2,
+    _ => { /* ignoruj wszystkie pozostałe znaki */ }
+}
+}
+
+println!("Program \"{}\" wylicza wartość {}",
+   program, accumulator);
+}
+
+// Ten kod można edytować oraz uruchomić! +fn main() { + // Prosty kalkulator dla liczb całkowitych: + // `+` lub `-` oznacza dodanie lub odjęcie 1 + // `*` lub `/` oznacza pomnożenie lub podzielenie przez 2 + + let program = "+ + * - /"; + let mut accumulator = 0; + + for token in program.chars() { + match token { + '+' => accumulator += 1, + '-' => accumulator -= 1, + '*' => accumulator *= 2, + '/' => accumulator /= 2, + _ => { /* ignoruj wszystkie pozostałe znaki */ } + } + } + + println!("Program \"{}\" wylicza wartość {}", + program, accumulator); +} diff --git a/pl-PL/index.html b/pl-PL/index.html index 91738fd43..e6d0a3ce8 100644 --- a/pl-PL/index.html +++ b/pl-PL/index.html @@ -40,12 +40,12 @@

Zawiera

-
{% include example.rs %}
+
{% include pl-PL/example.rs %}
-
{% include example.rs.html %}
+
{% include pl-PL/example.rs.html %}
From 851b894ff695bea27d862ceb3f912323a58ec1d6 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sun, 8 Jan 2017 23:37:50 +0100 Subject: [PATCH 04/14] Translation to Polish: basic layout translated. --- _includes/footer.html | 2 +- _layouts/pl-PL/basic.html | 56 +++++++++++++++++++++++++++++++++++++++ pl-PL/index.html | 2 +- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 _layouts/pl-PL/basic.html diff --git a/_includes/footer.html b/_includes/footer.html index bdc69d8c1..bef5e048d 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -7,4 +7,4 @@ Português, Русский, Tiếng việt, -简体中文 \ No newline at end of file +简体中文 diff --git a/_layouts/pl-PL/basic.html b/_layouts/pl-PL/basic.html new file mode 100644 index 000000000..dae3f577a --- /dev/null +++ b/_layouts/pl-PL/basic.html @@ -0,0 +1,56 @@ + + + + + + + + {{ page.title }} + + + + + + + + + + + + +
+ +
+ + {{ content }} + +
+

Nasza strona w innych językach: + {% include footer.html %} +

+
+ + + + diff --git a/pl-PL/index.html b/pl-PL/index.html index e6d0a3ce8..fc406abd4 100644 --- a/pl-PL/index.html +++ b/pl-PL/index.html @@ -1,5 +1,5 @@ --- -layout: basic +layout: pl-PL/basic title: Język Programowania Rust --- From d9539bf5782850ede220ad1db31106d52526bde5 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sun, 8 Jan 2017 23:40:18 +0100 Subject: [PATCH 05/14] Translation to Polish: links to Polish version. --- _includes/footer.html | 1 + 1 file changed, 1 insertion(+) diff --git a/_includes/footer.html b/_includes/footer.html index bef5e048d..ef1c49b72 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -4,6 +4,7 @@ Italiano, 日本語, 한국어, +Polski, Português, Русский, Tiếng việt, From 2665545475588df58db61785ecb6a0c27161322a Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sun, 8 Jan 2017 23:55:27 +0100 Subject: [PATCH 06/14] Translation to Polish: friends. --- pl-PL/friends.html | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 pl-PL/friends.html diff --git a/pl-PL/friends.html b/pl-PL/friends.html new file mode 100644 index 000000000..47cca616f --- /dev/null +++ b/pl-PL/friends.html @@ -0,0 +1,71 @@ +--- +layout: pl-PL/basic +title: Przyjaciele Rust · Język Programowania Rust +--- + +
+ +

Przyjaciele Rust

+

(Organizacje używające Rust na produkcji)

+ + {% for user in site.data.users %} + {% assign mod = forloop.index | minus:1 | modulo:3 %} + {% if mod != 0 %} + {% continue %} + {% endif %} + + {% assign offset = forloop.index | minus:1 %} + +
+ {% for user in site.data.users limit:3 offset:offset %} +
+
+ + + +
+
+

{{user.name}} : {{user.how}}

+
+
+ + + {% endfor %} + +
+ + {% endfor %} + +

+ Jeżeli Twoja organizacja używa Rust na produkcji i chcesz, żeby była + umieszczona na tej stronie,
proszę + + proszę otworzyć issue i wypełnić wymagane informacje. +

+ +
From 5da8359f0cb379f5aee5d9d7add74d49ce6a396f Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Sun, 8 Jan 2017 23:57:44 +0100 Subject: [PATCH 07/14] Translation to Polish: default layout. --- _layouts/pl-PL/default.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 _layouts/pl-PL/default.html diff --git a/_layouts/pl-PL/default.html b/_layouts/pl-PL/default.html new file mode 100644 index 000000000..b0efe381e --- /dev/null +++ b/_layouts/pl-PL/default.html @@ -0,0 +1,7 @@ +--- +layout: pl-PL/basic +--- + +
+ {{ content }} +
From 8c7702421442da5846302215ea244e79fd4f7a89 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Mon, 9 Jan 2017 00:09:12 +0100 Subject: [PATCH 08/14] Translation to Polish: install. --- pl-PL/install.html | 191 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 pl-PL/install.html diff --git a/pl-PL/install.html b/pl-PL/install.html new file mode 100644 index 000000000..ab9103950 --- /dev/null +++ b/pl-PL/install.html @@ -0,0 +1,191 @@ +--- +layout: pl-PL/default +title: Instalacja · Język Programowania Rust +--- +

Zainstaluj Rust

+ +
+
+ + + + + + + + +
+
+

Aby zainstalować Rust, uruchom podane polecenie w terminalu oraz postępuj zgodnie z instrukcjami wyświetlanymi na ekranie.

+
curl https://sh.rustup.rs -sSf | sh
+
+ +
+ +
+

+ Jeżeli używasz systemu Windows,
pobierz i uruchom + rustup‑init.exe + oraz postępuj zgodnie z instrukcjami wyświetlanymi na ekranie. +

+
+ +
+ + + +
+ +

Notki dotyczące instalacji Rust

+ +
+
+ +

Zarządzanie zestawu narzędzi przez rustup

+ +

+ Rust jest instalowany i zarządzany przez narzędzie + rustup. + Rust ma 6-tygodniowy + + szybki proces wydań + i wspiera + + wiele platform, więc jest dostępnych wiele wydań w każdej chwili. + rustup zarządza tymi wydaniami w konsekwentny sposób na + każdej platformie, jaką wspiera Rust, umożliwiając instalację Rust z + kanałów beta oraz nightly, a także wsparcie dodatkowych + celów cross-kompilacji +

+ +

+ Po więcej informacji zajrzyj do + dokumentacji + rustup. +

+ +

Konfigurowanie zmiennej środowiskowej PATH

+ +

+ W środowisku programistycznym Rust, wszystkie narzędzia są instalowane + do katalogu + + ~/.cargo/bin + + , + i tam znajdziesz zestaw narzędzi Rust , zawierający + rustc, cargo oraz rustup. +

+ +

+ Zwyczajowym dla programisty Rust jest dołączenie tego katalogu do + zmiennej środowiskowej + PATH. Podczas instalacji, rustup, + spróbuje skonfigurować tę zmienną, ale ze względu na różnice pomiędzy platformami, + powłokami poleceń oraz błędami w rustup, modyfikacja + zmiennej PATH może nie przynieść efektu do restartu + konsoli, wylogowania użytkownika albo może w ogóle się nie udać. +

+ +

+ Jeżeli po instalacji uruchomienie rustc --version + w konsoli kończy się błędem jest to prawdopodobnie przyczyna złego + ustawienia zmiennej PATH. +

+ +
+ +

Dotyczy Windows

+ + + +

+ W Windows, Rust dodatkowo wymaga narzędzi budowania C++ + dla Visual Studio 2013 lub nowszego. Najprostszy sposób na zdobycie + narzędzi budowania to instalacja + + Microsoft Visual C++ Build Tools 2015 + , + który dostarcza wyłącznie narzędzi do budowania Visual C++. + Alternatywnie, możesz + zainstalować + Visual Studio 2015 lub Visual Studio 2013 i podczas instalacji wybrać + "C++ tools". +

+ +

+ Po więcej informacji dotyczących konfiguracji Rust w Windows zobacz + + dokumentację rustup dotyczącą Windows. +

+ +
+ +
+
+ +

Inne metody instalacji

+ +
+
+

+ Instalacja opisana powyżej, za pomocą rustup + to preferowany sposób instalacji Rust dla większości programistów, + ale Rust może być także + zainstalowany innymi sposobami. +

+
+
+ + From 58293c578a3be18b1493503460886e4965b83bc8 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Mon, 9 Jan 2017 12:11:25 +0100 Subject: [PATCH 09/14] Translation to Polish: other-installers. --- pl-PL/other-installers.md | 188 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 pl-PL/other-installers.md diff --git a/pl-PL/other-installers.md b/pl-PL/other-installers.md new file mode 100644 index 000000000..db44a4b75 --- /dev/null +++ b/pl-PL/other-installers.md @@ -0,0 +1,188 @@ +--- +layout: pl-PL/default +title: Inne Metody Instalacji · Język Programowania Rust +--- + +# Inne Metody Instalacji Rust + +- [Którego instalatora powinieneś użyć?](#which) +- [Inne sposoby instalacji `rustup`](#more-rustup) +- [Samodzielne instalatory](#standalone) +- [Kod źródłowy](#source) + +## Którego instalatora powinieneś użyć? + + +Rust działa na wielu platformach oraz jest wiele sposobów instalacji Rust. Jeżeli +chcesz zainstalować Rust w najprostszy, polecany sposób to kieruj się +instrukcjami na głównej [stronie instalacji]. + +Ta strona opisuje instalację za pomocą [`rustup`]: narzędzia, które zarządza +wieloma zestawami narzędzi Rust w konsekwentny sposób pomiędzy wszystkimi platformami, +które Rust wspiera. Czemu ktoś może _nie_ chcieć zainstalować +używając tych instrukcji? + +- Instalacja offline. `rustup` pobiera potrzebne zależności z internetu. + Jeżeli potrzebujesz zainstalować Rust bez dostępu do internetu, `rustup` + nie jest do tego odpowiednim narzędziem. +- Preferencja dla systemowego menedżera pakietów. Na Linuksie w szczególności, + ale także na macOS z [Homebrew] oraz na Windowsie z [Chocolatey], deweloperzy + czasami preferują zainstalować Rust za pomocą systemowego menedżera pakietów. +- Preferencja przeciw `curl | sh`. Na Uniksowych systemach, zazwyczaj + instalujemy `rustup` za pomocą uruchomienia skryptu przez `curl`. Niektórzy + mają wątpliwości dotyczące bezpieczeństwa takiego rozwiązania i wolą pobrać + oraz uruchomić instalator sami. +- Sprawdzenie sygnatur. Mimo, że `rustup` pobiera za pomocą HTTPS, jedynym + sposobem na weryfikację sygnatur instalatorów Rust jest chwilowo ręczne + pobranie za pomocą samodzielnego instalatora. +- Instalacja za pomocą instalatora z GUI oraz integracja z "Dodaj/Usuń Programy" + na Windowsie. `rustup` działa w konsoli i nie rejestruje swojej instalacji jak + typowy program Windowsowy. Jeżeli wolisz typowy instalator z GUI na Windowsie + to są instalatory `.msi`. W przyszłości `rustup` będzie miał instalator z GUI + na Windowsie. + +Platformy obsługiwane przez Rust są podzielone na [trzy rodzaje], które +mają dużo wspólnego z dostępnymi metodami instalacji: w ogólności, projekt Rust +dostarcza wydań binarnych dla wszystkich platform rodzaju 1 oraz rodzaju 2 oraz +są one możliwe do zainstalowania przy pomocy `rustup`. Niektóre platformy +rodzaju 2 mają tylko standardową bibliotekę dostępną, bez kompilatora; +a więc są one jedynie celami cross-kompilacji; kod Rust może być uruchomiony na +tych platformach, ale nie kompilator. Takie cele mogą być zainstalowane +za pomocą komendy `rustup target add`. + +## Inne sposoby instalacji `rustup` + + +Sposób instalacji `rustup` zależy od platformy: + +* Na systemach Uniksowych, uruchom `curl https://sh.rustup.rs -sSf | sh` w + swojej konsoli. Zostanie pobrany i uruchomiony [`rustup-init.sh`], który + pobierze i uruchomi odpowiednią wersję `rustup-init` dla twojej platformy. +* Na Windowsie, pobierz i uruchom [`rustup-init.exe`]. + +`rustup-init` może być skonfigurowane interaktywnie, wszystkie opcje mogą być +dodatkowo kontrolowane przez argumenty linii poleceń, które mogą być przekazane +przez skrypt konsolowy. Dodaj `--help` do uruchomienia `rustup-init` jak poniżej, +aby wyświetlić argumenty akceptowane przez `rustup-init`: + +``` +curl https://sh.rustup.rs -sSf | sh -s -- --help +``` + +Jeżeli wolisz nie używać tego skryptu, pobierz bezpośrednio `rustup-init` dla +twojej platformy: + +
+ {% for column in site.data.platforms.rustup %} +
+ {% for target in column %} + {% if target contains 'windows' %} + + {{ target }} + + {% else %} + + {{ target }} + + {% endif %} + {% endfor %} +
+ {% endfor %} +
+ +## Samodzielne instalatory + + +Oficjalne samodzielne instalatory Rust zawierają pojedyncze wydanie Rust, nadają +się do instalacji offline. Występują w trzech formatach: archiwa tar +(rozszerzenie `.tar.gz`), działają one na systemach Uniksowych, instalatory +Windowsowe (`.msi`), oraz instalatory Mac (`.pkg`). Te instalatory zawierają +`rustc`, `cargo`, `rustdoc`, standardową bibliotekę oraz standardową +dokumentację, ale nie dają dostępu do dodatkowych celów cross-kompilacji jak +`rustup`. + +Najczęstsze powody, aby ich użyć to: + +- Instalacja offline +- Preferowanie bardziej zintegrowanego z platformą, graficznego + instalatora w Windows + +Każda z tych binarek jest podpisana za pomocą [klucza GPG Rust], który jest +[dostępny na keybase.io], przez architekturę budowania Rust, przy pomocy +[GPG]. Tabelach poniżej, pliki `.asc` to sygnatury. + +Poprzednie wydania można znaleźć w [archiwum]. + +{% for channel in site.channels %} + +### {{ channel.name | capitalize }} ({{ channel.vers }}) + + +
+ {% for column in site.data.platforms[channel.name] %} +
+ {% for target in column %} +
+ {{ target }} + .tar.gz + .asc +
+ {% if target contains 'windows' %} +
+ {{ target }} + .msi + .asc +
+ {% elsif target contains 'darwin' %} +
+ {{ target }} + .pkg + .asc +
+ {% endif %} + {% endfor %} +
+ {% endfor %} +
+ +{% endfor %} + +## Kod źródłowy + + +
+
+
+ Stable + .tar.gz + .asc +
+
+
+
+ Beta + .tar.gz + .asc +
+
+
+
+ Nightly + .tar.gz + .asc +
+
+
+ +[stronie instalacji]: install.html +[`rustup`]: https://github.com/rust-lang-nursery/rustup.rs +[other-rustup]: https://github.com/rust-lang-nursery/rustup.rs#other-installation-methods +[`rustup-init.exe`]: https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe +[`rustup-init.sh`]: https://static.rust-lang.org/rustup/rustup-init.sh +[Homebrew]: http://brew.sh/ +[Chocolatey]: http://chocolatey.org/ +[trzy rodzaje]: https://forge.rust-lang.org/platform-support.html +[klucza GPG Rust]: https://static.rust-lang.org/rust-key.gpg.ascii +[GPG]: https://gnupg.org/ +[dostępny na keybase.io]: https://keybase.io/rust +[archiwum]: https://static.rust-lang.org/dist/index.html From bc9b592fff4aaa534961914c445363a77e4874e1 Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Mon, 9 Jan 2017 17:22:37 +0100 Subject: [PATCH 10/14] Translation to Polish: index: logo url fix. --- _layouts/pl-PL/basic.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/pl-PL/basic.html b/_layouts/pl-PL/basic.html index dae3f577a..87a9319d4 100644 --- a/_layouts/pl-PL/basic.html +++ b/_layouts/pl-PL/basic.html @@ -21,7 +21,7 @@