CodeClub/codeclub-world — pull request #40 by ipedrazas (2013-12-11 00:04:48+00:00)
Title: Modification for Translating the website to any language

I've seen that people translate the codeclubworld website to different languages but as it is, they have to go through all the HTML files searching and replacing the text for their translation.

Nothing to say about that, but In thought it would be nicer to have all the text in one single file. Now you can build the website (it currently builds to the same state that it is in the repo), so, in principle, my change doesn't affect the current website.

All the strings have been moved to the file _config.yml and have been replaced by variables. Variables have been created in a way that makes easy to know where the string is used.

For example:

`faq_software_needed_question: "What software do I need?"`

This variable is used in the FAQ section and contains the string "What software do I need?"

I've added how to create a new translation into the README.md of the repo. Hopefully I've made it clear and not too technical. Still, to build the website you need to be able to run Jekyll.

Pros:
- Translating the website can be done by non technical people.
- You have now completely separated content from layout and design (it's like using a bare bones CMS).
- Potentially it would make easier to update all the websites if new content is added or changes are made.

Cons:
- If you want to add new content you have to create new variables using this strategy