aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJulian Thilo <[email protected]>2014-03-17 12:19:45 +0100
committerJulian Thilo <[email protected]>2014-03-17 21:55:39 +0100
commit1b15cefa5c5342129bec9b794946f3fb2641077d (patch)
tree2ed585ecd0b86dc50d6e8baf30191468f5152509 /docs
parent4a4dff00262aa74510567890eecbf71675805b15 (diff)
downloadbootstrap-1b15cefa5c5342129bec9b794946f3fb2641077d.tar.xz
bootstrap-1b15cefa5c5342129bec9b794946f3fb2641077d.zip
Generate Translations list from YAML
Diffstat (limited to 'docs')
-rw-r--r--docs/_data/translations.yml34
-rw-r--r--docs/_includes/getting-started/translations.html10
2 files changed, 37 insertions, 7 deletions
diff --git a/docs/_data/translations.yml b/docs/_data/translations.yml
new file mode 100644
index 000000000..8df66c5f7
--- /dev/null
+++ b/docs/_data/translations.yml
@@ -0,0 +1,34 @@
+- name: Chinese
+ code: zh
+ description: Bootstrap 中文文档
+ url: http://v3.bootcss.com/
+
+- name: French
+ code: fr
+ description: Bootstrap en Français
+ url: http://www.oneskyapp.com/docs/bootstrap/fr
+
+- name: German
+ code: de
+ description: Bootstrap auf Deutsch
+ url: http://holdirbootstrap.de/
+
+- name: Korean
+ code: ko
+ description: Bootstrap 한국어
+ url: http://bootstrapk.com/BS3/
+
+- name: Russian
+ code: ru
+ description: Bootstrap по-русски
+ url: http://www.oneskyapp.com/docs/bootstrap/ru
+
+- name: Spanish
+ code: es
+ description: Bootstrap en Español
+ url: http://www.oneskyapp.com/docs/bootstrap/es
+
+- name: Ukrainian
+ code: uk
+ description: Bootstrap ua Українською
+ url: http://twbs.site-konstruktor.com.ua
diff --git a/docs/_includes/getting-started/translations.html b/docs/_includes/getting-started/translations.html
index dc46f5d90..215f790de 100644
--- a/docs/_includes/getting-started/translations.html
+++ b/docs/_includes/getting-started/translations.html
@@ -3,13 +3,9 @@
<p class="lead">Community members have translated Bootstrap's documentation into various languages. None are officially supported and they may not always be up to date.</p>
<ul>
- <li><a href="http://v3.bootcss.com/">Bootstrap 中文文档 (Chinese)</a></li>
- <li><a href="http://www.oneskyapp.com/docs/bootstrap/fr">Bootstrap en Français (French)</a></li>
- <li><a href="http://holdirbootstrap.de/">Bootstrap auf Deutsch (German)</a></li>
- <li><a href="http://bootstrapk.com/BS3/">Bootstrap 한국어 (Korean)</a></li>
- <li><a href="http://www.oneskyapp.com/docs/bootstrap/ru">Bootstrap по-русски (Russian)</a></li>
- <li><a href="http://www.oneskyapp.com/docs/bootstrap/es">Bootstrap en Español (Spanish)</a></li>
- <li><a href="http://twbs.site-konstruktor.com.ua">Bootstrap ua Українською (Ukrainian)</a></li>
+ {% for language in site.data.translations %}
+ <li><a href="{{ language.url }}" hreflang="{{ language.code }}">{{ language.description }} ({{ language.name }})</a></li>
+ {% endfor %}
</ul>
<p><strong class="text-danger">We don't help organize or host translations, we just link to them.</strong></p>
<p>Finished a new or better translation? Open a pull request to add it to our list.</p>