Message board for the users of flat assembler.
> Windows > multilingual resources from dlls
I've several DLLs with resources (like res_en.dll, res_fr.dll, res_de.dll, ...)
let's say you start the application on a french system, then it should show the french resources (from res_fr.dll) in the application.
How do I have to include this dlls in my application?
How do I deal with the current language?
Are the DLLs added to the rsrc section or called by an API function?
Can anyone help me?
Edit: The DLLs exist already and I've to use them. There is a single DLL for each language.
|01 Dec 2014, 22:10||
For multiple languages Windows actually has a feature for GUIs.
If you want to load DLLs depending on the language then you can use the
GetSystemDefaultUILanguage from kernel32. There are other ways to get it but that's a good start.
Edit: Oops, I actually believe GetUserDefaultUILanguage is the correct function to use if you want to get what language the user is currently using.
Last edited by lucifer on 03 Dec 2014, 04:03; edited 1 time in total
|02 Dec 2014, 00:21||
Thank you, lucifer!
So if I understand it correctly, I've to get the system language by GetSystemDefaultUILanguage and then load the DLL on runtime?!
I guess there is no way to get the needed DLL by an API call with language as param? I've to know that german is in res_de.dll and french is in res_fr.dll - right?
In C# you can declare resources like msg.de.resx, msg.fr.resx (or even msg.fr.FR.resx, msg.fr.CH.resx, msg.fr.BE.resx) and the automatical access the right one by the system language.
|02 Dec 2014, 09:35||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.