]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/sout/sout_widgets.cpp
a macro to automate the choice of "folder"/"directory" string version according to...
[vlc] / modules / gui / qt4 / components / sout / sout_widgets.cpp
index 799fc082a4578fd41bdbebd5486f69a128e58acc..3be195cedb0b6ccaa098f9bd639b68a654fb5e5e 100644 (file)
@@ -27,6 +27,7 @@
 #include "components/sout/sout_widgets.hpp"
 #include "dialogs/sout.hpp"
 #include "util/qt_dirs.hpp"
+#include <vlc_intf_strings.h>
 
 #include <QGroupBox>
 #include <QGridLayout>
@@ -34,6 +35,9 @@
 #include <QLineEdit>
 #include <QFileDialog>
 
+#define I_FILE_SLASH_DIR \
+    I_DIR_OR_FOLDER( N_("File/Directory"), N_("File/Folder") )
+
 SoutInputBox::SoutInputBox( QWidget *_parent, const QString& mrl ) : QGroupBox( _parent )
 {
     /**
@@ -72,7 +76,7 @@ void SoutInputBox::setMRL( const QString& mrl )
         type = mrl.left( i );
     }
     else
-        type = qtr( "File/Directory" );
+        type = qtr( I_FILE_SLASH_DIR );
     sourceValueLabel->setText( type );
 }