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

Commit 2b06fd4

Browse files
authored
Merge pull request #499 from rjgoldsborough/add-i18n-links-docs
Add i18n links docs
2 parents e0dacb6 + aa737f9 commit 2b06fd4

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

_layouts/basic.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ <h2><a href="/contribute.html">Contribute</a></h2>
3636

3737
{{ content }}
3838

39+
<footer>
40+
<p>Our site in other languages:
41+
<a href="/pt-BR/">Português</a>,
42+
<a href="/ru-RU/">Русский</a>
43+
</p>
44+
</footer>
45+
3946
<script>
4047
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4148
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

css/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,3 +605,14 @@ ul.laundry-list {
605605
text-align: center;
606606
padding-top: 50px;
607607
}
608+
609+
footer {
610+
border-top: 2px solid #dedede;
611+
margin: 1.2em auto 0 auto;
612+
padding-top: 0.6em; /* half to accomodate p tag margin */
613+
}
614+
615+
footer a {
616+
display: inline-block;
617+
font-weight: bold;
618+
}

en-US/contribute-translations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
title: Translating rust-lang.org to other languages to adapt internationalization
4+
---
5+
6+
# Rust is universal
7+
8+
Some docs on contributing translations!

en-US/contribute.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ This guide focuses on a few avenues for the new contributor:
3636
* [Language, compiler and the standard
3737
library](contribute-compiler.html). Language design, feature
3838
implementation, performance improvement.
39+
* [Internationalization](contribute-translations.html). Help spread the
40+
Rust love by translating our site to every language.
3941

4042
If you need additional guidance ask on [#rust-internals] or
4143
[internals.rust-lang.org].

0 commit comments

Comments
 (0)