Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 24b328c

Browse files
authored
Merge pull request #1 from mkpankov/master
Реализуем скелет перевода сайта на русский
2 parents cdc8b36 + 114be00 commit 24b328c

25 files changed

+3775
-0
lines changed

_includes/ru-RU/example.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Этот код можно отредактировать и запустить!
2+
fn main() {
3+
// Простой целочисленный калькулятор:
4+
// `+` или `-` означает прибавление или вычитание единицы
5+
// `*` или `/` означает умножение или деление на 2
6+
7+
let program = "+ + * - /";
8+
let mut accumulator = 0;
9+
10+
for token in program.chars() {
11+
match token {
12+
'+' => accumulator += 1,
13+
'-' => accumulator -= 1,
14+
'*' => accumulator *= 2,
15+
'/' => accumulator /= 2,
16+
_ => { /* игнорируем всё остальное */ }
17+
}
18+
}
19+
20+
println!("Программа \"{}\" производит значение {}",
21+
program, accumulator);
22+
}

_includes/ru-RU/example.rs.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<pre class='rust'>
2+
<span class='kw'>fn</span> main() {
3+
<span class='comment'>// Простой целочисленный калькулятор:
4+
// `+` или `-` означает прибавление или вычитание единицы
5+
// `*` или `/` означает умножение или деление на 2</span>
6+
7+
<span class='kw'>let</span> program = <span class='string'>"+ + * - /"</span>;
8+
<span class='kw'>let</span> <span class='kw'>mut</span> accumulator = <span class='number'>0</span>;
9+
10+
<span class='kw'>for</span> token in program.chars() {
11+
<span class='kw'>match</span> token {
12+
<span class='string'>'+'</span> => accumulator <span class='op'>+=</span> <span class='number'>1</span>,
13+
<span class='string'>'-'</span> => accumulator <span class='op'>-=</span> <span class='number'>1</span>,
14+
<span class='string'>'*'</span> => accumulator <span class='op'>*=</span> <span class='number'>2</span>,
15+
<span class='string'>'/'</span> => accumulator <span class='op'>/=</span> <span class='number'>2</span>,
16+
_ => { <span class='comment'>/* игнорируем всё остальное */</span> }
17+
}
18+
}
19+
20+
<span class='prelude-val'>println!</span>(<span class='string'>"Программа \"{}\" производит значение {}"</span>,
21+
program, accumulator);
22+
}
23+
</pre>

_includes/set_platform.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"en-US": {"linux": "Linux binary", "windows": "Windows Installer", "mac": "Mac Installer"},
99
"pt": {"linux": "Binário Linux", "windows": "Instalador Windows", "mac": "Instalador Mac"},
1010
"pt-BR": {"linux": "Binário Linux", "windows": "Instalador Windows", "mac": "Instalador Mac"},
11+
"ru": {"linux": "Исполняемые файлы для Linux", "windows": "Установщик для Windows", "mac": "Установщик для Mac"},
12+
"ru-RU": {"linux": "Исполняемые файлы для Linux", "windows": "Установщик для Windows", "mac": "Установщик для Mac"},
1113
// Add more platforms here
1214
};
1315
return platforms[get_language()][platform];

_layouts/redirect.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"en-US": "en-US",
1212
"pt": "pt-BR", // For now, since there's no pt-PT page, redirect to pt-BR
1313
"pt-BR": "pt-BR",
14+
"ru": "ru-RU",
15+
"ru-RU": "ru-RU",
1416
};
1517

1618
// look up the provided language in the map

_layouts/ru-RU/basic.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<!-- Page last generated {{ site.time }} -->
3+
<html lang="ru-RU">
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<title>{{ page.title }}</title>
9+
<meta name="keywords" content="Rust, Rust programming language, язык программирования Rust, rustlang, rust-lang, Mozilla Rust">
10+
<meta name="description" content="Системный язык программирования, который очень быстро работает, предотвращает segfault'ы, и гарантирует потокобезопасность.">
11+
12+
<link rel="stylesheet" href="/css/bootstrap.css">
13+
<link rel="stylesheet" href="/css/style.css">
14+
</head>
15+
16+
<body class="container">
17+
<a href="https://github.com/rust-lang/rust">
18+
<img class="ribbon" style="display: none" src="/logos/forkme.png" alt="Fork me on GitHub" width="298" height="298">
19+
</a>
20+
21+
<header>
22+
<ul class="row menu">
23+
<li class="col-xs-12 col-md-2">
24+
<a href="/index.html">
25+
<img class="img-responsive" src="/logos/rust-logo-blk.svg" onerror="this.src='/logos/rust-logo-256x256-blk.png'" height="128" width="128" alt="Rust logo" />
26+
</a>
27+
</li>
28+
<li class="col-xs-12 col-md-10 menu">
29+
<h2><a href="/documentation.html">Документация</a></h2>
30+
<h2><a href="/community.html">Сообщество</a></h2>
31+
<h2><a href="/downloads.html">Загрузки</a></h2>
32+
<h2><a href="/contribute.html">Участие</a></h2>
33+
</li>
34+
</ul>
35+
</header>
36+
37+
{{ content }}
38+
39+
<script>
40+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
41+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
42+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
43+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
44+
45+
ga('create', 'UA-58390457-1', 'auto');
46+
ga('send', 'pageview');
47+
48+
</script>
49+
</body>
50+
</html>

_layouts/ru-RU/default.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: ru-RU/basic
3+
---
4+
5+
<div class="content">
6+
{{ content }}
7+
</div>

ru-RU/community.md

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
---
2+
layout: ru-RU/default
3+
title: The Rust Community &middot; The Rust Programming Language
4+
---
5+
6+
# The Rust Community
7+
8+
The Rust programming language has many qualities, but Rust's greatest
9+
strength is the community of people who come together to make working
10+
in Rust a rewarding experience.
11+
12+
We are committed to providing a friendly, safe and welcoming
13+
environment for all, regardless of gender, sexual orientation,
14+
disability, ethnicity, religion, or similar personal
15+
characteristic. Our [code of conduct][coc] sets the standards for
16+
behavior in all official Rust forums.
17+
18+
If you feel you have been or are
19+
being harassed or made uncomfortable by a community member, please
20+
[contact][mod_team_email] any of the [Rust Moderation Team][mod_team]
21+
immediately. Whether you are a regular contributor or a newcomer, we
22+
care about making the community a safe space for you.
23+
24+
[coc]: https://www.rust-lang.org/conduct.html
25+
[mod_team]: https://www.rust-lang.org/team.html#Moderation
26+
[mod_team_email]: mailto:[email protected]
27+
28+
## Getting Started
29+
30+
The most important community resources for those new to Rust are:
31+
32+
- [#rust-beginners][beginners_irc], an IRC channel that
33+
loves answering questions at any depth.
34+
- The [Users Forum][users_forum], for discussion of all
35+
things Rust.
36+
37+
You may also find help on the question and answer site, [Stack Overflow][stack_overflow].
38+
39+
[stack_overflow]: https://stackoverflow.com/questions/tagged/rust
40+
41+
## News
42+
43+
[This Week in Rust][twir] collects the latest news, upcoming events
44+
and a week-by-week account of changes in the Rust language and
45+
libraries. [The Rust Blog][rust_blog] is where the Rust team makes
46+
announcements about major developments. And nearly everything happening in
47+
Rust is discussed on the unofficial subreddit, [/r/rust][reddit].
48+
49+
We also have a [Twitter][twitter] account.
50+
51+
[twir]: https://this-week-in-rust.org/
52+
[rust_blog]: http://blog.rust-lang.org/
53+
[reddit]: https://www.reddit.com/r/rust
54+
[reddit_coc]: https://www.reddit.com/r/rust/comments/2rvrzx/our_code_of_conduct_please_read/
55+
[twitter]: https://twitter.com/rustlang
56+
57+
## IRC Channels
58+
59+
Rustaceans maintain a number of friendly, high-traffic [IRC] channels on Mozilla's IRC network, irc.mozilla.org.
60+
61+
The [#rust][rust_irc] channel is a venue for general
62+
discussion about Rust, and a good place to ask for help. You'll find
63+
people willing to answer any questions about Rust, and
64+
responses are typically fast.
65+
66+
Rust's developers coordinate in [#rust-internals][internals_irc]. It is for real-time discussion about hacking on Rust itself. It is also the channel to ask questions about contributing to Rust.
67+
68+
### Main channels
69+
70+
- [#rust][rust_irc] is for all things Rust
71+
- [#rust-beginners][beginners_irc] is a space for those new to Rust, lower traffic than #rust
72+
- [#rust-internals][internals_irc] is for discussion of other Rust implementation topics
73+
- [#rustc][rustc_irc] is the home of the [compiler team][compiler_team]
74+
- [#rust-libs][libs_irc] is the home of the [libraries team][library_team]
75+
- [#rust-tools][tools_irc] is the home of the [tools and infrastructure team][tool_team]
76+
- [#rust-lang][lang_irc] is the home of the [language team][language_team]
77+
- [#rust-community][community_irc] is the home of the [community team][community_team]
78+
79+
### International channels
80+
81+
- [#rust-br][br_irc] é dedicado à discussão sobre Rust no Brasil
82+
- [#rust-de][de_irc] ist für die allgemeine Diskussion über Rust auf Deutsch
83+
- [#rust-es][es_irc] es para una discusión general sobre Rust en español
84+
- [#rust-fr][fr_irc] est dédié à la programmation en Rust en français
85+
- [#rust-ru][ru_irc] для общих дискуссий о Rust на русском языке
86+
87+
### Topical channels
88+
89+
- [#cargo][cargo_irc] is for discussion of Cargo, Rust's package manager
90+
- [#rust-bots][bots_irc] notifications about Rust from a selection of bots
91+
- [#rust-docs][docs_irc] is the home of the unoffical documentation team
92+
- [#rust-crypto][crypto_irc] is for discussion of cryptography in Rust
93+
- [#rust-gamedev][gamedev_irc] is for people doing game development in Rust
94+
- [#rust-networking][networking_irc] is for people doing computer networking and development in Rust
95+
- [#rust-offtopic][offtopic_irc] is for general chit-chat amongst Rustaceans
96+
- [#rust-osdev][osdev_irc] is for people doing OS development in Rust
97+
- [#rust-webdev][webdev_irc] is for people doing web development in Rust
98+
- [#servo][servo_irc] is for discussion of Servo, the browser engine written in Rust
99+
100+
[IRC]: https://en.wikipedia.org/wiki/Internet_Relay_Chat
101+
[beginners_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-beginners
102+
[bots_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-bots
103+
[br_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-br
104+
[cargo_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23cargo
105+
[community_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-community
106+
[crypto_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-crypto
107+
[de_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-de
108+
[es_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-es
109+
[fr_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-fr
110+
[gamedev_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-gamedev
111+
[internals_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
112+
[lang_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-lang
113+
[libs_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-libs
114+
[networking_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-networking
115+
[offtopic_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-offtopic
116+
[osdev_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-osdev
117+
[ru_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-ru
118+
[rust_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
119+
[rustc_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rustc
120+
[servo_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23servo
121+
[tools_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-tools
122+
[webdev_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-webdev
123+
[docs_irc]: https://client00.chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-docs
124+
125+
## Discussion Forums
126+
127+
We have two forums for asynchronous discussion:
128+
129+
- The [Users Forum][users_forum], a space for asking questions, posting code
130+
snippets, talking about Rust projects, and so on.
131+
132+
- The [Internals Forum][internals_forum], a space dedicated to design and
133+
implementation discussion about Rust itself (which includes Cargo, the
134+
standard library, and other core bits of infrastructure).
135+
136+
[users_forum]: https://users.rust-lang.org/
137+
[internals_forum]: https://internals.rust-lang.org/
138+
139+
## User Groups and Meetups
140+
141+
There are more than 50 [Rust User Groups][user_group] worldwide in over 20
142+
countries totaling over 7,000 members. Rustaceans meet periodically in Rust User
143+
Groups. Its a great introduction to the community and a great way to learn and
144+
socialize with other people with a similar interest. Meetings are
145+
usually held monthly and very informal. Meetings are open to everyone.
146+
147+
There is a global [calendar][calendar] for keeping up with Rust events.
148+
Contact the [community team][community_team] to add your own.
149+
150+
[user_group]: ./user-groups.html
151+
[calendar]: https://www.google.com/calendar/[email protected]
152+
153+
## The Rust Team
154+
155+
Rust has a community-driven development process where most decisions are made
156+
through open discussion and consensus, under the stewardship of various
157+
[teams][teams]:
158+
159+
* The [Core Team][core_team] is responsible for steering the design and
160+
development process, overseeing the introduction of new features, and ultimately
161+
making decisions for which there is no consensus (this happens rarely).
162+
163+
* The [Language Design Team][language_team] is responsible for the
164+
design of new language features.
165+
166+
* The [Library Team][library_team] is responsible for the Rust standard
167+
library, rust-lang crates, and conventions.
168+
169+
* The [Compiler Team][compiler_team] is responsible for compiler internals and
170+
optimizations.
171+
172+
* The [Tooling and Infrastructure Team][tool_team] is responsible for official
173+
tools like [Cargo], [rustup], and [rustfmt], as well as the CI Infrastructure for the
174+
project.
175+
176+
[Cargo]: https://crates.io
177+
[rustup]: https://www.rustup.rs
178+
[rustfmt]: https://github.com/rust-lang-nursery/rustfmt
179+
180+
* The [Community Team][community_team] is responsible for coordinating events,
181+
outreach, commercial users, teaching materials, and exposure. They can also
182+
direct inquiries to the correct parties when its not clear who to contact
183+
about something Rusty.
184+
185+
* The [Moderation Team][mod_team] is responsible for helping to uphold the
186+
[code of conduct][coc].
187+
188+
* The [Documentation Team][doc_team] is responsible for ensuring Rust has
189+
fantastic documentation.
190+
191+
In addition to the official team rosters, most teams also have a larger set
192+
of reviewers who are knowledgeable about the area and can sign off on
193+
code. If you're interested in getting involved in one of these teams,
194+
feel free to reach out to the team leader or any other member, who can
195+
help get you started.
196+
197+
[teams]: https://www.rust-lang.org/team.html
198+
[core_team]: https://www.rust-lang.org/team.html#Core
199+
[language_team]: https://www.rust-lang.org/team.html#Language-design
200+
[library_team]: https://www.rust-lang.org/team.html#Library
201+
[compiler_team]: https://www.rust-lang.org/team.html#Compiler
202+
[tool_team]: https://www.rust-lang.org/team.html#Tooling-and-infrastructure
203+
[community_team]: https://www.rust-lang.org/team.html#Community
204+
[mod_team]: https://www.rust-lang.org/team.html#Moderation
205+
[doc_team]: https://www.rust-lang.org/en-US/team.html#Documentation-team
206+
207+
## Rust Development
208+
209+
Rust has had over [1,200 different contributors][authors], a number that grows
210+
every single week. [We'd love for you to join that list][contribute]!
211+
212+
As mentioned above, the [Rust Internals Forum][internals_forum] is dedicated to
213+
discussing the design and implementation of Rust. A lot of discussion also
214+
happens on GitHub:
215+
216+
- The [main repository][github] and [issue tracker][issue_tracking] are the
217+
front lines of the implementation work. Our reviewers strive to be friendly
218+
and to help mentor newcomers, so don't hesitate to open a pull request!
219+
220+
- The [RFC repo][rfcs] tracks our Request for Comment process, the main pathway
221+
through which the Rust community and the teams reach consensus on new
222+
features proposed for the language and official libraries and tools.
223+
224+
Roughly weekly, the Rust teams produce [team reports][team_reports] tracking
225+
team business, including the progression of proposals through the RFC and
226+
implementation process.
227+
228+
[authors]: https://github.com/rust-lang/rust/blob/88397e092e01b6043b6f65772710dfe0e59056c5/AUTHORS.txt
229+
[contribute]: contribute.html
230+
[github]: https://github.com/rust-lang/rust
231+
[rfcs]: https://github.com/rust-lang/rfcs
232+
[team_reports]: https://github.com/rust-lang/subteams
233+
[issue_tracking]: https://github.com/rust-lang/rust/issues

0 commit comments

Comments
 (0)