Westwind.Globalization
Westwind.Globalization copied to clipboard
Different App_LocalResources folders with same file name import problem.
Hi Rick, I have the following problem. I want to use Westwind.Globalization library to import our project App_Local and App_global resources. But in the application there is are different areas and each of them have App_LocalResources folder. In some of them there is the resource files with the same name ex. "Index.resx" when try to import all resources from application into DB the ResourceSetId will be Index end the files values will be overloaded ... and as result only the value from the last Index file in the app structure will be imported. I think that we should store ResourceSetId as path not only name of the file.
public bool ImportDirectoryResources(string path, string relativePath) { .................... if (!String.IsNullOrEmpty(relativePath)) { resName = "~/" + relativePath + resName; }
ImportResourceFile(file, resName, localeId);
}
@pnikolova1 - i had the same issue with an asp.net webforms project. I had to override the DbResXConverter, so I could override this method: public bool ImportDirectoryResources(string path, string relativePath). the relativepath variable wasn't being used to determine the resourceset.