Skip to content

Enable localizations for credits and site navigation; add de, es, fr, it #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 4, 2013
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
102 changes: 102 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,105 @@ top_projects:
applications. It is a Ruby library that works with Internet Explorer
and Firefox.


# Localization

credits:
en: This website was generated with Ruby using <a href="http://www.jekyllrb.com/">Jekyll</a>.
It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>.
Please contact our <a href="mailto:[email protected]">webmaster</a>
for questions or comments concerning this website.
de: Diese Webseite wurde mit Ruby unter Verwendung von <a href="http://www.jekyllrb.com/">Jekyll</a> erstellt.
Sie wird mit Stolz von <a href="http://rubyidentity.org">Mitgliedern der Ruby-Community</a> gepflegt.
Bei Fragen oder Kommentaren, die diese Seite betreffen, kontaktieren Sie bitte
unseren <a href="mailto:[email protected]">Webmaster</a> (in Englisch).
es: Este sitio web está desarrollado con Ruby y <a href="http://www.jekyllrb.com/">Jekyll</a>.
Es orgullosamente mantenido por <a href="http://rubyidentity.org">miembros de la comunidad Ruby</a>.
Por favor contacta a nuestro <a href="mailto:[email protected]">webmaster</a>
si tienes preguntas o comentarios al respecto del sitio web.
fr: Ce site est propulsé par Ruby et <a href="http://www.jekyllrb.com/">Jekyll</a>.
Il est fièrement maintenu par des <a href="http://rubyidentity.org">membres de la communauté Ruby</a>.
Veuillez contacter notre <a href="mailto:[email protected]">webmaster</a>
pour toute question ou tout commentaire le concernant.
it: Questo sito è stato sviluppato con Ruby e <a href="http://www.jekyllrb.com/">Jekyll</a>.
È curato con dedizione dai <a href="http://rubyidentity.org">membri della comunità di Ruby</a>.
Puoi contattare il nostro <a href="mailto:[email protected]">webmaster</a>
per domande e commenti riguardanti questo sito.

nav:
en:
- name: Downloads
url: downloads
- name: Documentation
url: documentation
- name: Libraries
url: libraries
- name: Community
url: community
- name: News
url: news
- name: Security
url: security
- name: About Ruby
url: about
de:
- name: Downloads
url: downloads
- name: Dokumentation
url: documentation
- name: Bibliotheken
url: libraries
- name: Community
url: community
- name: Neuigkeiten
url: news
# - name: Sicherheit
# url: security
- name: Über Ruby
url: about
es:
- name: Descargas
url: downloads
- name: Documentación
url: documentation
- name: Bibliotecas
url: libraries
- name: Comunidad
url: community
- name: Noticias
url: news
# - name: Seguridad
# url: security
- name: Acerca de Ruby
url: about
fr:
- name: Téléchargements
url: downloads
- name: Documentation
url: documentation
- name: Bibliothèques
url: libraries
- name: Communauté
url: community
- name: Actualités
url: news
- name: Sécurité
url: security
- name: À propos de Ruby
url: about
it:
- name: Scarica
url: downloads
- name: Documentazione
url: documentation
- name: Librerie
url: libraries
- name: Comunità
url: community
- name: Notizie
url: news
- name: Sicurezza
url: security
- name: A proposito di Ruby
url: about

12 changes: 7 additions & 5 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<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>
<p>This website is was generated by <a href="http://www.jekyllrb.com/">Jekyll</a>.
It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>. Please contact
our <a href="mailto:[email protected]">webmaster</a> for questions or comments
concerning this website.</p>
<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>

{% if site.credits[page.lang] %}
<p>{{ site.credits[page.lang] }}</p>
{% else %}
<p>{{ site.credits['en'] }}</p>
{% endif %}
9 changes: 8 additions & 1 deletion _includes/sitelinks.html
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<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>
{% if site.nav[page.lang] %}
{% assign navlang = page.lang %}
{% else %}
{% assign navlang = 'en' %}
{% endif %}
{% for link in site.nav[navlang] %}
<a href="/{{ page.lang }}/{{ link.url }}/">{{ link.name }}</a>{% unless forloop.last %}<span class="separator"> | </span>{% endunless %}
{% endfor %}