Commit 262b0474 authored by Felix Paul Kühne's avatar Felix Paul Kühne

string review

parent 064c1166
...@@ -28,23 +28,23 @@ KDiskDialog::KDiskDialog( QWidget *parent, const char *name ) ...@@ -28,23 +28,23 @@ KDiskDialog::KDiskDialog( QWidget *parent, const char *name )
QHBox *deviceSelectHBox = new QHBox( pageVBox ); QHBox *deviceSelectHBox = new QHBox( pageVBox );
deviceSelectHBox->setSpacing( 5 ); deviceSelectHBox->setSpacing( 5 );
fButtonGroup = new QVButtonGroup( "Disk type", deviceSelectHBox ); fButtonGroup = new QVButtonGroup( _("Disk type"), deviceSelectHBox );
fDVDButton = new QRadioButton( "DVD", fButtonGroup); fDVDButton = new QRadioButton( "DVD", fButtonGroup);
fDVDButton->setChecked( true ); fDVDButton->setChecked( true );
fVCDButton = new QRadioButton( "VCD", fButtonGroup); fVCDButton = new QRadioButton( "VCD", fButtonGroup);
fVCDButton->setEnabled( false ); fVCDButton->setEnabled( false );
QVGroupBox *startVBox = new QVGroupBox( "Starting position", deviceSelectHBox ); QVGroupBox *startVBox = new QVGroupBox( _("Starting position"), deviceSelectHBox );
QHBox *titleHBox = new QHBox( startVBox ); QHBox *titleHBox = new QHBox( startVBox );
new QLabel( "Title ", titleHBox ); new QLabel( _("Title "), titleHBox );
fTitle = new QSpinBox( titleHBox ); fTitle = new QSpinBox( titleHBox );
QHBox *chapterHBox = new QHBox( startVBox ); QHBox *chapterHBox = new QHBox( startVBox );
new QLabel( "Chapter ", chapterHBox ); new QLabel( _("Chapter "), chapterHBox );
fChapter = new QSpinBox( chapterHBox ); fChapter = new QSpinBox( chapterHBox );
QHBox *deviceNameHBox = new QHBox( pageVBox ); QHBox *deviceNameHBox = new QHBox( pageVBox );
new QLabel( "Device name ", deviceNameHBox ); new QLabel( _("Device name "), deviceNameHBox );
fLineEdit = new KLineEdit( "/dev/dvd", deviceNameHBox ); fLineEdit = new KLineEdit( "/dev/dvd", deviceNameHBox );
} }
......
...@@ -86,7 +86,7 @@ KInterface::~KInterface() ...@@ -86,7 +86,7 @@ KInterface::~KInterface()
void KInterface::initActions() void KInterface::initActions()
{ {
languages = new KActionMenu( _( "Languages" ), actionCollection(), languages = new KActionMenu( _( "Languages" ), actionCollection(),
"language" ); _("language") );
languages->setEnabled( false ); languages->setEnabled( false );
languageCollection = new KActionCollection( this ); languageCollection = new KActionCollection( this );
subtitleCollection = new KActionCollection( this ); subtitleCollection = new KActionCollection( this );
...@@ -107,28 +107,28 @@ void KInterface::initActions() ...@@ -107,28 +107,28 @@ void KInterface::initActions()
viewStatusBar = KStdAction::showStatusbar(this, SLOT(slotViewStatusBar()), viewStatusBar = KStdAction::showStatusbar(this, SLOT(slotViewStatusBar()),
actionCollection()); actionCollection());
diskOpen = new KAction( i18n( "Open &Disk" ), 0, 0, this, diskOpen = new KAction( i18n( _("Open &Disk") ), 0, 0, this,
SLOT( slotOpenDisk() ), actionCollection(), SLOT( slotOpenDisk() ), actionCollection(),
"open_disk" ); "open_disk" );
streamOpen = new KAction( i18n( "Open &Stream" ), 0, 0, this, streamOpen = new KAction( i18n( _("Open &Stream") ), 0, 0, this,
SLOT( slotOpenStream() ), actionCollection(), SLOT( slotOpenStream() ), actionCollection(),
"open_stream" ); "open_stream" );
backward = new KAction( i18n( "&Backward" ), 0, 0, this, backward = new KAction( i18n( _("&Backward") ), 0, 0, this,
SLOT( slotBackward() ), actionCollection(), SLOT( slotBackward() ), actionCollection(),
"backward" ); "backward" );
stop = new KAction( i18n( "&Stop" ), 0, 0, this, stop = new KAction( i18n( _("&Stop") ), 0, 0, this,
SLOT( slotStop() ), actionCollection(), "stop" ); SLOT( slotStop() ), actionCollection(), "stop" );
play = new KAction( i18n( "&Play" ), 0, 0, this, play = new KAction( i18n( _("&Play") ), 0, 0, this,
SLOT( slotPlay() ), actionCollection(), "play" ); SLOT( slotPlay() ), actionCollection(), "play" );
pause = new KAction( i18n( "P&ause" ), 0, 0, this, pause = new KAction( i18n( _("P&ause") ), 0, 0, this,
SLOT( slotPause() ), actionCollection(), "pause" ); SLOT( slotPause() ), actionCollection(), "pause" );
slow = new KAction( i18n( "&Slow" ), 0, 0, this, slow = new KAction( i18n( _("&Slow") ), 0, 0, this,
SLOT( slotSlow() ), actionCollection(), "slow" ); SLOT( slotSlow() ), actionCollection(), "slow" );
fast = new KAction( i18n( "Fas&t" ), 0, 0, this, fast = new KAction( i18n( _("Fas&t") ), 0, 0, this,
SLOT( slotFast() ), actionCollection(), "fast" ); SLOT( slotFast() ), actionCollection(), "fast" );
prev = new KAction( i18n( "Prev" ), 0, 0, this, prev = new KAction( i18n( _("Prev") ), 0, 0, this,
SLOT( slotPrev() ), actionCollection(), "prev" ); SLOT( slotPrev() ), actionCollection(), "prev" );
next = new KAction( i18n( "Next" ), 0, 0, this, next = new KAction( i18n( _("Next") ), 0, 0, this,
SLOT( slotNext() ), actionCollection(), "next" ); SLOT( slotNext() ), actionCollection(), "next" );
messages = new KAction( _( "Messages..." ), 0, 0, this, messages = new KAction( _( "Messages..." ), 0, 0, this,
SLOT( slotShowMessages() ), actionCollection(), SLOT( slotShowMessages() ), actionCollection(),
...@@ -145,22 +145,22 @@ void KInterface::initActions() ...@@ -145,22 +145,22 @@ void KInterface::initActions()
title->setEnabled( false ); title->setEnabled( false );
chapter = new KActionMenu( _( "Chapter" ), actionCollection(), "chapter" ); chapter = new KActionMenu( _( "Chapter" ), actionCollection(), "chapter" );
chapter->setEnabled( false ); chapter->setEnabled( false );
fileOpen->setStatusText(i18n("Opens an existing document")); fileOpen->setStatusText(i18n(_("Opens an existing document")));
fileOpenRecent->setStatusText(i18n("Opens a recently used file")); fileOpenRecent->setStatusText(i18n(_("Opens a recently used file")));
fileQuit->setStatusText(i18n("Quits the application")); fileQuit->setStatusText(i18n(_("Quits the application")));
viewToolBar->setStatusText(i18n("Enables/disables the toolbar")); viewToolBar->setStatusText(i18n(_("Enables/disables the toolbar")));
viewStatusBar->setStatusText(i18n("Enables/disables the statusbar")); viewStatusBar->setStatusText(i18n(_("Enables/disables the statusbar")));
diskOpen->setStatusText( i18n( "Opens a disk") ); diskOpen->setStatusText( i18n( _("Opens a disk") ) );
streamOpen->setStatusText( i18n( "Opens a network stream" ) ); streamOpen->setStatusText( i18n( _("Opens a network stream") ) );
backward->setStatusText( i18n( "Backward" ) ); backward->setStatusText( i18n( _("Backward") ) );
stop->setStatusText( i18n( "Stops playback" ) ); stop->setStatusText( i18n( _("Stops playback") ) );
play->setStatusText( i18n( "Starts playback" ) ); play->setStatusText( i18n( _("Starts playback") ) );
pause->setStatusText( i18n( "Pauses playback" ) ); pause->setStatusText( i18n( _("Pauses playback") ) );
slow->setStatusText( i18n( "Slow" ) ); slow->setStatusText( i18n( _("Slow") ) );
fast->setStatusText( i18n( "Fast" ) ); fast->setStatusText( i18n( _("Fast") ) );
prev->setStatusText( i18n( "Prev" ) ); prev->setStatusText( i18n( _("Prev") ) );
next->setStatusText( i18n( "Next" ) ); next->setStatusText( i18n( _("Next") ) );
// use the absolute path to your ktestui.rc file for testing purpose in createGUI(); // use the absolute path to your ktestui.rc file for testing purpose in createGUI();
char *psz_uifile = config_GetPsz( p_intf, "kde-uirc" ); char *psz_uifile = config_GetPsz( p_intf, "kde-uirc" );
createGUI( psz_uifile ); createGUI( psz_uifile );
...@@ -172,7 +172,7 @@ void KInterface::initStatusBar() ...@@ -172,7 +172,7 @@ void KInterface::initStatusBar()
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
// STATUSBAR // STATUSBAR
// TODO: add your own items you need for displaying current application status. // TODO: add your own items you need for displaying current application status.
statusBar()->insertItem(i18n("Ready."), ID_STATUS_MSG, 1, false); statusBar()->insertItem(i18n(_("Ready.")), ID_STATUS_MSG, 1, false);
statusBar()->setItemAlignment( ID_STATUS_MSG, AlignLeft | AlignVCenter ); statusBar()->setItemAlignment( ID_STATUS_MSG, AlignLeft | AlignVCenter );
statusBar()->insertItem( "0:00:00", ID_DATE, 0, true ); statusBar()->insertItem( "0:00:00", ID_DATE, 0, true );
} }
...@@ -197,9 +197,9 @@ void KInterface::slotFileOpen() ...@@ -197,9 +197,9 @@ void KInterface::slotFileOpen()
{ {
playlist_t *p_playlist; playlist_t *p_playlist;
slotStatusMsg( i18n( "Opening file..." ) ); slotStatusMsg( i18n( _("Opening file...") ) );
KURL url=KFileDialog::getOpenURL( QString::null, KURL url=KFileDialog::getOpenURL( QString::null,
i18n( "*|All files" ), this, i18n( "Open File..." ) ); i18n( "*|All files" ), this, i18n( _("Open File...") ) );
if( !url.isEmpty() ) if( !url.isEmpty() )
{ {
...@@ -214,25 +214,25 @@ void KInterface::slotFileOpen() ...@@ -214,25 +214,25 @@ void KInterface::slotFileOpen()
} }
} }
slotStatusMsg( i18n( "Ready." ) ); slotStatusMsg( i18n( _("Ready.") ) );
} }
void KInterface::slotFileOpenRecent(const KURL& url) void KInterface::slotFileOpenRecent(const KURL& url)
{ {
slotStatusMsg(i18n("Opening file...")); slotStatusMsg(i18n(_("Opening file...")));
slotStatusMsg(i18n("Ready.")); slotStatusMsg(i18n(_("Ready.")));
} }
void KInterface::slotFileQuit() void KInterface::slotFileQuit()
{ {
slotStatusMsg(i18n("Exiting...")); slotStatusMsg(i18n(_("Exiting...")));
p_intf->p_vlc->b_die = VLC_TRUE; p_intf->p_vlc->b_die = VLC_TRUE;
slotStatusMsg(i18n("Ready.")); slotStatusMsg(i18n(_("Ready.")));
} }
void KInterface::slotViewToolBar() void KInterface::slotViewToolBar()
{ {
slotStatusMsg(i18n("Toggling toolbar...")); slotStatusMsg(i18n(_("Toggling toolbar...")));
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
// turn Toolbar on or off // turn Toolbar on or off
if(!viewToolBar->isChecked()) if(!viewToolBar->isChecked())
...@@ -244,12 +244,12 @@ void KInterface::slotViewToolBar() ...@@ -244,12 +244,12 @@ void KInterface::slotViewToolBar()
toolBar("mainToolBar")->show(); toolBar("mainToolBar")->show();
} }
slotStatusMsg(i18n("Ready.")); slotStatusMsg(i18n(_("Ready.")));
} }
void KInterface::slotViewStatusBar() void KInterface::slotViewStatusBar()
{ {
slotStatusMsg(i18n("Toggle the statusbar...")); slotStatusMsg(i18n(_("Toggle the statusbar...")));
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
//turn Statusbar on or off //turn Statusbar on or off
if(!viewStatusBar->isChecked()) if(!viewStatusBar->isChecked())
...@@ -261,7 +261,7 @@ void KInterface::slotViewStatusBar() ...@@ -261,7 +261,7 @@ void KInterface::slotViewStatusBar()
statusBar()->show(); statusBar()->show();
} }
slotStatusMsg(i18n("Ready.")); slotStatusMsg(i18n(_("Ready.")));
} }
void KInterface::slotShowPreferences() void KInterface::slotShowPreferences()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* kde.cpp : KDE plugin for vlc * kde.cpp : KDE plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: kde.cpp,v 1.13 2003/12/04 16:02:54 sam Exp $ * $Id: kde.cpp,v 1.14 2004/01/25 15:42:57 kuehne Exp $
* *
* Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001 * Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
* *
...@@ -105,10 +105,10 @@ void run(intf_thread_t *p_intf) ...@@ -105,10 +105,10 @@ void run(intf_thread_t *p_intf)
{ {
p_intf->p_sys->p_about = p_intf->p_sys->p_about =
new KAboutData( "kvlc", I18N_NOOP("Kvlc"), VERSION, new KAboutData( "kvlc", I18N_NOOP("Kvlc"), VERSION,
_("This is the VideoLAN Client, a DVD, MPEG and DivX player. It can " _("This is the VLC media player, a DVD, MPEG and DivX player. It can "
"play MPEG and MPEG2 files from a file or from a network source."), "play MPEG and MPEG2 files from a file or from a network source."),
KAboutData::License_GPL, KAboutData::License_GPL,
_("(c) 1996-2003 the VideoLAN team"), _("(c) 1996-2004 the VideoLAN team"),
0, 0, ""); 0, 0, "");
p_intf->p_sys->p_about->addAuthor( "the VideoLAN team", 0, p_intf->p_sys->p_about->addAuthor( "the VideoLAN team", 0,
......
...@@ -28,7 +28,7 @@ KNetDialog::KNetDialog( QWidget *parent, const char *name ) ...@@ -28,7 +28,7 @@ KNetDialog::KNetDialog( QWidget *parent, const char *name )
QHBox *layout = new QHBox( pageVBox ); QHBox *layout = new QHBox( pageVBox );
layout->setSpacing( 5 ); layout->setSpacing( 5 );
fButtonGroup = new QVButtonGroup( "Protocol", layout ); fButtonGroup = new QVButtonGroup( _("Protocol"), layout );
fTSButton = new QRadioButton( "TS", fButtonGroup); fTSButton = new QRadioButton( "TS", fButtonGroup);
fTSButton->setChecked( true ); fTSButton->setChecked( true );
fRTPButton = new QRadioButton( "RTP", fButtonGroup); fRTPButton = new QRadioButton( "RTP", fButtonGroup);
...@@ -36,13 +36,13 @@ KNetDialog::KNetDialog( QWidget *parent, const char *name ) ...@@ -36,13 +36,13 @@ KNetDialog::KNetDialog( QWidget *parent, const char *name )
fHTTPButton = new QRadioButton( "HTTP", fButtonGroup); fHTTPButton = new QRadioButton( "HTTP", fButtonGroup);
fHTTPButton->setEnabled( false ); fHTTPButton->setEnabled( false );
QVGroupBox *serverVBox = new QVGroupBox( "Starting position", layout ); QVGroupBox *serverVBox = new QVGroupBox( _("Starting position"), layout );
QHBox *titleHBox = new QHBox( serverVBox ); QHBox *titleHBox = new QHBox( serverVBox );
new QLabel( "Address ", titleHBox ); new QLabel( _("Address "), titleHBox );
fAddress = new KLineEdit( "vls", titleHBox ); fAddress = new KLineEdit( "vls", titleHBox );
QHBox *portHBox = new QHBox( serverVBox ); QHBox *portHBox = new QHBox( serverVBox );
new QLabel( "Port ", portHBox ); new QLabel( _("Port "), portHBox );
fPort = new QSpinBox( 0, 65535, 1, portHBox ); fPort = new QSpinBox( 0, 65535, 1, portHBox );
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* preferences.cpp: preferences window for the kde gui * preferences.cpp: preferences window for the kde gui
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: preferences.cpp,v 1.17 2003/07/04 16:35:20 sam Exp $ * $Id: preferences.cpp,v 1.18 2004/01/25 15:42:57 kuehne Exp $
* *
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> Mon Aug 12 2002 * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> Mon Aug 12 2002
* *
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name, KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
QWidget *parent, const QString &caption) : QWidget *parent, const QString &caption) :
KDialogBase ( TreeList, caption, Ok| Apply|Cancel|User1, Ok, parent, KDialogBase ( TreeList, caption, Ok| Apply|Cancel|User1, Ok, parent,
"vlc preferences", true, false, i18n("&Save") ) _("vlc preferences"), true, false, i18n(_("&Save")) )
{ {
module_t *p_parser = NULL; module_t *p_parser = NULL;
vlc_list_t *p_list; vlc_list_t *p_list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment