Commit 550c5cdb authored by Clement CHAVANCE's avatar Clement CHAVANCE

added French translation for the transcode UI

parent 9b87b8bb
Many thanks to our translators! Many thanks to our translators!
French:
Clément CHAVANCE <kinder@vlmc.org>
French, Spanish: French, Spanish:
Christophe Courtaut <kri5@vlmc.org> Christophe Courtaut <kri5@vlmc.org>
......
...@@ -37,6 +37,19 @@ Transcode *Transcode::instance( QWidget *parent ) ...@@ -37,6 +37,19 @@ Transcode *Transcode::instance( QWidget *parent )
return ( Transcode::m_instance ); return ( Transcode::m_instance );
} }
void Transcode::changeEvent( QEvent *e )
{
switch ( e->type() )
{
case QEvent::LanguageChange:
m_ui.retranslateUi( this );
break;
default:
QWidget::changeEvent( e );
break;
}
}
Transcode::Transcode( QWidget *parent ) Transcode::Transcode( QWidget *parent )
: QDialog( parent ) : QDialog( parent )
{ {
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <QDialog> #include <QDialog>
#include <QString> #include <QString>
#include <QEvent>
#include "ui_transcode.h" #include "ui_transcode.h"
...@@ -35,6 +36,9 @@ class Transcode : public QDialog ...@@ -35,6 +36,9 @@ class Transcode : public QDialog
public: public:
static Transcode *instance( QWidget* parent = 0 ); static Transcode *instance( QWidget* parent = 0 );
protected:
virtual void changeEvent( QEvent *e );
private: private:
explicit Transcode( QWidget *parent = 0 ); explicit Transcode( QWidget *parent = 0 );
~Transcode() {} ~Transcode() {}
...@@ -43,7 +47,7 @@ class Transcode : public QDialog ...@@ -43,7 +47,7 @@ class Transcode : public QDialog
static Transcode *m_instance; static Transcode *m_instance;
public slots: private slots:
void on_browseFileButton_clicked(); void on_browseFileButton_clicked();
void on_dialogButtonBox_accepted(); void on_dialogButtonBox_accepted();
......
...@@ -38,32 +38,32 @@ ...@@ -38,32 +38,32 @@
<context> <context>
<name>LibraryWidget</name> <name>LibraryWidget</name>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="109"/> <location filename="../src/gui/LibraryWidget.cpp" line="125"/>
<source>Open Audios</source> <source>Open Audios</source>
<translation>Abrir un sonido</translation> <translation>Abrir un sonido</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="110"/> <location filename="../src/gui/LibraryWidget.cpp" line="126"/>
<source>Audio Files</source> <source>Audio Files</source>
<translation>archivo de audio</translation> <translation>archivo de audio</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="115"/> <location filename="../src/gui/LibraryWidget.cpp" line="131"/>
<source>Video Files</source> <source>Video Files</source>
<translation>archivo de vídeo</translation> <translation>archivo de vídeo</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="120"/> <location filename="../src/gui/LibraryWidget.cpp" line="136"/>
<source>Images Files</source> <source>Images Files</source>
<translation>Imágenes</translation> <translation>Imágenes</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="114"/> <location filename="../src/gui/LibraryWidget.cpp" line="130"/>
<source>Open Videos</source> <source>Open Videos</source>
<translation>Abrir un archivo de vídeo</translation> <translation>Abrir un archivo de vídeo</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="119"/> <location filename="../src/gui/LibraryWidget.cpp" line="135"/>
<source>Open Images</source> <source>Open Images</source>
<translation>Abrir una imagen</translation> <translation>Abrir una imagen</translation>
</message> </message>
...@@ -101,12 +101,14 @@ ...@@ -101,12 +101,14 @@
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../src/gui/MainWindow.cpp" line="67"/> <location filename="../src/gui/MainWindow.cpp" line="68"/>
<location filename="../src/gui/ui/MainWindow.ui" line="113"/>
<source>Media Library</source> <source>Media Library</source>
<translation type="unfinished">Biblioteca multimedia</translation> <translation type="unfinished">Biblioteca multimedia</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/MainWindow.cpp" line="73"/> <location filename="../src/gui/MainWindow.cpp" line="74"/>
<location filename="../src/gui/ui/MainWindow.ui" line="124"/>
<source>Preview</source> <source>Preview</source>
<translation type="unfinished">Vista previa</translation> <translation type="unfinished">Vista previa</translation>
</message> </message>
...@@ -121,51 +123,61 @@ ...@@ -121,51 +123,61 @@
<translation>Archivo</translation> <translation>Archivo</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="41"/> <location filename="../src/gui/ui/MainWindow.ui" line="42"/>
<source>Edit</source> <source>Edit</source>
<translation>Edición</translation> <translation>Edición</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="47"/> <location filename="../src/gui/ui/MainWindow.ui" line="48"/>
<source>View</source> <source>View</source>
<translation type="unfinished">Vista</translation> <translation type="unfinished">Vista</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="52"/> <location filename="../src/gui/ui/MainWindow.ui" line="53"/>
<source>Effects</source> <source>Effects</source>
<translation>Efectos</translation> <translation>Efectos</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="57"/> <location filename="../src/gui/ui/MainWindow.ui" line="58"/>
<source>Tools</source> <source>Tools</source>
<translation type="unfinished">Herramientas</translation> <translation type="unfinished">Herramientas</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="62"/> <location filename="../src/gui/ui/MainWindow.ui" line="63"/>
<source>Window</source> <source>Window</source>
<translation type="unfinished">Ventana</translation> <translation type="unfinished">Ventana</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="67"/> <location filename="../src/gui/ui/MainWindow.ui" line="70"/>
<location filename="../src/gui/ui/MainWindow.ui" line="94"/> <location filename="../src/gui/ui/MainWindow.ui" line="100"/>
<source>Help</source> <source>Help</source>
<translation>Ayuda</translation> <translation>Ayuda</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="84"/> <location filename="../src/gui/ui/MainWindow.ui" line="87"/>
<source>Quit</source> <source>Quit</source>
<translation>Salir</translation> <translation>Salir</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="89"/> <location filename="../src/gui/ui/MainWindow.ui" line="90"/>
<source>Ctrl+Q</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/ui/MainWindow.ui" line="95"/>
<source>About</source> <source>About</source>
<translation>A propósito de</translation> <translation>A propósito de</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="99"/> <location filename="../src/gui/ui/MainWindow.ui" line="105"/>
<source>Preferences</source> <source>Preferences</source>
<translation>Preferencias</translation> <translation>Preferencias</translation>
</message> </message>
<message>
<location filename="../src/gui/ui/MainWindow.ui" line="129"/>
<source>Transcode File</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Preferences</name> <name>Preferences</name>
...@@ -218,10 +230,20 @@ ...@@ -218,10 +230,20 @@
<context> <context>
<name>PreviewWidget</name> <name>PreviewWidget</name>
<message> <message>
<location filename="../src/gui/ui/PreviewWidget.ui" line="17"/> <location filename="../src/gui/ui/PreviewWidget.ui" line="29"/>
<source>Dialog</source> <source>Dialog</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../src/gui/ui/PreviewWidget.ui" line="57"/>
<source>Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/ui/PreviewWidget.ui" line="62"/>
<source>Clip</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Timeline</name> <name>Timeline</name>
...@@ -231,4 +253,68 @@ ...@@ -231,4 +253,68 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>Transcode</name>
<message>
<location filename="../src/gui/Transcode.cpp" line="58"/>
<source>High Quality</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="59"/>
<source>Medium Quality</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="60"/>
<source>Low Quality</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="66"/>
<source>Choose File to open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="68"/>
<location filename="../src/gui/Transcode.cpp" line="87"/>
<source>Video files (*.avi *.mkv *.ogg)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="80"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="81"/>
<source>Choose a video to transcode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="85"/>
<source>Choose File to save</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="17"/>
<source>Transcode File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="25"/>
<source>Input File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="32"/>
<source>Profiles</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="44"/>
<source>...</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS> </TS>
...@@ -38,32 +38,32 @@ ...@@ -38,32 +38,32 @@
<context> <context>
<name>LibraryWidget</name> <name>LibraryWidget</name>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="109"/> <location filename="../src/gui/LibraryWidget.cpp" line="125"/>
<source>Open Audios</source> <source>Open Audios</source>
<translation>Ouvrir un fichier audio</translation> <translation>Ouvrir un fichier audio</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="110"/> <location filename="../src/gui/LibraryWidget.cpp" line="126"/>
<source>Audio Files</source> <source>Audio Files</source>
<translation>Fichiers audio</translation> <translation>Fichiers audio</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="115"/> <location filename="../src/gui/LibraryWidget.cpp" line="131"/>
<source>Video Files</source> <source>Video Files</source>
<translation>Fichiers video</translation> <translation>Fichiers video</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="120"/> <location filename="../src/gui/LibraryWidget.cpp" line="136"/>
<source>Images Files</source> <source>Images Files</source>
<translation>Images</translation> <translation>Images</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="114"/> <location filename="../src/gui/LibraryWidget.cpp" line="130"/>
<source>Open Videos</source> <source>Open Videos</source>
<translation>Ouvrir un fichier vidéo</translation> <translation>Ouvrir un fichier vidéo</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="119"/> <location filename="../src/gui/LibraryWidget.cpp" line="135"/>
<source>Open Images</source> <source>Open Images</source>
<translation>Ouvrir une image</translation> <translation>Ouvrir une image</translation>
</message> </message>
...@@ -101,12 +101,14 @@ ...@@ -101,12 +101,14 @@
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../src/gui/MainWindow.cpp" line="67"/> <location filename="../src/gui/MainWindow.cpp" line="68"/>
<location filename="../src/gui/ui/MainWindow.ui" line="113"/>
<source>Media Library</source> <source>Media Library</source>
<translation>Bibliothèque de médias</translation> <translation>Bibliothèque de médias</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/MainWindow.cpp" line="73"/> <location filename="../src/gui/MainWindow.cpp" line="74"/>
<location filename="../src/gui/ui/MainWindow.ui" line="124"/>
<source>Preview</source> <source>Preview</source>
<translation>Prévisualisation</translation> <translation>Prévisualisation</translation>
</message> </message>
...@@ -121,51 +123,61 @@ ...@@ -121,51 +123,61 @@
<translation>Fichier</translation> <translation>Fichier</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="41"/> <location filename="../src/gui/ui/MainWindow.ui" line="42"/>
<source>Edit</source> <source>Edit</source>
<translation>Edition</translation> <translation>Edition</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="47"/> <location filename="../src/gui/ui/MainWindow.ui" line="48"/>
<source>View</source> <source>View</source>
<translation>Affichage</translation> <translation>Affichage</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="52"/> <location filename="../src/gui/ui/MainWindow.ui" line="53"/>
<source>Effects</source> <source>Effects</source>
<translation>Effets</translation> <translation>Effets</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="57"/> <location filename="../src/gui/ui/MainWindow.ui" line="58"/>
<source>Tools</source> <source>Tools</source>
<translation>Outils</translation> <translation>Outils</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="62"/> <location filename="../src/gui/ui/MainWindow.ui" line="63"/>
<source>Window</source> <source>Window</source>
<translation>Fenêtre</translation> <translation>Fenêtre</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="67"/> <location filename="../src/gui/ui/MainWindow.ui" line="70"/>
<location filename="../src/gui/ui/MainWindow.ui" line="94"/> <location filename="../src/gui/ui/MainWindow.ui" line="100"/>
<source>Help</source> <source>Help</source>
<translation>Aide</translation> <translation>Aide</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="84"/> <location filename="../src/gui/ui/MainWindow.ui" line="87"/>
<source>Quit</source> <source>Quit</source>
<translation>Quitter</translation> <translation>Quitter</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="89"/> <location filename="../src/gui/ui/MainWindow.ui" line="90"/>
<source>Ctrl+Q</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/ui/MainWindow.ui" line="95"/>
<source>About</source> <source>About</source>
<translation>À Propos</translation> <translation>À Propos</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/ui/MainWindow.ui" line="99"/> <location filename="../src/gui/ui/MainWindow.ui" line="105"/>
<source>Preferences</source> <source>Preferences</source>
<translation>Préférences</translation> <translation>Préférences</translation>
</message> </message>
<message>
<location filename="../src/gui/ui/MainWindow.ui" line="129"/>
<source>Transcode File</source>
<translation type="unfinished">Convertir un fichier</translation>
</message>
</context> </context>
<context> <context>
<name>Preferences</name> <name>Preferences</name>
...@@ -218,10 +230,20 @@ ...@@ -218,10 +230,20 @@
<context> <context>
<name>PreviewWidget</name> <name>PreviewWidget</name>
<message> <message>
<location filename="../src/gui/ui/PreviewWidget.ui" line="17"/> <location filename="../src/gui/ui/PreviewWidget.ui" line="29"/>
<source>Dialog</source> <source>Dialog</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../src/gui/ui/PreviewWidget.ui" line="57"/>
<source>Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui/ui/PreviewWidget.ui" line="62"/>
<source>Clip</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Timeline</name> <name>Timeline</name>
...@@ -231,4 +253,68 @@ ...@@ -231,4 +253,68 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>Transcode</name>
<message>
<location filename="../src/gui/Transcode.cpp" line="58"/>
<source>High Quality</source>
<translation type="unfinished">Haute qualité</translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="59"/>
<source>Medium Quality</source>
<translation type="unfinished">Moyenne qualité</translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="60"/>
<source>Low Quality</source>
<translation type="unfinished">Basse Qualité</translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="66"/>
<source>Choose File to open</source>
<translation type="unfinished">Choississez un fichier à convertir</translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="68"/>
<location filename="../src/gui/Transcode.cpp" line="87"/>
<source>Video files (*.avi *.mkv *.ogg)</source>
<translation type="unfinished">Fichier vidéos (*.avi *.mkv *.ogg)</translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="80"/>
<source>Warning</source>
<translation type="unfinished">Avertissement</translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="81"/>
<source>Choose a video to transcode</source>
<translation type="unfinished">Choisissez un fichier à convertir</translation>
</message>
<message>
<location filename="../src/gui/Transcode.cpp" line="85"/>
<source>Choose File to save</source>
<translation type="unfinished">Sauvegarder la conversion</translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="17"/>
<source>Transcode File</source>
<translation type="unfinished">Convertir le fichier</translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="25"/>
<source>Input File</source>
<translation type="unfinished">Fichier d&apos;origine</translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="32"/>
<source>Profiles</source>
<translation type="unfinished">Profils</translation>
</message>
<message>
<location filename="src/gui/ui/transcode.ui" line="44"/>
<source>...</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS> </TS>
...@@ -38,32 +38,32 @@ ...@@ -38,32 +38,32 @@
<context> <context>
<name>LibraryWidget</name> <name>LibraryWidget</name>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="109"/> <location filename="../src/gui/LibraryWidget.cpp" line="125"/>
<source>Open Audios</source> <source>Open Audios</source>
<translation>Öppna ljud</translation> <translation>Öppna ljud</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="110"/> <location filename="../src/gui/LibraryWidget.cpp" line="126"/>
<source>Audio Files</source> <source>Audio Files</source>
<translation>Ljudfiler</translation> <translation>Ljudfiler</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="115"/> <location filename="../src/gui/LibraryWidget.cpp" line="131"/>
<source>Video Files</source> <source>Video Files</source>
<translation>Videofiler</translation> <translation>Videofiler</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="120"/> <location filename="../src/gui/LibraryWidget.cpp" line="136"/>
<source>Images Files</source> <source>Images Files</source>
<translation>Bildfiler</translation> <translation>Bildfiler</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="114"/> <location filename="../src/gui/LibraryWidget.cpp" line="130"/>
<source>Open Videos</source> <source>Open Videos</source>
<translation>Öppna video</translation> <translation>Öppna video</translation>
</message> </message>
<message> <message>
<location filename="../src/gui/LibraryWidget.cpp" line="119"/> <location filename="../src/gui/LibraryWidget.cpp" line="135"/>
<source>Open Images</source> <source>Open Images</source>
<translation>Öppna bilder</translation> <translation>Öppna bilder</translation>
</message> </message>
...@@ -101,12 +101,14 @@ ...@@ -101,12 +101,14 @@
<context> <context>
<name>MainWindow</name>