Localized Resources in Smartsite Class Libraries

Release 1.0 - ...

Smartsite class libraries should store resources in a (localizable) resource file, using the Visual Studio Resource Editor, and retrieve the resource values at runtime using an instance of the SmartsiteResourceManager class (instead of the system ResourceManager class).

Example:

C# CopyCode image Copy Code
SmartsiteResourceManager rm = new SmartsiteResourceManager(typeof(MyResources));
MessageBox.Show(rm.GetString("LocalizedResourceIdentifier"));

The SmartsiteResourceManager will return the associated resource value from the custom resource xml file for the current culture, if it exists, or the associated embedded resource value otherwise.