2011-12-22 12:31, Sergueï Cambour: > Is it possible to translate some javascript popup mesages by injection the > translated values from a 'tml' page into javascript function which is in a > separate js file?
There are two options to localize your JavaScript: 1. add messages in the initializer call this is what Tapestry's DateField does - look in DateFieldStack 2. create separate asset for localized part and @Import it so, you'll have mylibloc.js and mylibloc_de.js and in your component class you do @Import(library={"mylib.js", "mylibloc.js"}) > Thanks You're welcome :) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org