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

Commit c181d15

Browse files
committed
Sync with upstream and add italian to the new pages
2 parents d111f9c + 09ee1ea commit c181d15

Some content is hidden

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

59 files changed

+8459
-25
lines changed

_includes/ja-JP/example.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// This code is editable and runnable!
2+
fn main() {
3+
// A simple integer calculator:
4+
// `+` or `-` means add or subtract by 1
5+
// `*` or `/` means multiply or divide by 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+
_ => { /* ignore everything else */ }
17+
}
18+
}
19+
20+
println!("The program \"{}\" calculates the value {}",
21+
program, accumulator);
22+
}

_includes/ja-JP/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'>// A simple integer calculator:
4+
// `+` or `-` means add or subtract by 1
5+
// `*` or `/` means multiply or divide by 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'>/* ignore everything else */</span> }
17+
}
18+
}
19+
20+
<span class='prelude-val'>println!</span>(<span class='string'>"The program \"{}\" calculates the value {}"</span>,
21+
program, accumulator);
22+
}
23+
</pre>

_layouts/basic.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ <h2><a href="/en-US/contribute.html">Contribute</a></h2>
3939
<footer>
4040
<p>Our site in other languages:
4141
<a href="/fr/">Français</a>,
42+
<a href="/ja-JP/">日本語</a>,
4243
<a href="/ko-KR/">한국어</a>,
4344
<a href="/pt-BR/">Português</a>,
4445
<a href="/ru-RU/">Русский</a>,
4546
<a href="/zh-CN/">简体中文</a>,
4647
<a href="/it-IT/">Italiano</a>
48+
<a href="/vi-VN/">Tiếng việt</a>,
49+
<a href="/zh-CN/">简体中文</a>
4750
</p>
4851
</footer>
4952

_layouts/fr/basic.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ <h2><a href="/fr/contribute.html">Contribuer</a></h2>
3939
<footer>
4040
<p>Notre site dans d'autres langues&nbsp;:
4141
<a href="/en-US/">English</a>,
42+
<a href="/ja-JP/">日本語</a>,
4243
<a href="/ko-KR/">한국어</a>,
4344
<a href="/pt-BR/">Português</a>,
4445
<a href="/ru-RU/">Русский</a>,
4546
<a href="/zh-CN/">简体中文</a>,
4647
<a href="/it-IT/">Italiano</a>
48+
<a href="/vi-VN/">Tiếng việt</a>,
49+
<a href="/zh-CN/">简体中文</a>
4750
</p>
4851
</footer>
4952

_layouts/ja-JP/basic.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!DOCTYPE html>
2+
<!-- Page last generated {{ site.time }} -->
3+
<html lang="ja">
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言語, rustlang, rust-lang, Mozilla Rust">
10+
<meta name="description" content="Rustは速度、安全性、並行性の3つのゴールにフォーカスしたシステムプログラミング言語です。">
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="/ja-JP/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="/en-US/documentation.html">ドキュメンテーション</a></h2>
30+
<h2><a href="/en-US/install.html">インストール</a></h2>
31+
<h2><a href="/en-US/community.html">コミュニティ</a></h2>
32+
<h2><a href="/en-US/contribute.html">開発に参加する</a></h2>
33+
</li>
34+
</ul>
35+
</header>
36+
37+
{{ content }}
38+
39+
<footer>
40+
<p>他の言語のページ:
41+
<a href="/en-US/">English</a>,
42+
<a href="/fr/">Français</a>,
43+
<a href="/ko-KR/">한국어</a>,
44+
<a href="/pt-BR/">Português</a>,
45+
<a href="/ru-RU/">Русский</a>,
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
48+
</p>
49+
</footer>
50+
51+
<script>
52+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
53+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
54+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
55+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
56+
57+
ga('create', 'UA-58390457-1', 'auto');
58+
ga('send', 'pageview');
59+
60+
</script>
61+
</body>
62+
</html>

_layouts/ja-JP/default.html

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

_layouts/ja-JP/faq.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
---
4+
5+
<link href='https://fonts.googleapis.com/css?family=Source+Serif+Pro:400,600' rel='stylesheet' type='text/css'>
6+
<link href='/css/syntax-highlight.css' rel='stylesheet' type='text/css'>
7+
8+
<div class="faq">
9+
{{ content }}
10+
</div>

_layouts/ko-KR/basic.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ <h2><a href="/ko-KR/contribute.html">기여하기</a></h2>
4040
<p>이 사이트를 다른 언어로 보기:
4141
<a href="/en-US/">English</a>,
4242
<a href="/fr/">Français</a>,
43+
<a href="/ja-JP/">日本語</a>,
4344
<a href="/pt-BR/">Português</a>,
4445
<a href="/ru-RU/">Русский</a>,
4546
<a href="/zh-CN/">简体中文</a>,
4647
<a href="/it-IT/">Italiano</a>
48+
<a href="/vi-VN/">Tiếng việt</a>,
49+
<a href="/zh-CN/">简体中文</a>
4750
</p>
4851
</footer>
4952

_layouts/pt-BR/basic.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ <h2><a href="/pt-BR/contribute.html">Contribua</a></h2>
4040
<p>Nosso site em outros idiomas:
4141
<a href="/en-US/">English</a>,
4242
<a href="/fr/">Français</a>,
43+
<a href="/ja-JP/">日本語</a>,
4344
<a href="/ko-KR/">한국어</a>,
4445
<a href="/ru-RU/">Русский</a>,
4546
<a href="/zh-CN/">简体中文</a>,
4647
<a href="/it-IT/">Italiano</a>
48+
<a href="/vi-VN/">Tiếng việt</a>,
49+
<a href="/zh-CN/">简体中文</a>
4750
</p>
4851
</footer>
4952

_layouts/ru-RU/basic.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</li>
2828
<li class="col-xs-12 col-md-10 menu">
2929
<h2><a href="/ru-RU/documentation.html">Документация</a></h2>
30-
<h2><a href="/ru-RU/install.html">Install</a></h2>
30+
<h2><a href="/ru-RU/install.html">Установка</a></h2>
3131
<h2><a href="/ru-RU/community.html">Сообщество</a></h2>
3232
<h2><a href="/ru-RU/contribute.html">Участие</a></h2>
3333
</li>
@@ -40,10 +40,13 @@ <h2><a href="/ru-RU/contribute.html">Участие</a></h2>
4040
<p>Наш сайт на других языках:
4141
<a href="/en-US/">English</a>,
4242
<a href="/fr/">Français</a>,
43+
<a href="/ja-JP/">日本語</a>,
4344
<a href="/ko-KR/">한국어</a>,
4445
<a href="/pt-BR/">Português</a>,
4546
<a href="/zh-CN/">简体中文</a>,
4647
<a href="/it-IT/">Italiano</a>
48+
<a href="/vi-VN/">Tiếng việt</a>,
49+
<a href="/zh-CN/">简体中文</a>
4750
</p>
4851
</footer>
4952

_layouts/vi-VN/basic.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!DOCTYPE html>
2+
<!-- Page last generated {{ site.time }} -->
3+
<html lang="en">
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, rustlang, rust-lang, Mozilla Rust">
10+
<meta name="description" content="A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.">
11+
12+
<link rel="stylesheet" href="/css/bootstrap.css">
13+
<link rel="stylesheet" href="/css/style-vi.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="/vi-VN/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="/vi-VN/documentation.html">Tài liệu</a></h2>
30+
<h2><a href="/vi-VN/install.html">Cài đặt</a></h2>
31+
<h2><a href="/vi-VN/community.html">Cộng đồng</a></h2>
32+
<h2><a href="/vi-VN/contribute.html">Đóng góp</a></h2>
33+
</li>
34+
</ul>
35+
</header>
36+
37+
{{ content }}
38+
39+
<footer>
40+
<p>Our site in other languages:
41+
<a href="/en-US/">English</a>,
42+
<a href="/fr/">Français</a>,
43+
<a href="/ko-KR/">한국어</a>,
44+
<a href="/pt-BR/">Português</a>,
45+
<a href="/ru-RU/">Русский</a>,
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
48+
</p>
49+
</footer>
50+
51+
<script>
52+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
53+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
54+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
55+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
56+
57+
ga('create', 'UA-58390457-1', 'auto');
58+
ga('send', 'pageview');
59+
60+
</script>
61+
</body>
62+
</html>

_layouts/vi-VN/default.html

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

_layouts/zh-CN/basic.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ <h2><a href="/zh-CN/contribute.html">贡献</a></h2>
4040
<p>本土化页面:
4141
<a href="/en-US/">English</a>,
4242
<a href="/fr/">Français</a>,
43+
<a href="/ja-JP/">日本語</a>,
4344
<a href="/ko-KR/">한국어</a>,
4445
<a href="/pt-BR/">Português</a>,
4546
<a href="/ru-RU/">Русский</a>,
47+
<<<<<<< HEAD
4648
<a href="/it-IT/">Italiano</a>
49+
=======
50+
<a href="/vi-VN/">Tiếng việt</a>
51+
>>>>>>> upstream/master
4752
</p>
4853
</footer>
4954

0 commit comments

Comments
 (0)