Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
f6589017
Commit
f6589017
authored
Mar 25, 2009
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: i18n fixes
parent
1b82d1b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+1
-1
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+14
-14
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+1
-1
No files found.
modules/gui/qt4/components/controller.cpp
View file @
f6589017
...
...
@@ -166,7 +166,7 @@ void AbstractController::createAndAddWidget( QBoxLayout *controlLayout,
CONNECT_MAP( a ); \
SET_MAPPING( a, b );
#define BUTTON_SET_BAR( a_button ) \
a_button->setToolTip( tooltipL[button] )
;
\
a_button->setToolTip(
qtr(
tooltipL[button] )
);
\
a_button->setIcon( QIcon( iconL[button] ) );
#define BUTTON_SET_BAR2( button, image, tooltip ) \
button->setToolTip( tooltip ); \
...
...
modules/gui/qt4/components/controller.hpp
View file @
f6589017
...
...
@@ -97,20 +97,20 @@ typedef enum buttonType_e
}
buttonType_e
;
static
const
QString
nameL
[
BUTTON_MAX
]
=
{
"Play"
,
"Stop"
,
"Open"
,
"Previous"
,
"Next"
,
"Slower"
,
"Faster"
,
"Fullscreen"
,
"De-Fullscreen"
,
"Extended panel"
,
"Playlist"
,
"Snapshot"
,
"Record"
,
"A->B Loop"
,
"Frame By Frame"
,
"Trickplay Reverse"
,
"Step backward"
,
"Step forward"
,
"Quit"
};
static
const
QString
tooltipL
[
BUTTON_MAX
]
=
{
I_PLAY_TOOLTIP
,
_
(
"Stop playback"
),
_
(
"Open a medium"
),
_
(
"Previous media in the playlist"
),
_
(
"Next media in the playlist"
),
_
(
"Slower"
),
_
(
"Faster"
),
_
(
"Toggle the video in fullscreen"
),
_
(
"Toggle the video out fullscreen"
),
_
(
"Show extended settings"
),
_
(
"Show playlist"
),
_
(
"Take a snapshot"
),
_
(
"
Record
"
),
_
(
"
Loop from point A to point B continuously.
"
),
_
(
"Frame by frame"
),
_
(
"Reverse"
),
_
(
"Step backward"
),
_
(
"
Step forward
"
),
_
(
"Quit"
)
};
static
const
char
*
nameL
[
BUTTON_MAX
]
=
{
N_
(
"Play"
)
,
N_
(
"Stop"
)
,
N_
(
"Open"
)
,
N_
(
"Previous"
)
,
N_
(
"Next"
)
,
N_
(
"Slower"
)
,
N_
(
"Faster"
)
,
N_
(
"Fullscreen"
)
,
N_
(
"De-Fullscreen"
),
N_
(
"Extended panel"
)
,
N_
(
"Playlist"
)
,
N_
(
"Snapshot"
)
,
N_
(
"Record"
),
N_
(
"A->B Loop"
),
N_
(
"Frame By Frame"
)
,
N_
(
"Trickplay Reverse"
)
,
N_
(
"Step backward"
),
N_
(
"Step forward"
),
N_
(
"Quit"
)
};
static
const
char
*
tooltipL
[
BUTTON_MAX
]
=
{
I_PLAY_TOOLTIP
,
N
_
(
"Stop playback"
),
N
_
(
"Open a medium"
),
N
_
(
"Previous media in the playlist"
),
N
_
(
"Next media in the playlist"
),
N
_
(
"Slower"
),
N
_
(
"Faster"
),
N
_
(
"Toggle the video in fullscreen"
),
N
_
(
"Toggle the video out fullscreen"
),
N
_
(
"Show extended settings"
),
N
_
(
"Show playlist"
),
N
_
(
"
Take a snapshot
"
),
N
_
(
"
Record
"
),
N
_
(
"Loop from point A to point B continuously."
),
N
_
(
"
Frame by frame
"
),
N_
(
"Reverse"
),
N_
(
"Step backward"
),
N_
(
"Step forward"
),
N
_
(
"Quit"
)
};
static
const
QString
iconL
[
BUTTON_MAX
]
=
{
":/play_b"
,
":/stop_b"
,
":/eject"
,
":/previous_b"
,
":/next_b"
,
":/slower"
,
":/faster"
,
":/fullscreen"
,
":/defullscreen"
,
":/extended"
,
":/playlist"
,
":/snapshot"
,
":/record"
,
...
...
modules/gui/qt4/dialogs/toolbar.cpp
View file @
f6589017
...
...
@@ -284,7 +284,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
for
(
int
i
=
0
;
i
<
BUTTON_MAX
;
i
++
)
{
QListWidgetItem
*
widgetItem
=
new
QListWidgetItem
(
this
);
widgetItem
->
setText
(
nameL
[
i
]
);
widgetItem
->
setText
(
qtr
(
nameL
[
i
]
)
);
widgetItem
->
setIcon
(
QIcon
(
iconL
[
i
]
)
);
widgetItem
->
setData
(
Qt
::
UserRole
,
QVariant
(
i
)
);
addItem
(
widgetItem
);
...
...
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