Lang strings to javascript, make my module js lang aware
Jamroom Developers
I have a module, ujLifeStreams, which is using a jquery plugin with a fair bit of lang (english) coded into the many js files. (the many lang string options for "posted to facebook", "created a marketplace item on jamroom.net", "updated wikipedia", etc)
I'd like to make the module fully translateable and get the lang strings into the ACP. At the moment I think that my best way forward is to write a js language array to the javascript_footer_function and change the jquery plugin js to use those variables, it looks possible.
Are there any shortcuts towards doing this (I haven't noticed any but always worth asking) or is there anything existing I should look at which might show a better way?
Thanks for the feeds out of jamroom.net - I was sure they'd be there and bingo, they were. Perfect.
Gratuitous screenshot alert, but notice the jamroom.net service in the middle. A jamroom.net profile is now a peer to a fb, twitter, github profile, etc. Which I think is pretty cool, and worth a mention
updated by @ultrajam: 04/08/14 12:06:33PM