Jump to content

How to translate a Jquery plugin


Recommended Posts

Hello, I just installed a nice Jquery calendar plugin but now I need to translate in french a few words of it. The plugin doesn't have any TPL file so I tried to include some smarty translation code into the JS but it doesn't work at all. I wonder how to translate it... maybe with a condition ?

 

Waiting for your help...

 

Thanks

Edited by johanndc (see edit history)
Link to comment
Share on other sites

Hi, the plugin is DZS jQuery Mini Events Calendar and I'm using the first skin you can see on that demo page. I added it into a CMS page by dropping the JS file into /themes/mytheme/js/dzscalendar.js

 

The part of code who contains the names of days and months looks like this :

;var b=0,m=0,P,Q,k=[],v,x,T,S="auto",G="January February March April May June July August September October November December".split(" "),w="SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY".split(" ");
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...