Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Changing Prof-UIS language Collapse All
Subject Author Date
Offer Har May 26, 2010 - 9:23 AM

Dear Support,


I need to load my application in a specific language - I use satellite DLLs for the resource and all is fine, but the Prof-UIS texts are in English. How do I changed them? I tried adding these two any in many places in my code, but it did not do any change to the texts:



    g_ResourceManager->AllowCustomLang();
    g_ResourceManager->SetLangIdDesired(__EXT_MFC_LANG_ID_PORTUGUESE_BRAZILIAN);

Is there anything else I should do?


Thanks,


Ron.

Offer Har May 30, 2010 - 6:34 AM

Dear Support,


Everything seems to be working fine now. I have one thing that does not get translation - the system menu, and the tool-tip Close on the ’X’ of a modal dialog and message box


Any Idea?


Thanks,


Ron.

Technical Support May 26, 2010 - 12:14 PM

The resource DLLs should be the MFC extension DLLs and you should load them using the MFC’s AfxLoadLibrary() API. This is required for registering your DLLs inside internal MFC’s data structure chains which are used for resource searching.
If you don’t want to convert your DLLs into the MFC extension DLL type, then you can load them using the classic Win32 LoadLibrary() API and then register/unregister them in the Prof-UIS Resource manager using the CExtResourceManager::RscInst_Insert() / CExtResourceManager::RscInst_Remove***() APIs.

Offer Har May 26, 2010 - 9:43 PM

Dear Support,


I’m not sure exactly what you mean. I do load my resource DLLs using AfxLoadLibrary, my problem is with resources coming from Prof-UIS which are not translated correctly - the tooltips such as ’Auto Hide’, the word ’Today’ in the calender etc.


I understand that by setting the resource manager Prof-UIS should switch to my desired language, but this does not happen, even when I add the above lines.


Thanks,


Ron.

Technical Support May 27, 2010 - 10:04 AM

We think you encountered a resource identifier collision problem. Prof-UIS uses resource identifiers in the 28000...32000 range. Please check your projects, including plugins, are using resource identifiers which does not intersect with this range.

Additionally, if you set the assigned language identifier to the resource manager, then you should load the plugin resource DLL which contains resources marked with exactly the same language.

Offer Har May 30, 2010 - 6:34 AM

Dear Support,


Everything seems to be working fine now. I have one thing that does not get translation - the system menu, and the tool-tip Close on the ’X’ of a modal dialog and message box


Any Idea?


Thanks,


Ron.