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 » RibbonBar File Options: String localization problem Collapse All
Subject Author Date
Oliver Rau Jun 5, 2008 - 9:36 AM

Dear ProfUIS-Team,


we have problems with the correct localization of a button string in our RibbonBar’s "File->Options" that is displayed based on the system language and NOT based on the current dialog language.


In a function CMainFrame::SetProfUISLanguage the following functions are called:


g_ResourceManager->AllowCustomLang (true);
g_ResourceManager->SetLangIdDesired (LangInfo.GetLangId());

This function CMainFrame::SetProfUISLanguage is being called from


int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	CWinApp * pApp = ::AfxGetApp();
	ASSERT( pApp != NULL );
	ASSERT( pApp->m_pszRegistryKey != NULL );
	ASSERT( pApp->m_pszRegistryKey[0] != _T(’\0’) );
	ASSERT( pApp->m_pszProfileName != NULL );
	ASSERT( pApp->m_pszProfileName[0] != _T(’\0’) );
	pApp;

	// [PROF-UIS RESOURCES] set the Prof-UIS resource language
	SetProfUISLanguage();

	if (CExtNCW < CMDIFrameWnd >::OnCreate(lpCreateStruct) == -1)
		return -1;

	VERIFY(
		g_CmdManager->ProfileWndAdd(
			theApp.m_pszProfileName,
			GetSafeHwnd()
			)
		);

    [...]
}

I’ll send you a screenshot that illustrates the problem with an extra email.


Thanks in advance,


Martin

Oliver Rau Jun 6, 2008 - 2:58 AM

We are using Prof-UIS resources for this. It’s the IDD_EXT_RIBBON_QATB_CUSTOMIZE_MODIFY that’s not localized properly.MODIFY</code> that’s not localized properly. I get the german string "Anpassen" even if I have english as my current dialog language using the upper resource manager mechanism.

Technical Support Jun 5, 2008 - 1:14 PM

The ID_EXT_RIBBON_FILE_MENU_OPTIONS resource contains the text on the Options button in the ribbon bar’s File menu. We guess it’s simply not translated in the language resources you are using. Please let us know which language resources you are using?