Hello, I'm trying to implement a scenario with the WPF Localization Extension, but I can't find a way to do it, so I wanted to check if it's indeed a missing feature or if there's any workaround.
Here is my scenario, based on an application which is distributed to multiple customizers, who can require a specific customization of the base app.
- I have a basic .resx file, one for each language, with the various strings' translations
- Some customers, for some languages, may require a slightly different translation than the standard one for some labels.
My goal, as such, would be to provide to the application a basic .resx file and then, for the same language, provide another one with the same keys (not all of them, just a few) that should override the basic localization.
I tried to implement this scenario by setting the ResxLocalizationProvider.DefaultAssembly property directly to the controls that must support this scenario and to include the customized resources files in a separate class library. However, the problem is that I don't see a way to specify a "Fallback assembly" to use in case the resource isn't present in the customized resource file.
My goal would be to achieve something like "as first priority, take the resource from the custom resource file but, if the key isn't available, fallback to the basic one I've specified for the whole Windows / Page / UserControl".
Is there a way to satisfy this scenario with the current implementation?
Thanks!
Hello, I'm trying to implement a scenario with the WPF Localization Extension, but I can't find a way to do it, so I wanted to check if it's indeed a missing feature or if there's any workaround.
Here is my scenario, based on an application which is distributed to multiple customizers, who can require a specific customization of the base app.
My goal, as such, would be to provide to the application a basic .resx file and then, for the same language, provide another one with the same keys (not all of them, just a few) that should override the basic localization.
I tried to implement this scenario by setting the ResxLocalizationProvider.DefaultAssembly property directly to the controls that must support this scenario and to include the customized resources files in a separate class library. However, the problem is that I don't see a way to specify a "Fallback assembly" to use in case the resource isn't present in the customized resource file.
My goal would be to achieve something like "as first priority, take the resource from the custom resource file but, if the key isn't available, fallback to the basic one I've specified for the whole Windows / Page / UserControl".
Is there a way to satisfy this scenario with the current implementation?
Thanks!