Multilanguage Application
-
Hi all!!! How to create multilanguge application, in which user can change a language during run-time, for example, selecting it from menu.:confused: Thanks.
Hello, the codegurus around the world.;) We can load the resource DLL file in InitInstance() on the user selection or detection of the language OS.:cool: I think that this is the easiest way. However, we may need some tool to convert English resource file to Japanese resource file, for example. X| You can find some reference of the multi-language in MSDN help. Have a nice day!
-Masaaki Onishi-
-
Hello, the codegurus around the world.;) We can load the resource DLL file in InitInstance() on the user selection or detection of the language OS.:cool: I think that this is the easiest way. However, we may need some tool to convert English resource file to Japanese resource file, for example. X| You can find some reference of the multi-language in MSDN help. Have a nice day!
-Masaaki Onishi-
-
Try SetThreadLocale function. Create resources in required languages one resource for one language. For example, dialog IDD_ABOUT (English) and IDD_ABOUT (Spanish). Then use SetThreadLocale to choose Your thread locale. Loading IDD_ABOUT dilaog template will load proper version. But this function is only available on NT systems, afaik. On non-nt system You may try to dynamically change resource handle, but don't know if it work. I use SetThreadLocale with success in FileMaster, see: www.geocities.com/TeamMukippe/
-
Try SetThreadLocale function. Create resources in required languages one resource for one language. For example, dialog IDD_ABOUT (English) and IDD_ABOUT (Spanish). Then use SetThreadLocale to choose Your thread locale. Loading IDD_ABOUT dilaog template will load proper version. But this function is only available on NT systems, afaik. On non-nt system You may try to dynamically change resource handle, but don't know if it work. I use SetThreadLocale with success in FileMaster, see: www.geocities.com/TeamMukippe/
-
Hi all!!! How to create multilanguge application, in which user can change a language during run-time, for example, selecting it from menu.:confused: Thanks.
I do that. I use AfxSetResourceHandle(). I get the handle of the resources dll and then use AfxSetResourceHandle. You need to put the AfxSetResourceHandle in several parts of your code because I don't Know why the application loose it. Cheers!!! Carlos Antollini.