Tornado and javascript translation services

I am trying to make a bilingual website (English and Greek). I use tornadoes and I put the global function _() in my templates. The translation comes directly from .csv. Everything is fine in html, so I can write {{_("Hello")}} , and if the user language is Greek, the word "Hello" is translated in Greek. However, I do not know how to do the same in javascript. For instance:

 foo.html("Hello") 

I do not know how to enable javascript to work with Tornado localization.

thanks

+4
source share
1 answer

A friend of mine suggested these two plugins:

1) http://recursive-design.com/blog/2008/02/21/jquery-i18n-translation-plugin/ 2) http://keith-wood.name/localisation.html

Perhaps we will use them!

0
source

All Articles