Works only if it`s a English site, not another language

Sep 8, 2011 at 2:04 PM

The webparts does not generate any error, but will not display any picture if the site isn`t in English.

Apr 18, 2013 at 6:03 PM
The problem is simple.
float.ToString() function in english localization use '.' as decimal delimiter, but the many othe localization (russian in my case) use ',' as decimal delimiter.
javascript code built for the page has got wrong parameters in this case.

error produced in this line of code in SlideShow.cs

sb.AppendLine("captionOpacity: " + CaptionOpacity.ToString() + ",");

i just add replace function to change ',' to '.' like this:

sb.AppendLine("captionOpacity: " + CaptionOpacity.ToString().Replace(",", ".") + ",");

recompile and all work like a charm