Aleksey Andreyanov wrote:Hello.
Please, try to remove localization files from the application folder.
Also there shouldn't be Localization folder in the folder where you are loading assemblies from.
Ok, this would help reduce the amount of languages shown, but maybe there's a misunderstanding regarding my original question...
I do not want to deploy XML-Files. Rather I want to use embedded XML-Files. This is why I have embedded "en.xml" and "de.xml" as ressourcefiles within my assembly. I was able to load the german localization using the code shown in my first post and could load the english localization using similar code.
But I want to be able to show all available localizations that I have embedded as ressource-files. Since I have embedded only "english" and "german" I want the dropdown to show "english" and "german" although neither file is present on the installation-directory.
I would need code like:
Code: Select all
StiConfig.AddToAvailableLocalizations (typeof(GeneralPrinting).Assembly.GetManifestResourceStream("AdeptusPrinting.Framework.General.Ressources.de.xml"));
StiConfig.AddToAvailableLocalizations (typeof(GeneralPrinting).Assembly.GetManifestResourceStream("AdeptusPrinting.Framework.General.Ressources.en.xml"));
I hope you can now better understand what I mean...
Cheers,
Pascal