Where can I find documentation for using the different language modules available.
Thanks.
Marvin
Using different Languages
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
Languages with BCB 6
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.
Thanks.
Hi.
With BCB6, the following code works fine:
An example of this is also available in TeeChart BCB demo. Especially, check the "All Features -> Miscellaneus -> Multi-language" example.
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
}
Marjan Slatinek,
http://www.steema.com
http://www.steema.com