Skip to content

Commit 9773eb1

Browse files
Merge pull request #35 from startaper/ru_translation
Add ru translation
2 parents b5e603b + 751d0fc commit 9773eb1

64 files changed

Lines changed: 1525 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build/*
22
.bundle
3+
.idea

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ DEPENDENCIES
158158
therubyracer
159159

160160
BUNDLED WITH
161-
1.17.1
161+
2.0.1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Spanish translation by _Jesus Gabriel y Galan_ & _Pablo García_
1717
Dutch translation by _Ivo Herweijer_
1818
Brazilian Portuguese translation by [_Ricardo da Verdade Silva_](https://github.com/ricardovsilva)<br>
1919
Japanese translation by _Koji Shimada_ & _Masayoshi Takahashi_
20+
Russian translation by [_Alexander Nikolaev_](https://github.com/startaper)<br>
2021

2122
Suggestions to improve translations are welcome.
2223
If you submit a pull request updating a translation please

collector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def initialize(app, options_hash={}, &block)
138138
Collector.new('translations/es/try_ruby_*.md', 'source/try_ruby_es.json').collect
139139
Collector.new('translations/pt-br/try_ruby_*.md', 'source/try_ruby_pt-br.json').collect
140140
Collector.new('translations/ja/try_ruby_*.md', 'source/try_ruby_ja.json').collect
141+
Collector.new('translations/ru/try_ruby_*.md', 'source/try_ruby_ru.json').collect
141142

142143
# TODO: add any new translations here
143144

source/index.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ description: Learn to program in Ruby in 30 minutes
1919
<option value="es">Espa&ntilde;ol</option>
2020
<option value="pt-br">Português do Brasil</option>
2121
<option value="ja">日本語</option>
22+
<option value="ru">Русский</option>
2223
</select>
2324
</div>
2425
</div>

source/try_ruby_ru.json

Lines changed: 58 additions & 0 deletions
Large diffs are not rendered by default.

translations/en/try_ruby_550.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
lang: EN
33
title: It's All About Combining
4-
answer: :-
4+
answer: :-|
55
ok: Moody!
66
error:
77
load: prev

translations/ru/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Copyright (C)
2+
Try Ruby version 1 English version, 2008, _why the lucky stiff_
3+
Try Ruby version 2 English version, 2009-2013, _Andrew McElroy & David Miani_
4+
Try Ruby version 3 English version, 2013 ?, _Eric Allam & Nick Walsh_
5+
Try Ruby version 4 English version, 2014-2015, _Ivo Herweijer_
6+
Try Ruby version 4 Russian version, 2018-2019, _Alexander Nikolaev_
7+
8+
## The MIT License
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the "Software"), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
14+
furnished to do so, subject to the following conditions:
15+
16+
The above copyright notice and this permission notice shall be included in
17+
all copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
THE SOFTWARE.

translations/ru/try_ruby_10.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
lang: RU
3+
title: Есть 30 минут? Дай Ruby шанс, и он тебя удивит!
4+
answer:
5+
class: stretcher chapmark
6+
ok:
7+
error:
8+
---
9+
10+
Ruby - это язык программирования из Японии, который произвел революцию в веб-разработке.
11+
12+
Прелесть Ruby в балансе между простотой и возможностями.
13+
14+
Ты можешь ввести код на Ruby в редакторе и использовать кнопки для навигации:
15+
16+
17+
- __Run__ &rarr; Выполнить код, находящийся в редакторе
18+
- __Copy__ &rarr; Вставить/скопировать пример кода в редактор
19+
- __Next__ &rarr; Перейти к следующему уроку
20+
- __Back__ &rarr; Вернуться к предыдущему уроку
21+
- __Clear__ &rarr; Очистить редактор
22+
23+
Используй кнопку 'world' button <span aria-hidden="true" class="glyphicon glyphicon-globe"></span>
24+
чтобы изменить язык TryRuby.
25+
26+
### Нажми __Next__ для начала обучения.

translations/ru/try_ruby_100.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
lang: RU
3+
title: Остановись, ты сумасшедший!
4+
answer: ^\d{1,}$
5+
ok: Только строки могут быть развернуты задом наперед
6+
error:
7+
---
8+
9+
Ты не можешь развернуть число задом наперед. Я думаю, Вы, конечно можете держать монитор перед зерколом, но разворачивание числа просто не имеет смысла.
10+
11+
Ruby выведет сообщение с ошибкой. Ruby говорит Вам, что не существует метода reverse для чисел.
12+
13+
14+
Но можно попробовать преобразовать число 40 в строку для начала:
15+
16+
40.to_s.reverse

0 commit comments

Comments
 (0)