Localization using C++ and Visual Studio 2003

I am attempting to localize a small application which has a default language of English. I started by using the "Insert Copy" feature to create a French Canada copy of the String Table. I added a "Release (French Canada)" configuration to compile to that locale which has the Culture set to "French (Canada)(0xc0c). When I compile using this configuration, the application always compiles in English. At one point it compiled in French, but after making French copies of some of the dialog boxes it reverted back to English. I have not been able to get it to compile in French ever since.

Does anyone have any ideas on how to get this to compile in French

Thanks,

Wayne



Answer this question

Localization using C++ and Visual Studio 2003

  • Ting

     Jangid wrote:
    use setlocale function in ur application class and change resource language

    That doesn't work to load different resources! You need your own Resource DLL!



  • fustrated

    Thanks, Martin. That was the key. I did run into some small problems at first as I had not done an "Insert Copy" on all the resources. As a result, my icons did not show up properly. Once I created French (Canada) copies of all resources including icons, cursors, and accelerators, everything worked well.

    I appreciate the advice on the resource DLL, but for this small application I think it is more work than is needed (especially since all of the development work is complete). Thanks for your help.

    Wayne


  • Khanh Le

    use setlocale function in ur application class and change resource language

    regards

    Manoj Jangid



  • Rutger van Hagen

    If you want to compile french as the only you need to define AFX_RESOURCE_DLL;AFX_TARG_FRA in the resource defines.

    It would be wise to create a different project for tis and to compile the resources in a single DLL. Than you can choose the DLL at startup with AfxSetResourceHandle.



  • Localization using C++ and Visual Studio 2003