Print Page | Close Window

Using other language Resources

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=520
Printed Date: 24 April 2024 at 2:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using other language Resources
Posted By: Alex H.
Subject: Using other language Resources
Date Posted: 12 March 2004 at 5:13am

What is the correct way to include f.ex. german language resources in my MFC application using Toolkit Pro ?

#include <XTToolkitPro.rc>  in the .rc2 inckudes always the english resources.

But there is no language dependant XTToolkitPro.rc file.

Please help




Replies:
Posted By: Cezariusz
Date Posted: 12 March 2004 at 5:24am
If you always want to include German resources just write:
#include <L.de\XTToolkitPro.rc>

If you need to inlcude different resources depending on the build language, you could use a macro like this:

#ifdef RC_LANGDIR
#define LOCDIR(f) <l.##RC_LANGDIR##\\f>
#include LOCDIR(XTToolkitPro.rc)
#undef LOCDIR
#else
#include "XTToolkitPro.rc"
#endif

And add apropriate definition to the configuration, for example:

# ADD RSC /d RC_LANGDIR=de



-------------
mailto:cezariusz.marek@comarch.pl - Cezariusz Marek
http://www.comarch.com/ - http://www.comarch.com/


Posted By: Alex H.
Date Posted: 12 March 2004 at 6:47am

Thank you for your answer !

I use version 8.61 and in my version your code doesn't work.

The direcotory L.de  doesn't exist in my installation.

Instead:

include\controls\L\XTResource.de.rc 

include\CommandBars\L\XTPCommandBarsResource.de.rc

...

exist.



Posted By: Cezariusz
Date Posted: 12 March 2004 at 6:53am
I"m using the standard edition, so you'll have to modify the macro.

-------------
mailto:cezariusz.marek@comarch.pl - Cezariusz Marek
http://www.comarch.com/ - http://www.comarch.com/


Posted By: stuebing
Date Posted: 16 March 2004 at 7:09am
Hi,

how to include two different languages into one application executable? I already tried different settings in my *.rc2-file, but did not succeed.

Thanks,
    Andreas


Posted By: kstowell
Date Posted: 19 April 2004 at 1:59pm

We are working on a sample that illustrates doing this, it will be available for the next release.



-------------
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<


Posted By: Ark42
Date Posted: 23 April 2004 at 12:25am

Is it possible in 8.70 to include all of the language resources and pick them at startup, or do we have to wait in order to do that?



Posted By: SuperMario
Date Posted: 22 October 2004 at 6:33am
I think starting with 9.0 or 9.1 XTPro supports multi-language.  You can look at the Mulit-language sample or multi-language scribble sample for sample useage.  http://www.codejock.com/products/commandbars/activex/cb_multilanguage.asp - Here is a link (I know its for ActiveX) showing all the currently supported languages.



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