jQuery and multilanguage site
mean0dspt - March 20, 2009 - 14:12
Sorry to bother but I have little skills in js.
I'm using the Views carousel module to get a carousel of images. It works fine when the page is viewed in default language.
But when I switch to another language (based on url path only negotiation), the script doesn't run.
I checked the source code, it's identical in both cases.
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/viewscarousel/jquery.jcarousel.css?7" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/viewscarousel/skins/ie7/skin.css?7" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/viewscarousel/skins/tango/skin.css?7" />
..............
<script type="text/javascript" src="/sites/all/modules/viewscarousel/jquery.jcarousel.min.js?7"></script>
<script type="text/javascript" src="/sites/all/modules/viewscarousel/viewscarousel.js?7"></script>
<script type="text/javascript">
..............
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "viewscarousel": { "viewscarousel-sponsors-default": { "vertical": 1, "scroll": "1", "auto": "10", "wrap": "both" } } });
//--><!]]>
</script>The only difference is the url's
http://cttimes.net/node/13 - it shows
http://cttimes.net/ru/content/tekhnicheskaya-programma - it's not shown
How do I fix it? Do I need some specific "basePath" or whatever?

they look the same to me
I'm not sure what I'm supposed to see, but both URLs look almost the same to me.
Paul McKibben
Drupal Consultant in Atlanta, GA (USA)
Owner, Noverna Interactive - Providing Effective Web Solutions
Company: http://noverna.com
Personal: http://paulmckibben.com
the difference
in urls is the prefix /ru/
the difference in pages is that the one with /ru/ shows no jcarousel for images