Page 1 of 1

Using different Languages

Posted: Fri Feb 25, 2005 4:28 pm
by 9231987
Where can I find documentation for using the different language modules available.

Thanks.
Marvin

Posted: Fri Feb 25, 2005 4:40 pm
by narcis
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.

Languages with BCB 6

Posted: Tue Mar 01, 2005 5:52 pm
by 9231987
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.

Posted: Tue Mar 01, 2005 6:29 pm
by Marjan
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.