[eluser]Trankh1[/eluser]
Hello,
I'm using Language class features to handle internalization of my application.
It is super convenient for handling that in PHP but now I want to handle it in my javascript files.
So far, i'm doing the stuff like this:
in a php file :
Code:
// opened js tag
var caption1 = '<?=lang('caption1') ?>';
var caption2 = '<?=lang('caption2') ?>';
// closed js tag
[removed]
[removed]
But i'm not happy with this way.
Have you guys a solution to avoid this?
I want to load all my language file (general_lang) in one shot.
I want to avoid that my source code displays all these assignations.
I see that carabiner library makes the stuff for js files (but so far, my file is .php)
Thank you very much for your time.