SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this ScriptLink in my custom Master Page:

<SharePoint:ScriptLink language="javascript" name="my.js" runat="server"/>

This renders as 1033/my.js on an English Site Collection, but as 1053/my.js on a Swedish Site Collection. I've installed the SharePoint 2010 Server Language Pack, and when creating a new Site Collection, apparently there is the option to create it in Swedish.

This JavaScript file is not localized, and with this path I'd need to deploy the script to the 14 Hive once for each installed language. And that just feels like the wrong solution.

Is ScriptLink the wrong choice here, or how are you supposed to solve this? Perhaps I am not supposed to deploy it to the 14 Hive at all, but if so, what are the feasible alternatives?

share|improve this question
up vote 0 down vote accepted

You can add the attribute Localizable="False". It would look like this :

<SharePoint:ScriptLink Language="javascript" Name="my.js" Localizable="False" runat="server"/>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.