Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b901bcae
Commit
b901bcae
authored
Feb 27, 2003
by
ipkiss
Browse files
A few modifications to get closer to i18n in the win32 interface
parent
be91f7e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/win32/misc.cpp
View file @
b901bcae
...
...
@@ -23,6 +23,8 @@
#include <vcl.h>
#pragma hdrstop
#include <vlc/vlc.h>
#include "misc.h"
/****************************************************************************
...
...
@@ -32,8 +34,8 @@
void
__fastcall
Translate
(
TForm
*
Form
)
{
#if 0
Form->Hint = _( Form->Hint );
Form->Caption = _( Form->Caption );
Form->Hint = _( Form->Hint
.c_str()
);
Form->Caption = _( Form->Caption
.c_str()
);
int i;
for( i = 0; i < Form->ComponentCount; i++ )
...
...
@@ -49,12 +51,12 @@ void __fastcall Translate( TForm *Form )
if( Component->InheritsFrom( __classid( TControl ) ) )
{
TControl *Object = (TControl *) Component;
Object->Hint = _( Object->Hint );
Object->Hint = _( Object->Hint
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TMenuItem ) ) )
{
TMenuItem *Object = (TMenuItem *) Component;
Object->Hint = _( Object->Hint );
Object->Hint = _( Object->Hint
.c_str()
);
}
}
...
...
@@ -64,47 +66,47 @@ void __fastcall Translate( TForm *Form )
if( Component->InheritsFrom( __classid( TMenuItem ) ) )
{
TMenuItem *Object = (TMenuItem *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TLabel ) ) )
{
TLabel *Object = (TLabel *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TButton ) ) )
{
TButton *Object = (TButton *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TToolButton ) ) )
{
TToolButton *Object = (TToolButton *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TRadioButton ) ) )
{
TRadioButton *Object = (TRadioButton *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TCheckBox ) ) )
{
TCheckBox *Object = (TCheckBox *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TRadioGroup ) ) )
{
TRadioGroup *Object = (TRadioGroup *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TGroupBox ) ) )
{
TGroupBox *Object = (TGroupBox *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TTabSheet ) ) )
{
TTabSheet *Object = (TTabSheet *) Component;
Object->Caption = _( Object->Caption );
Object->Caption = _( Object->Caption
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TListView ) ) )
{
...
...
@@ -112,7 +114,7 @@ void __fastcall Translate( TForm *Form )
int iCol;
for( iCol = 0; iCol < Object->Columns->Count; iCol++ )
Object->Columns->Items[iCol]->Caption =
_( Object->Columns->Items[iCol]->Caption );
_( Object->Columns->Items[iCol]->Caption
.c_str()
);
}
}
...
...
@@ -122,12 +124,12 @@ void __fastcall Translate( TForm *Form )
if( Component->InheritsFrom( __classid( TEdit ) ) )
{
TEdit *Object = (TEdit *) Component;
Object->Text = _( Object->Text );
Object->Text = _( Object->Text
.c_str()
);
}
else if( Component->InheritsFrom( __classid( TComboBox ) ) )
{
TComboBox *Object = (TComboBox *) Component;
Object->Text = _( Object->Text );
Object->Text = _( Object->Text
.c_str()
);
}
}
}
...
...
modules/gui/win32/win32.bpr
View file @
b901bcae
...
...
@@ -26,7 +26,7 @@
<USERDEFINES
value=
"_DEBUG;WIN32;__VLC__;__PLUGIN__;MODULE_NAME_IS_win32"
/>
<SYSDEFINES
value=
"NO_STRICT"
/>
<MAINSOURCE
value=
"win32.bpf"
/>
<INCLUDEPATH
value=
"F:\ProgInst\Borland\CBuilder5\Bin;..\..\win32;$(BCB)\include;$(BCB)\include\vcl;..\..\..\include;..\..\.."
/>
<INCLUDEPATH
value=
"F:\ProgInst\Borland\CBuilder5\Bin;..\..\win32;$(BCB)\include;$(BCB)\include\vcl;..\..\..\include;..\..\..
;..\..\..\intl
"
/>
<LIBPATH
value=
"F:\ProgInst\Borland\CBuilder5\Bin;..\..\win32;$(BCB)\lib\obj;$(BCB)\lib"
/>
<WARNINGS
value=
"-w-par"
/>
</MACROS>
...
...
@@ -112,4 +112,4 @@ ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>
\ No newline at end of file
</PROJECT>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment