I had this calendar extender thingie in my site and the client was Italian so I had to translate it into Italian. Nothing easier. Just enable EnableScriptGlobalization and EnableScriptLocalization and set either the Web.config or Page culture settings.

However, the footer of the calendar kept showing "Today" instead of "Oggi". I checked the source and I noticed that it used a AjaxControlToolkit.Resources.Calendar_Today javascript variable to create the footer. Step by step I narrowed it down to the AjaxControlToolkit resources! Funny thing is that they didn't work. I tried just about everything, including Googling, only to find people having the opposite problem: they would have all these resource dlls created in their Bin directory and couldn't get rid of them. I had none! I copied the directories from the ACTK and nothing happened.

After some research I realized that the Ajax Control Toolkit does NOT include the option for multi language UNLESS in Release mode. I was using everything in the solution, including the ACTK, in Debug mode. Changing the AjaxControlToolkit build to Release in the solution made this work.

Comments

Siderite

See, kids? That's what happends when you use drugs while you code! :D

Siderite

Anonymous

Hi everybody, I have managed this, Today is Hoy in my Calendar. At last. Release mode must be selected in VS 2005. In Debug mode .dll only for de is generated (???) I have managed... But... But my biscuits are burned totally!!! Gosh! I like programming! Never mind...

Anonymous

Anonymous

Setting both EnableScriptLocalization="true" EnableScriptGlobalization="true" didnt work for me..it is working in asp.net environment but not on sharepoint..i m able to translate today with localiation files but month and days are not getting localized

Anonymous

Henrik

Setting both EnableScriptLocalization="true" EnableScriptGlobalization="true" in the ScriptManager worked for me.

Henrik

Siderite

I don't know. It worked for me. Are you using the source for ACT or just the binaries? Do you have the language dlls in the proper directories? And I don't think you can show two months unless you do some js work. But I wouldn't know, I haven't tried it.

Siderite

sombody

I'm using 30512 release and the today is today :(( in all lang. Sould I use another release?20820.... One another thing,is it posebel to show 2 months ?

sombody

Siderite

Yes I could, read the post. Use the Release version of Ajax Control Toolkit. It should have all the language DLLs in the bin directory.

Siderite

sombody

hy, one question. Did you manage to translate "Today"? In my case the localization works but today in fotter is always in eng.

sombody

Post a comment