Tuesday, June 21, 2011

Language translation for Drupal JavaScript files.

1. Make sure that you have entered Drupal.t () function before all the text.
2. You have to create a js file (fr-trans.js) like below u for corresponding language
Drupal.locale = {‘strings’: {"Certification":"Certification","Required":"Requis"}};
In my example I have given for French language.
3. Include the js file based on user language

1 comment:

  1. Hi Kumarasan,

    Thanks for your information :)

    Thanks,
    Dhayalan B

    ReplyDelete