css-diner icon indicating copy to clipboard operation
css-diner copied to clipboard

Spanish translation

Open cgosorio opened this issue 8 years ago • 4 comments

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

cgosorio avatar Nov 21 '17 12:11 cgosorio

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

flukeout avatar Jan 24 '18 18:01 flukeout

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!

wrensbone avatar Nov 26 '18 01:11 wrensbone

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.

cgosorio avatar Nov 27 '18 19:11 cgosorio

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

wrensbone avatar Nov 27 '18 19:11 wrensbone