#include <vcl.h>\r
#pragma hdrstop\r
\r
+#include <vlc/vlc.h>\r
+\r
#include "misc.h"\r
\r
/****************************************************************************\r
void __fastcall Translate( TForm *Form )\r
{\r
#if 0\r
- Form->Hint = _( Form->Hint );\r
- Form->Caption = _( Form->Caption );\r
+ Form->Hint = _( Form->Hint.c_str() );\r
+ Form->Caption = _( Form->Caption.c_str() );\r
\r
int i;\r
for( i = 0; i < Form->ComponentCount; i++ )\r
if( Component->InheritsFrom( __classid( TControl ) ) )\r
{\r
TControl *Object = (TControl *) Component;\r
- Object->Hint = _( Object->Hint );\r
+ Object->Hint = _( Object->Hint.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TMenuItem ) ) )\r
{\r
TMenuItem *Object = (TMenuItem *) Component;\r
- Object->Hint = _( Object->Hint );\r
+ Object->Hint = _( Object->Hint.c_str() );\r
}\r
}\r
\r
if( Component->InheritsFrom( __classid( TMenuItem ) ) )\r
{\r
TMenuItem *Object = (TMenuItem *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TLabel ) ) )\r
{\r
TLabel *Object = (TLabel *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TButton ) ) )\r
{\r
TButton *Object = (TButton *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TToolButton ) ) )\r
{\r
TToolButton *Object = (TToolButton *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TRadioButton ) ) )\r
{\r
TRadioButton *Object = (TRadioButton *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TCheckBox ) ) )\r
{\r
TCheckBox *Object = (TCheckBox *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TRadioGroup ) ) )\r
{\r
TRadioGroup *Object = (TRadioGroup *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TGroupBox ) ) )\r
{\r
TGroupBox *Object = (TGroupBox *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TTabSheet ) ) )\r
{\r
TTabSheet *Object = (TTabSheet *) Component;\r
- Object->Caption = _( Object->Caption );\r
+ Object->Caption = _( Object->Caption.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TListView ) ) )\r
{\r
int iCol;\r
for( iCol = 0; iCol < Object->Columns->Count; iCol++ )\r
Object->Columns->Items[iCol]->Caption =\r
- _( Object->Columns->Items[iCol]->Caption );\r
+ _( Object->Columns->Items[iCol]->Caption.c_str() );\r
}\r
}\r
\r
if( Component->InheritsFrom( __classid( TEdit ) ) )\r
{\r
TEdit *Object = (TEdit *) Component;\r
- Object->Text = _( Object->Text );\r
+ Object->Text = _( Object->Text.c_str() );\r
}\r
else if( Component->InheritsFrom( __classid( TComboBox ) ) )\r
{\r
TComboBox *Object = (TComboBox *) Component;\r
- Object->Text = _( Object->Text );\r
+ Object->Text = _( Object->Text.c_str() );\r
}\r
}\r
}\r