how to use
Language()->TablePhrase("test_item", "TblCaption");
in user script?
how to use
Language()->TablePhrase("test_item", "TblCaption");
in user script?
totza2010 wrote:
in userfn.js??
Of course, not. You cannot put PHP code inside the Javascript file. It won't work.
Basically, if you want to change the table phrase globally, you may simply put your code in Language_Load server event. Otherwise, if you want to change on table basis, then simply put your code in Page_Load server event that belongs to the related table.