Using different Languages

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MTW
Newbie
Newbie
Posts: 18
Joined: Fri Apr 02, 2004 5:00 am

Using different Languages

Post by MTW » Fri Feb 25, 2005 4:28 pm

Where can I find documentation for using the different language modules available.

Thanks.
Marvin

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Feb 25, 2005 4:40 pm

Hi Marvin,

Selecting language is quite easy. To include different language translations to single distribution, do the following:

1) Include all languages you want to use + three more units in the Uses
section:

Uses TeeConst, TeeProCo, { <-- English }
{ Languages }
TeeFrench, TeeGerman, TeeSpanish,
TeeTranslate; { Translation system }

2) In code change to different language by TeeSetXXX (XXX=language) call.

You can find an example of this in the TeeChart features demo searching for "language" you will see an example called "multi-language".

3) In case you're building with the runtime packages, you'll also have to
include the TeeLanguageXX.bpl package to your distribution.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

MTW
Newbie
Newbie
Posts: 18
Joined: Fri Apr 02, 2004 5:00 am

Languages with BCB 6

Post by MTW » Tue Mar 01, 2005 5:52 pm

I followed your suggestions and was able to insert the code (BCB 6.0) (TChart 7.04) into the module. However, upon linking, I get an error of unable to locate TeeSetXXX (XXX-language). What else do I need to do?

Thanks.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Mar 01, 2005 6:29 pm

Hi.

With BCB6, the following code works fine:

Code: Select all

#include "TeeConst.hpp"
#include "TeeProCo.hpp"
#include "TeeTranslate.hpp"
#include "TeeSpanish.hpp"
#include "EditChar.hpp"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
  : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
  TeeSetSpanish(); // Spanish
  EditChart(this,Chart1); // show editor ... in Spanish
}
An example of this is also available in TeeChart BCB demo. Especially, check the "All Features -> Miscellaneus -> Multi-language" example.
Marjan Slatinek,
http://www.steema.com

Post Reply