If you need to use Localization with the controls that you load with Open-SmartModule you can follow the instructions of this entry.
If you need to use Localization with the controls that you load with Open-SmartModule you can follow this instructions:
You should change your meta:resourcekey attributes by resourcekey attributes so, if you have a Label like this:
meta:resourcekey=”lbWhatever”>
You have to replace it with this one:
resourcekey=”lbWhatever”>
Then you need to merge your resources with the resources of the module itself. The resource file of the module is XSSmartModule.ascx.resx, which is located into /DesktopModules/XepientSolutions.OpenSmartModule/App_LocalResources/ folder. If you have translations for other languages, you will need to create other files in the same folder. For example, if you have a Spanish (Spain) translation, you will need to create a file named XSSmartModule.ascx.es-ES.resx into the same folder.
This is due by the fact that Open-SmartModule, at the end, does a LoadControl of your ascx file. Then, it is used like any other control used in a module and it can use the localization method of DNN.