Skip to content

Commit 7ebab13

Browse files
committed
Merge pull request #8 from stomar/i18n
Enable localizations for credits and site navigation; add de, es, fr, it
2 parents df5743e + fdba4d4 commit 7ebab13

File tree

3 files changed

+117
-6
lines changed

3 files changed

+117
-6
lines changed

_config.yml

+102
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,105 @@ top_projects:
8484
applications. It is a Ruby library that works with Internet Explorer
8585
and Firefox.
8686
87+
88+
# Localization
89+
90+
credits:
91+
en: This website was generated with Ruby using <a href="http://www.jekyllrb.com/">Jekyll</a>.
92+
It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>.
93+
Please contact our <a href="mailto:[email protected]">webmaster</a>
94+
for questions or comments concerning this website.
95+
de: Diese Webseite wurde mit Ruby unter Verwendung von <a href="http://www.jekyllrb.com/">Jekyll</a> erstellt.
96+
Sie wird mit Stolz von <a href="http://rubyidentity.org">Mitgliedern der Ruby-Community</a> gepflegt.
97+
Bei Fragen oder Kommentaren, die diese Seite betreffen, kontaktieren Sie bitte
98+
unseren <a href="mailto:[email protected]">Webmaster</a> (in Englisch).
99+
es: Este sitio web está desarrollado con Ruby y <a href="http://www.jekyllrb.com/">Jekyll</a>.
100+
Es orgullosamente mantenido por <a href="http://rubyidentity.org">miembros de la comunidad Ruby</a>.
101+
Por favor contacta a nuestro <a href="mailto:[email protected]">webmaster</a>
102+
si tienes preguntas o comentarios al respecto del sitio web.
103+
fr: Ce site est propulsé par Ruby et <a href="http://www.jekyllrb.com/">Jekyll</a>.
104+
Il est fièrement maintenu par des <a href="http://rubyidentity.org">membres de la communauté Ruby</a>.
105+
Veuillez contacter notre <a href="mailto:[email protected]">webmaster</a>
106+
pour toute question ou tout commentaire le concernant.
107+
it: Questo sito è stato sviluppato con Ruby e <a href="http://www.jekyllrb.com/">Jekyll</a>.
108+
È curato con dedizione dai <a href="http://rubyidentity.org">membri della comunità di Ruby</a>.
109+
Puoi contattare il nostro <a href="mailto:[email protected]">webmaster</a>
110+
per domande e commenti riguardanti questo sito.
111+
112+
nav:
113+
en:
114+
- name: Downloads
115+
url: downloads
116+
- name: Documentation
117+
url: documentation
118+
- name: Libraries
119+
url: libraries
120+
- name: Community
121+
url: community
122+
- name: News
123+
url: news
124+
- name: Security
125+
url: security
126+
- name: About Ruby
127+
url: about
128+
de:
129+
- name: Downloads
130+
url: downloads
131+
- name: Dokumentation
132+
url: documentation
133+
- name: Bibliotheken
134+
url: libraries
135+
- name: Community
136+
url: community
137+
- name: Neuigkeiten
138+
url: news
139+
# - name: Sicherheit
140+
# url: security
141+
- name: Über Ruby
142+
url: about
143+
es:
144+
- name: Descargas
145+
url: downloads
146+
- name: Documentación
147+
url: documentation
148+
- name: Bibliotecas
149+
url: libraries
150+
- name: Comunidad
151+
url: community
152+
- name: Noticias
153+
url: news
154+
# - name: Seguridad
155+
# url: security
156+
- name: Acerca de Ruby
157+
url: about
158+
fr:
159+
- name: Téléchargements
160+
url: downloads
161+
- name: Documentation
162+
url: documentation
163+
- name: Bibliothèques
164+
url: libraries
165+
- name: Communauté
166+
url: community
167+
- name: Actualités
168+
url: news
169+
- name: Sécurité
170+
url: security
171+
- name: À propos de Ruby
172+
url: about
173+
it:
174+
- name: Scarica
175+
url: downloads
176+
- name: Documentazione
177+
url: documentation
178+
- name: Librerie
179+
url: libraries
180+
- name: Comunità
181+
url: community
182+
- name: Notizie
183+
url: news
184+
- name: Sicurezza
185+
url: security
186+
- name: A proposito di Ruby
187+
url: about
188+

_includes/footer.html

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
<p>Content available in <a href="/en/">English</a>, <a href="/fr/">French</a>, <a href="/ja/">Japanese</a>, <a href="/ko/">Korean</a>, <a href="/pl/">Polish</a>, <a href="/es/">Spanish</a>, <a href="/pt/">Portuguese</a>, <a href="/zh_cn/">Simplified Chinese</a>, <a href="/zh_TW/">Traditional Chinese</a>, <a href="/id/">Bahasa Indonesia</a>, <a href="/de/">German</a>, <a href="/it/">Italian</a>, <a href="/cs/">Czech</a>, <a href="/bg/">Bulgarian</a> and <a href="/tr/">Turkish</a>.</p>
2-
<p>This website is was generated by <a href="http://www.jekyllrb.com/">Jekyll</a>.
3-
It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>. Please contact
4-
our <a href="mailto:[email protected]">webmaster</a> for questions or comments
5-
concerning this website.</p>
1+
<p>Content available in <a href="/en/">English</a>, <a href="/fr/">French</a>, <a href="/ja/">Japanese</a>, <a href="/ko/">Korean</a>, <a href="/pl/">Polish</a>, <a href="/es/">Spanish</a>, <a href="/pt/">Portuguese</a>, <a href="/zh_cn/">Simplified Chinese</a>, <a href="/zh_TW/">Traditional Chinese</a>, <a href="/id/">Bahasa Indonesia</a>, <a href="/de/">German</a>, <a href="/it/">Italian</a>, <a href="/cs/">Czech</a>, <a href="/bg/">Bulgarian</a> and <a href="/tr/">Turkish</a>.</p>
2+
3+
{% if site.credits[page.lang] %}
4+
<p>{{ site.credits[page.lang] }}</p>
5+
{% else %}
6+
<p>{{ site.credits['en'] }}</p>
7+
{% endif %}

_includes/sitelinks.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
<a href="/{{ page.lang }}/downloads/">Downloads</a><span class="separator"> | </span><a href="/{{ page.lang }}/documentation/">Documentation</a><span class="separator"> | </span><a href="/{{ page.lang }}/libraries/">Libraries</a><span class="separator"> | </span><a href="/{{ page.lang }}/community/">Community</a><span class="separator"> | </span><a href="/{{ page.lang }}/news/">News</a><span class="separator"> | </span><a href="/{{ page.lang }}/security/">Security</a><span class="separator"> | </span><a href="/{{ page.lang }}/about/">About Ruby</a>
1+
{% if site.nav[page.lang] %}
2+
{% assign navlang = page.lang %}
3+
{% else %}
4+
{% assign navlang = 'en' %}
5+
{% endif %}
6+
{% for link in site.nav[navlang] %}
7+
<a href="/{{ page.lang }}/{{ link.url }}/">{{ link.name }}</a>{% unless forloop.last %}<span class="separator"> | </span>{% endunless %}
8+
{% endfor %}

0 commit comments

Comments
 (0)