I am nearing completion on my image editing and upload custom server control and am wondering where best to place the localization (resx) file. As this is a custom server control (no .ascx file) rather than a usercontrol and since I anticipate it will be used in any number of modules by multiple developers I cannot find in the localization documentation nor in forum searches the best practices for placement of the resx file. In testing, I have simply placed it in the App_LocalResources folder of my test module's folder.
Several choices for location come to mind. Please advise your recommendations:
- Add the localization keys and values to the SharedResources.resx located in the site's App_GlobalResources folder. This is where many of the framework control's localization values are kept. I feel, however that this file (as well as GlobalResources.resx in the same folder) should be reserved for use by core controls only.
- Add the localization file (WESNet_ImageEditorControl.resx) to the App_GlobalResources folder. This would be my #2 choice, but I need to know if the App_GlobalResources folder should be reserved for core localization only.
- Add the localization file to the site's controls/App_LocalResources folder. Most of the core usercontrols place their localization files in this folder. This would be my #1 choice, but I am concerned if this folder should be reserved for core control localization only.
- Add the localization file to a new sub-folder in the site's Resources folder. Although this would seem a good choice I don't see any other localization files there.
Since I can code the server control to reference the localization file from just about anywhere, let's hear your suggestions. BTW, when ready, the control source and demo/test module will be released as an open source project on Forge/CodePlex.