-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Can you please point me to the right direction? I have a Yii project and translation is generated using yiic. I am able to generate string with Yii.t translator.
In JS files I have alert(Yii.t("translate","Your message has been sent successfully"));
I installed your extension this way
Yii::setPathOfAlias('extensions', dirname(FILE).'/../../../extensions');
'import'=>array(
'application.models.',
'application.components.',
'extensions.JsTrans.*',
),
'jsTrans'=>array(
'class'=>'extensions.JsTrans.JsTrans',
'languages'=>array('en','es'), // the languages to be made available
),
So the confusing part for me is this line in the README file
new JsTrans('app','nl');
Where do I need to put this line of code to work correctly with yiic?
Metadata
Metadata
Assignees
Labels
No labels