Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Xtreme Toolkit Translation.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Xtreme Toolkit Translation.

 Post Reply Post Reply
Author
Message
WilliamGS View Drop Down
Newbie
Newbie


Joined: 18 April 2005
Location: Peru
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote WilliamGS Quote  Post ReplyReply Direct Link To This Post Topic: Xtreme Toolkit Translation.
    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

Back to Top
pascal View Drop Down
Groupie
Groupie


Joined: 07 February 2005
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote pascal Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WilliamGS View Drop Down
Newbie
Newbie


Joined: 18 April 2005
Location: Peru
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote WilliamGS Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2006 at 1:11pm
Hello Pascal, thank you so much for you help.
 
William GS
Back to Top
WilliamGS View Drop Down
Newbie
Newbie


Joined: 18 April 2005
Location: Peru
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote WilliamGS Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pascal View Drop Down
Groupie
Groupie


Joined: 07 February 2005
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote pascal Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2006 at 10:47am
Really sorry, but I don't know this librarie

Pascal
Pascal Verdier
Software Engineer Manager
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.266 seconds.