[MRTCore] How to load resources across multiple .pri files #1239
-
The default config created from
This means that when I add translated strings to my app, the translations will exist in another pri file, e.g.
However, when you create a
So, how do I load my German strings in this instance? Do I need multiple
What is the solution here? Previously, in WPF, we would have had satellite assemblies that contained the translated resources, so I'm assuming that we can do similar with MRTCore? When I tried requesting the German resources from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Splitting the resources by qualifier is to support resource packs. If you build your app as a bundle, the various resource files will be put into different packages, which are then deployed as needed depending on the device configuration. In that case, the deployment stack will create a merged view of all the resource files, and MRT core will load that transparently if you use the default constructor. If you're not building a bundle, or if your app is unpackaged, then the right thing to do is to remove the packaging entries in the config. That way all the strings end up in the same file. You can find more details here: https://docs.microsoft.com/en-us/windows/uwp/app-resources/build-resources-into-app-package |
Beta Was this translation helpful? Give feedback.
Splitting the resources by qualifier is to support resource packs. If you build your app as a bundle, the various resource files will be put into different packages, which are then deployed as needed depending on the device configuration. In that case, the deployment stack will create a merged view of all the resource files, and MRT core will load that transparently if you use the default constructor.
If you're not building a bundle, or if your app is unpackaged, then the right thing to do is to remove the packaging entries in the config. That way all the strings end up in the same file.
You can find more details here: https://docs.microsoft.com/en-us/windows/uwp/app-resources/build-resou…