Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Using language resources - what decides which language should be displayed?

  Asked By: Harshita    Date: Mar 05    Category: Sharepoint    Views: 1270

When using language resources for web parts, templates, etc, what decides which langauge should be displayed? We want to have different sites in our site collection showing the resources in different languages. Does the regional settings on the site have any impact? Or is it necessary to install language packs and set the site language (which also affects the edit mode UI)?



3 Answers Found

Answer #1    Answered By: Gretchen Stokes     Answered On: Mar 05

It's based on the language/locale of the site. However, there are ways around this as detailed in this thread;


Answer #2    Answered By: Angarika Shroff     Answered On: Mar 05

in order to get access to the files he would need to perform this trickery, he would need to install  the language  Packs.

If he is installing the language packs  anyway and all he wants is to have different *sites* in different languages  ("We want to have different sites  in our site  collection showing  the resources  in different languages".) then he can just - after installing a language pack - choose a site template in that language when using Create Site.

Then the site's menus etc. will be in that language.

(Note though that the Central Administration site will always be in the language of the main WSS/MOSS installation and thus error messages - even when in a site in another language - will always come in that "main" (CA) language).

Answer #3    Answered By: Eliza Hutchinson     Answered On: Mar 05

The other thing you could do if you didn't want to create sites  in specific languages  is use SPUtility.GetLocalizedString(string source, string defaultResourceFile, uint language).

It would be loads more work frankly, but it would allow you to display language  resource file strings of whatever language you chose in your webparts etc.

I mention for completeness, and realise the extra work involved might rule out this method!