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'm making a content type/id hashmap. The relevant part of the code is something like this (js):

contentMap[content.get_name()] = content.get_id().toString();

I'm worried that the name will change with locale.

For example... If I have a content type called, say, "Help Files", and a .resx file in BOfH that goes:

<data name="Help Files" xml:space="preserve">

If I then try to do this in my code:

var contentTypeId = contentMap['Help Files'];

I know it will work in most cases. But will it fail for a user whose locale is set to BOfH?

I found no documentation on this and, unfortunately, the servers I'm allowed to fiddle with have no language packs installed, so I can't test it myself. The production servers, though, may have multiple languages installed. And I know for a fact that the site will be used by people in many different countries.

If the content type name does change with locale, is there some other property that's more appropriate for a key? A colleague of mine suggested using form url's, but then I saw that in the site we're working on, they are not unique for each content type.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.