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

Commit 594e56f

Browse files
authored
Merge pull request #678 from gabibbo97/master
Complete italian translation
2 parents 4b18d0e + 141ef38 commit 594e56f

34 files changed

+4114
-5
lines changed

_includes/it-IT/example.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Questo codice é modificabile e eseguibile!
2+
fn main() {
3+
// Una semplice calcolatrice per numeri interi:
4+
// `+` o `-` aggiunge o sottrae 1
5+
// `*` o `/` moltiplica o divide per 2
6+
7+
let programma = "+ + * - /";
8+
let mut accumulatore = 0;
9+
10+
for simbolo in programma.chars() {
11+
match simbolo {
12+
'+' => accumulatore += 1,
13+
'-' => accumulatore -= 1,
14+
'*' => accumulatore *= 2,
15+
'/' => accumulatore /= 2,
16+
_ => { /* ignora gli altri caratteri */ }
17+
}
18+
}
19+
20+
println!("Il programma \"{}\" calcola il valore {}",
21+
programma, accumulatore);
22+
}

_includes/it-IT/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'>// Una semplice calcolatrice per numeri interi:
4+
// `+` o `-` aggiunge o sottrae 1
5+
// `*` o `/` moltiplica o divide per 2</span>
6+
7+
<span class='kw'>let</span> programma = <span class='string'>"+ + * - /"</span>;
8+
<span class='kw'>let</span> <span class='kw'>mut</span> accumulatore = <span class='number'>0</span>;
9+
10+
<span class='kw'>for</span> simbolo in programma.chars() {
11+
<span class='kw'>match</span> simbolo {
12+
<span class='string'>'+'</span> => accumulatore <span class='op'>+=</span> <span class='number'>1</span>,
13+
<span class='string'>'-'</span> => accumulatore <span class='op'>-=</span> <span class='number'>1</span>,
14+
<span class='string'>'*'</span> => accumulatore <span class='op'>*=</span> <span class='number'>2</span>,
15+
<span class='string'>'/'</span> => accumulatore <span class='op'>/=</span> <span class='number'>2</span>,
16+
_ => { <span class='comment'>/* ignora gli altri caratteri */</span> }
17+
}
18+
}
19+
20+
<span class='prelude-val'>println!</span>(<span class='string'>"Il programma \"{}\" calcola il valore {}"</span>,
21+
programma, accumulatore);
22+
}
23+
</pre>

_layouts/basic.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ <h2><a href="/en-US/contribute.html">Contribute</a></h2>
4040
<p>Our site in other languages:
4141
<a href="/es-ES/">Español</a>,
4242
<a href="/fr-FR/">Français</a>,
43-
<a href="/ja-JP/">日本語</a>,
43+
<a href="/ja-JP/">日本語</a>,
4444
<a href="/ko-KR/">한국어</a>,
4545
<a href="/pt-BR/">Português</a>,
4646
<a href="/ru-RU/">Русский</a>,
47+
<a href="/zh-CN/">简体中文</a>,
48+
<a href="/it-IT/">Italiano</a>
4749
<a href="/vi-VN/">Tiếng việt</a>,
4850
<a href="/zh-CN/">简体中文</a>
4951
</p>

_layouts/fr-FR/basic.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ <h2><a href="/fr-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>,
42+
<a href="/ja-JP/">日本語</a>,
4343
<a href="/ko-KR/">한국어</a>,
4444
<a href="/pt-BR/">Português</a>,
4545
<a href="/ru-RU/">Русский</a>,
46-
<a href="/vi-VN/">Tiếng việt</a>,
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
48+
<a href="/vi-VN/">Tiếng việt</a>,
4749
<a href="/zh-CN/">简体中文</a>
4850
</p>
4951
</footer>

_layouts/it-IT/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, Linguaggio di programmazione Rust, rustlang, rust-lang, Mozilla Rust">
10+
<meta name="description" content="Un linguaggio di programmazione per sistemi ad altissime prestazioni che previene errori di segmentazione e assicura la sicurezza della memoria.">
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="Forkami 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="/it-IT/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="/it-IT/documentation.html">Documentazione</a></h2>
30+
<h2><a href="/it-IT/install.html">Installazione</a></h2>
31+
<h2><a href="/it-IT/community.html">Comunitá</a></h2>
32+
<h2><a href="/it-IT/contribute.html">Contribuisci</a></h2>
33+
</li>
34+
</ul>
35+
</header>
36+
37+
{{ content }}
38+
39+
<footer>
40+
<p>Il nostro sito in altre lingue:
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/it-IT/default.html

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

_layouts/ja-JP/basic.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ <h2><a href="/en-US/contribute.html">開発に参加する</a></h2>
4343
<a href="/ko-KR/">한국어</a>,
4444
<a href="/pt-BR/">Português</a>,
4545
<a href="/ru-RU/">Русский</a>,
46-
<a href="/zh-CN/">简体中文</a>
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
4748
</p>
4849
</footer>
4950

_layouts/ko-KR/basic.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ <h2><a href="/ko-KR/contribute.html">기여하기</a></h2>
4343
<a href="/ja-JP/">日本語</a>,
4444
<a href="/pt-BR/">Português</a>,
4545
<a href="/ru-RU/">Русский</a>,
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
4648
<a href="/vi-VN/">Tiếng việt</a>,
4749
<a href="/zh-CN/">简体中文</a>
4850
</p>

_layouts/pt-BR/basic.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ <h2><a href="/pt-BR/contribute.html">Contribua</a></h2>
4343
<a href="/ja-JP/">日本語</a>,
4444
<a href="/ko-KR/">한국어</a>,
4545
<a href="/ru-RU/">Русский</a>,
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
4648
<a href="/vi-VN/">Tiếng việt</a>,
4749
<a href="/zh-CN/">简体中文</a>
4850
</p>

_layouts/redirect.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"ru-RU": "ru-RU",
2020
"zh": "zh-CN",
2121
"zh-CN": "zh-CN",
22+
"it": "it-IT",
23+
"it-IT": "it-IT"
2224
};
2325

2426
// look up the provided language in the map

_layouts/ru-RU/basic.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ <h2><a href="/ru-RU/contribute.html">Участие</a></h2>
4343
<a href="/ja-JP/">日本語</a>,
4444
<a href="/ko-KR/">한국어</a>,
4545
<a href="/pt-BR/">Português</a>,
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
4648
<a href="/vi-VN/">Tiếng việt</a>,
4749
<a href="/zh-CN/">简体中文</a>
4850
</p>

_layouts/vi-VN/basic.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ <h2><a href="/vi-VN/contribute.html">Đóng góp</a></h2>
4343
<a href="/ko-KR/">한국어</a>,
4444
<a href="/pt-BR/">Português</a>,
4545
<a href="/ru-RU/">Русский</a>,
46-
<a href="/zh-CN/">简体中文</a>
46+
<a href="/zh-CN/">简体中文</a>,
47+
<a href="/it-IT/">Italiano</a>
4748
</p>
4849
</footer>
4950

_layouts/zh-CN/basic.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ <h2><a href="/zh-CN/contribute.html">贡献</a></h2>
4444
<a href="/ko-KR/">한국어</a>,
4545
<a href="/pt-BR/">Português</a>,
4646
<a href="/ru-RU/">Русский</a>,
47+
<<<<<<< HEAD
48+
<a href="/it-IT/">Italiano</a>
49+
=======
4750
<a href="/vi-VN/">Tiếng việt</a>
51+
>>>>>>> upstream/master
4852
</p>
4953
</footer>
5054

0 commit comments

Comments
 (0)