Hi,

I've tried using this module with multilingual site.

When I add a new jQuery version, I get an error "Drupal is not defined".

The problem is that jQuery module outputs language javascript files, which are generated by the locale module, before drupal.js.

<script type="text/javascript" src="http://my-site.com/files/languages/fr_viuaRuB3A0d2AhCcSjPSc9CdGHC-fMI6a5FStYyqcI8.js?m1aon2"></script>
...
<script type="text/javascript" src="http://my-site.com/misc/jquery.js?v=1.4.4"></script>
<script type="text/javascript" src="http://my-site.com/misc/drupal.js?m1aon2"></script>

This bug generates a javascript error and prevent scripts to work properly (mostly in IE).

Here's is a patch that solves the problem, but I don't know if there are counterparts with this workaround.

CommentFileSizeAuthor
jqueries_locale_js.patch829 bytesludo.r

Comments

ludo.r’s picture

Status: Active » Needs review
BoogieBug’s picture

Assigned: Unassigned » BoogieBug
Status: Needs review » Patch (to be ported)

Thanks. I'll patch your code into the beta release.

ludo.r’s picture

Thanks, but as I already said, I don't know if there are side effects by doing this.
However I did not have any issue until now with this patch (my website isn't yet in production, but still in development).

BoogieBug’s picture

Status: Patch (to be ported) » Fixed

The patch was successfully applied to the beta version, and any additional bugs are reported. I think we can close this issue.

BoogieBug’s picture

Status: Fixed » Closed (fixed)