Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
b901bcae
Commit
b901bcae
authored
Feb 27, 2003
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few modifications to get closer to i18n in the win32 interface
parent
be91f7e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
modules/gui/win32/misc.cpp
modules/gui/win32/misc.cpp
+18
-16
modules/gui/win32/win32.bpr
modules/gui/win32/win32.bpr
+2
-2
No files found.
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