flat assembler
Message board for the users of flat assembler.
Index
> Windows > multilingual resources from dlls |
Author |
|
lucifer 02 Dec 2014, 00:21
For multiple languages Windows actually has a feature for GUIs.
http://msdn.microsoft.com/en-us/library/cc194810.aspx 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. http://msdn.microsoft.com/en-us/library/windows/desktop/dd318137%28v=vs.85%29.aspx[/b] Last edited by lucifer on 03 Dec 2014, 04:03; edited 1 time in total |
|||
02 Dec 2014, 00:21 |
|
upsurt 02 Dec 2014, 09:35
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 > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.