Skip to content
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

Generate Translations list from YAML #13095

Merged
merged 1 commit into from
Mar 18, 2014
Merged

Generate Translations list from YAML #13095

merged 1 commit into from
Mar 18, 2014

Conversation

juthilo
Copy link
Collaborator

@juthilo juthilo commented Mar 17, 2014

Also adds hreflang attribute to the links.
This might help with #13094.

@mdo Now that we split up the docs into includes, the difference in terms of contribution difficulty is not as high as before, I think.

/cc @cvrebert @XhmikosR

@juthilo juthilo added the docs label Mar 17, 2014
@juthilo juthilo added this to the v3.2.0 milestone Mar 17, 2014
@XhmikosR
Copy link
Member

I definitely like this approach! I will check this out closer later and let you know if I have any comments :)

@XhmikosR
Copy link
Member

@juthilo: what do you think about this order?

- language: German
  code: de
  description: Bootstrap auf Deutsch
  url: http://holdirbootstrap.de/

This way it should be also more clear that the language order is based on the language name.

<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 translation in site.data.translations %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use language instead of translation as a loop variable?

EDIT: ...but then we'll have language.language which doesn't look good :/ Maybe language as a variable and name in the yml file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. Pushing up in a minute.

@juthilo
Copy link
Collaborator Author

juthilo commented Mar 17, 2014

Implemented the changes proposed by @XhmikosR.

@XhmikosR
Copy link
Member

LGTM 👍

mdo added a commit that referenced this pull request Mar 18, 2014
Generate Translations list from YAML
@mdo mdo merged commit dc2b24e into master Mar 18, 2014
@mdo mdo deleted the translation_data branch March 18, 2014 22:55
@mdo mdo mentioned this pull request Mar 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants