[vlc-devel] commit: i18n fixes (Christophe Mutricy )
git version control
git at videolan.org
Tue Sep 23 23:52:32 CEST 2008
vlc | branch: 0.9-bugfix | Christophe Mutricy <xtophe at videolan.org> | Sat Sep 20 23:04:16 2008 +0100| [7cf7e409e72cb8069ed374d4e72db07e5fba0a13] | committer: Christophe Mutricy
i18n fixes
(cherry picked from commit 2396250c9a24d7cd206f2d6278b47fd3ac70e85c)
Signed-off-by: Christophe Mutricy <xtophe at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7cf7e409e72cb8069ed374d4e72db07e5fba0a13
---
modules/gui/qt4/dialogs/vlm.cpp | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/modules/gui/qt4/dialogs/vlm.cpp b/modules/gui/qt4/dialogs/vlm.cpp
index c6b013a..c000471 100644
--- a/modules/gui/qt4/dialogs/vlm.cpp
+++ b/modules/gui/qt4/dialogs/vlm.cpp
@@ -53,7 +53,6 @@
#include <QScrollArea>
#include <QFileDialog>
-static const char *psz_type[] = { "Broadcast", "Schedule", "VOD" };
VLMDialog *VLMDialog::instance = NULL;
@@ -73,9 +72,9 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa
ui.saveButton->hide();
#define ADDMEDIATYPES( str, type ) ui.mediaType->addItem( qtr( str ), QVariant( type ) );
- ADDMEDIATYPES( "Broadcast", QVLM_Broadcast );
- ADDMEDIATYPES( "Schedule", QVLM_Schedule );
- ADDMEDIATYPES( "Video On Demand ( VOD )", QVLM_VOD );
+ ADDMEDIATYPES( N_("Broadcast"), QVLM_Broadcast );
+ ADDMEDIATYPES( N_("Schedule"), QVLM_Schedule );
+ ADDMEDIATYPES( N_("Video On Demand ( VOD )"), QVLM_VOD );
#undef ADDMEDIATYPES
/* Schedule Stuffs */
@@ -526,7 +525,7 @@ VLMBroadcast::VLMBroadcast( QString _name, QString _input, QString _output,
: VLMAWidget( _name, _input, _output,
_enabled, _parent, QVLM_Broadcast )
{
- nameLabel->setText( "Broadcast: " + name );
+ nameLabel->setText( qtr("Broadcast: ") + name );
type = QVLM_Broadcast;
b_looped = _looped;
@@ -594,7 +593,7 @@ VLMSchedule::VLMSchedule( QString name, QString input, QString output,
bool enabled, VLMDialog *parent )
: VLMAWidget( name, input, output, enabled, parent, QVLM_Schedule )
{
- nameLabel->setText( "Schedule: " + name );
+ nameLabel->setText( qtr("Schedule: ") + name );
schetime = _schetime;
schedate = _schedate;
rNumber = _scherepeatnumber;
@@ -616,7 +615,7 @@ VLMVod::VLMVod( QString name, QString input, QString output,
bool enabled, QString _mux, VLMDialog *parent)
: VLMAWidget( name, input, output, enabled, parent, QVLM_VOD )
{
- nameLabel->setText( "VOD:" + name );
+ nameLabel->setText( qtr("VOD: ") + name );
mux = _mux;
muxLabel = new QLabel;
More information about the vlc-devel
mailing list