Pages

Saturday, October 1, 2011

SharePoint Localization in Sandbox Environment


Last week I was working with localization in SharePoint and just wanted to share some thoughts. We all know that this can be Managed with the Resource files and at run time we can read the values based on the culture (either UI culture or your site’s culture) and reosurce files are kept in the 14 hive of SharePoint Server file system.

I will not dive in to the details of the how to do localization in SharePoint but I can point out some references to do this , like this post of John Powell and also this MSDN post, explained in excellent way.

So far so good, but when we work with sandbox environment then we cannot access the file system of the server and so puzzle is where and how to keep this resource files?
Well but that didn’t take too much time to solve as MSDN has already given a very good documentation to take on this issue.
Here is link on how to do this : MSDN – Localization in Sandbox environment and this post which is a good pictorial explanation.

Some Quick Notes :

What are satellite assemblies? – Satellite assemblies are the compiled libraries which contains the localizable resources while creating multi lingual applications. So a satellite assembly per language / culture. – Reference Here

So where these satellite assemblies are placed in Sandbox solutions ? – when Sandbox solution with Satellite assembies is deployed then everything is packaged as wsp and deployed to site collection’s Solutions gallery. Reference Here

No comments:

Post a Comment