Print Page | Close Window

Xtreme Toolkit Translation.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4415
Printed Date: 22 December 2024 at 11:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Xtreme Toolkit Translation.
Posted By: WilliamGS
Subject: Xtreme Toolkit Translation.
Date Posted: 15 June 2006 at 11:16am

Hello all. I have an application that support Spanish and English languages, but XTP controls show its messages always in English, for example CReportControl shows: "Drag a column header here to group by that column" and "Tere are no items to show".

I need this messsages in other languages too, ¿how can I translate them?.

I am using XTP 9.6 - VC 6.0/2002 - Win 2000/XP.

Thanks in advance,

William GS




Replies:
Posted By: pascal
Date Posted: 15 June 2006 at 12:28pm
Hello,

Build the translation solution (Resource_vcXX.sln) under
<Program Files>\<Codejock_path>\WorkSpace\Resource. The output directory is then:
<Program Files>\<Codejock_path>\bin\vc80\translations


Once you done it, implement the following statements in your application and call it from initinstance(): (the easy way )
BOOL CMyApp::LoadSpanishLanguage()
{
    HINSTANCE hGUIResource = AfxLoadLibrary( <Path_to_Resource_dll);
    if( hGUIResource == NULL )
        return FALSE;   // That's an error

    XTPResourceManager()->SetResourceHandle(hGUIResource);
}

That's all,

Pascal



-------------
Pascal Verdier
Software Engineer Manager


Posted By: WilliamGS
Date Posted: 15 June 2006 at 1:11pm
Hello Pascal, thank you so much for you help.
 
William GS


Posted By: WilliamGS
Date Posted: 15 June 2006 at 1:26pm
Hello again.
I have problems with
 
  XTPResourceManager()->SetResourceHandle(hGUIResource);
 
I have XTP 9.61, and it does not have this function.
 
Thanks in advance,
William GS


Posted By: pascal
Date Posted: 21 June 2006 at 10:47am
Really sorry, but I don't know this librarie

Pascal


-------------
Pascal Verdier
Software Engineer Manager



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