Our winforms application needs to be able to distribute ad-hoc translations in the *.resource format and use these in preference to the embedded translations. Is there a way to acheive this fall back strategy?
Our winforms application needs to be able to distribute ad-hoc translations in the *.resource
Share
I’ve created a new class that can contain two
ResourceManagers. These can be both a file basedResourceManagerfor the ad-hoc *.resource files and an assembly basedResourceManagerfor the embedded resource files.If the ad-hock mode is enabled then the primary
ResourceManageris file based with the secondResourceManageras an assembly based one used in acatchblock as a fall back.If the ad-hoc mode is dissabled the primary
ResourceManageris an assembly based one and there is no secondaryResourceManager.