Skip to content

Commit 24eb70d

Browse files
committed
Introduce i18n for credits
1 parent df5743e commit 24eb70d

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

_config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,12 @@ 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+

_includes/footer.html

Lines changed: 7 additions & 5 deletions
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 %}

0 commit comments

Comments
 (0)