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

Complete italian translation #678

Merged
merged 10 commits into from
Jan 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions _includes/it-IT/example.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Questo codice é modificabile e eseguibile!
fn main() {
// Una semplice calcolatrice per numeri interi:
// `+` o `-` aggiunge o sottrae 1
// `*` o `/` moltiplica o divide per 2

let programma = "+ + * - /";
let mut accumulatore = 0;

for simbolo in programma.chars() {
match simbolo {
'+' => accumulatore += 1,
'-' => accumulatore -= 1,
'*' => accumulatore *= 2,
'/' => accumulatore /= 2,
_ => { /* ignora gli altri caratteri */ }
}
}

println!("Il programma \"{}\" calcola il valore {}",
programma, accumulatore);
}
23 changes: 23 additions & 0 deletions _includes/it-IT/example.rs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<pre class='rust'>
<span class='kw'>fn</span> main() {
<span class='comment'>// Una semplice calcolatrice per numeri interi:
// `+` o `-` aggiunge o sottrae 1
// `*` o `/` moltiplica o divide per 2</span>

<span class='kw'>let</span> programma = <span class='string'>"+ + * - /"</span>;
<span class='kw'>let</span> <span class='kw'>mut</span> accumulatore = <span class='number'>0</span>;

<span class='kw'>for</span> simbolo in programma.chars() {
<span class='kw'>match</span> simbolo {
<span class='string'>'+'</span> => accumulatore <span class='op'>+=</span> <span class='number'>1</span>,
<span class='string'>'-'</span> => accumulatore <span class='op'>-=</span> <span class='number'>1</span>,
<span class='string'>'*'</span> => accumulatore <span class='op'>*=</span> <span class='number'>2</span>,
<span class='string'>'/'</span> => accumulatore <span class='op'>/=</span> <span class='number'>2</span>,
_ => { <span class='comment'>/* ignora gli altri caratteri */</span> }
}
}

<span class='prelude-val'>println!</span>(<span class='string'>"Il programma \"{}\" calcola il valore {}"</span>,
programma, accumulatore);
}
</pre>
4 changes: 3 additions & 1 deletion _layouts/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ <h2><a href="/en-US/contribute.html">Contribute</a></h2>
<p>Our site in other languages:
<a href="/es-ES/">Español</a>,
<a href="/fr-FR/">Français</a>,
<a href="/ja-JP/">日本語</a>,
<a href="/ja-JP/">日本語</a>,
<a href="/ko-KR/">한국어</a>,
<a href="/pt-BR/">Português</a>,
<a href="/ru-RU/">Русский</a>,
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
<a href="/vi-VN/">Tiếng việt</a>,
<a href="/zh-CN/">简体中文</a>
</p>
Expand Down
6 changes: 4 additions & 2 deletions _layouts/fr-FR/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ <h2><a href="/fr-FR/contribute.html">Contribuer</a></h2>
<footer>
<p>Notre site dans d'autres langues&nbsp;:
<a href="/en-US/">English</a>,
<a href="/ja-JP/">日本語</a>,
<a href="/ja-JP/">日本語</a>,
<a href="/ko-KR/">한국어</a>,
<a href="/pt-BR/">Português</a>,
<a href="/ru-RU/">Русский</a>,
<a href="/vi-VN/">Tiếng việt</a>,
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
<a href="/vi-VN/">Tiếng việt</a>,
<a href="/zh-CN/">简体中文</a>
</p>
</footer>
Expand Down
62 changes: 62 additions & 0 deletions _layouts/it-IT/basic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<!-- Page last generated {{ site.time }} -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page.title }}</title>
<meta name="keywords" content="Rust, Linguaggio di programmazione Rust, rustlang, rust-lang, Mozilla Rust">
<meta name="description" content="Un linguaggio di programmazione per sistemi ad altissime prestazioni che previene errori di segmentazione e assicura la sicurezza della memoria.">

<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/style.css">
</head>

<body class="container">
<a href="https://github.com/rust-lang/rust">
<img class="ribbon" style="display: none" src="/logos/forkme.png" alt="Forkami on GitHub" width="298" height="298">
</a>

<header>
<ul class="row menu">
<li class="col-xs-12 col-md-2">
<a href="/it-IT/index.html">
<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" />
</a>
</li>
<li class="col-xs-12 col-md-10 menu">
<h2><a href="/it-IT/documentation.html">Documentazione</a></h2>
<h2><a href="/it-IT/install.html">Installazione</a></h2>
<h2><a href="/it-IT/community.html">Comunitá</a></h2>
<h2><a href="/it-IT/contribute.html">Contribuisci</a></h2>
</li>
</ul>
</header>

{{ content }}

<footer>
<p>Il nostro sito in altre lingue:
<a href="/en-US/">English</a>,
<a href="/fr/">Français</a>,
<a href="/ko-KR/">한국어</a>,
<a href="/pt-BR/">Português</a>,
<a href="/ru-RU/">Русский</a>,
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
</p>
</footer>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-58390457-1', 'auto');
ga('send', 'pageview');

</script>
</body>
</html>
7 changes: 7 additions & 0 deletions _layouts/it-IT/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: it-IT/basic
---

<div class="content">
{{ content }}
</div>
3 changes: 2 additions & 1 deletion _layouts/ja-JP/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ <h2><a href="/en-US/contribute.html">開発に参加する</a></h2>
<a href="/ko-KR/">한국어</a>,
<a href="/pt-BR/">Português</a>,
<a href="/ru-RU/">Русский</a>,
<a href="/zh-CN/">简体中文</a>
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
</p>
</footer>

Expand Down
2 changes: 2 additions & 0 deletions _layouts/ko-KR/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ <h2><a href="/ko-KR/contribute.html">기여하기</a></h2>
<a href="/ja-JP/">日本語</a>,
<a href="/pt-BR/">Português</a>,
<a href="/ru-RU/">Русский</a>,
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
<a href="/vi-VN/">Tiếng việt</a>,
<a href="/zh-CN/">简体中文</a>
</p>
Expand Down
2 changes: 2 additions & 0 deletions _layouts/pt-BR/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ <h2><a href="/pt-BR/contribute.html">Contribua</a></h2>
<a href="/ja-JP/">日本語</a>,
<a href="/ko-KR/">한국어</a>,
<a href="/ru-RU/">Русский</a>,
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
<a href="/vi-VN/">Tiếng việt</a>,
<a href="/zh-CN/">简体中文</a>
</p>
Expand Down
2 changes: 2 additions & 0 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"ru-RU": "ru-RU",
"zh": "zh-CN",
"zh-CN": "zh-CN",
"it": "it-IT",
"it-IT": "it-IT"
};

// look up the provided language in the map
Expand Down
2 changes: 2 additions & 0 deletions _layouts/ru-RU/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ <h2><a href="/ru-RU/contribute.html">Участие</a></h2>
<a href="/ja-JP/">日本語</a>,
<a href="/ko-KR/">한국어</a>,
<a href="/pt-BR/">Português</a>,
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
<a href="/vi-VN/">Tiếng việt</a>,
<a href="/zh-CN/">简体中文</a>
</p>
Expand Down
3 changes: 2 additions & 1 deletion _layouts/vi-VN/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ <h2><a href="/vi-VN/contribute.html">Đóng góp</a></h2>
<a href="/ko-KR/">한국어</a>,
<a href="/pt-BR/">Português</a>,
<a href="/ru-RU/">Русский</a>,
<a href="/zh-CN/">简体中文</a>
<a href="/zh-CN/">简体中文</a>,
<a href="/it-IT/">Italiano</a>
</p>
</footer>

Expand Down
4 changes: 4 additions & 0 deletions _layouts/zh-CN/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ <h2><a href="/zh-CN/contribute.html">贡献</a></h2>
<a href="/ko-KR/">한국어</a>,
<a href="/pt-BR/">Português</a>,
<a href="/ru-RU/">Русский</a>,
<<<<<<< HEAD
<a href="/it-IT/">Italiano</a>
=======
<a href="/vi-VN/">Tiếng việt</a>
>>>>>>> upstream/master
</p>
</footer>

Expand Down
Loading