Print Page | Close Window

Localization for Color Selector tooltips?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5328
Printed Date: 04 October 2024 at 5:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Localization for Color Selector tooltips?
Posted By: Sstar9
Subject: Localization for Color Selector tooltips?
Date Posted: 20 October 2006 at 2:48am
 
 
In my Application, I have used the Color Selector as Pop-up toolbar and I have also used CXTColorPicker controls in my dialog-based application.  In the Color selector, there are some CodeJock built-in strings, e.g. the tooltip strings of each color in the color selector.  How could I localize these built-in strings in my application?
 
In my localized software, I have tried to set the Resource language to other languages, e.g. German. However, I noticed the built-in string does not change automatically, i.e. the color selector's tooltip strings still remain as English.  I have also noticed that in my following CodeJock folders
 
         ..\MFC\Xtreme Controls 2006 Q3\Source\Controls\res
         ..\MFC\Xtreme CommandBars 2006 Q3\Source\CommandBars\res
 
, there are actually localized resource for the built-in CodeJock strings.  What do I need to do to make my color selector localized to the specified language?
 
 


-------------
Sharing makes life better



Replies:
Posted By: Oleg
Date Posted: 20 October 2006 at 4:57am
Hello,
 
What code you use to set german language ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Sstar9
Date Posted: 20 October 2006 at 5:52am
Hello, Oleg,
 
I modify the Resouce language through "Project Settings".
 
After openning my MFC 6.0 workspace, I goes to "Project" menu -> "Settings". In the "Project Settings" dialog, under "Resouces" tab,  there is "Language" combo box. I changed the language from "English (United States)" to "German (Germany)". That is all I did to change Resource Language.  I did not directly edit the .rc file.  Should the above procedures be sufficient? Or is there any more things I should do to localize the build-in CodeJock strings?


-------------
Sharing makes life better


Posted By: Oleg
Date Posted: 20 October 2006 at 10:10am

Hi,

this will not change toolkit resources.
 
1. you must build dll with langauge you need. Go to Workspace\Resources folder and build german resource.
 
2. you need to load dll with resource
XTPResourceManager()->SetResourceFile(pathtodllfile);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Sstar9
Date Posted: 07 November 2006 at 3:53am
Originally posted by oleg oleg wrote:

XTPResourceManager()->SetResourceFile(pathtodllfile);

 
Hello, Oleg,
 
In my program, I used both XTControls library and XTCommandBars library. Therefore I have to 2 German Resource DLLs, one for the XTCommandBars library and one for the  XTControls library.  
 
Would it be feasible to use your suggested method to set CodeJock strings for both Resouce DLLs.
 
 
In my App, I have tried the following according to your suggestion 
 
BOOL MyApp::InitInstance()
{
      ...
      //Set XTCommandBar Library
      XTPResourceManager()->SetResourceFile(  _T(strLibPath+"CommandBars.ResourceDe.dll") );
 
      //Set XTControls Library
       XTPResourceManager()->SetResourceFile(  _T(strLibPath+"Controls.ResourceDe.dll") );     
      ...
 
}
 
int MyApp::ExitInstance()
{
    XTPResourceManager()->Close();

    return CWinApp::ExitInstance();
}
 
 
, and I found the above code does not work. the strings for CXTColorDialog and CXTColorPicker objects remain as English.  The tooltips for CXTPControlColorSelector object (in a drop-down color menu)  is gone.
 
But if I choose not to set the Control library's resource in the InitInistance() function, at least, I could see the tooltips for my CXTPControlColorSelector object change to German. 
 
 
So do you have any suggestions if I want strings for CXTColorDialog and CXTColorPicker and CXTPControlColorSelector objects all changed to German or another non-English language?
 
 
 
 
 


-------------
Sharing makes life better



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net