flukeout / css-diner

CSS Diner
http://cssdiner.com
Mozilla Public License 2.0
2.71k stars 342 forks source link

Spanish translation #158

Open cgosorio opened 6 years ago

cgosorio commented 6 years ago

Flukeout thanks for sharing this entertaining and didactic game. I have translated it into Spanish, so my students could use to improve their use of CSS selectors. The translated game is at http://cgosorio.es/DW/comedor-css/, if you have the time and want to use the index.html and js/levels.js to incorporate to your project and have a Spanish version of the game, feel free to use those files.

Take care

flukeout commented 6 years ago

Hey thanks a lot @cgosorio — I'll look into it!

wrensbone commented 5 years ago

Hi, Just out of curiosity, how would you suggest to incorporate the translation into the original project? From what little JavaScript internationalization knowledge I have it seems would be quite a painful effort. I want to know if there's some neat solution? Or you need to change the orginal levels.js big time for the convenience of future multilingual translations? Thanks in advance!

cgosorio commented 5 years ago

I am not a Javascript programmer, but Javascript is not so different from other languages that I use to be able to read the code and understand what it does. When I did the translation, I was just thinking about making the use of the application easier for my students. I did not think of finding the most elegant solution. I wanted something fast. But as a result of your question I have done some research. It seems that an appropriate approach would be to use a library such as jQuery.i18. If I find the time, I may entertain myself in doing the translation the "correct" way.

wrensbone commented 5 years ago

Thank for your reply :) I'll look into these libraries and see if I can use them to work with the orginal code.