From: Yann Nave Date: Sat, 7 Aug 2010 19:43:25 +0000 (+0200) Subject: Ready for translation X-Git-Tag: v0.5~66 X-Git-Url: http://git.maemo.org/git/?a=commitdiff_plain;h=c920d594386e379c52ff219326b6d83bf861a994;hp=1fd3f1b177f77f4236b942b2d20f96e5521fd901;p=vlc-remote Ready for translation Load translation file depend on local (ex: fr_FR) Add french translation --- diff --git a/main.cpp b/main.cpp index a725f09..b0145af 100644 --- a/main.cpp +++ b/main.cpp @@ -28,8 +28,14 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("medsoft.blogspot.com/"); QCoreApplication::setApplicationName("Maemo VLC remote"); - PlayerMainWindow * mainwindow = new PlayerMainWindow; + QString locale = QLocale::system().name(); + QTranslator translator; + translator.load(QString(":/languages/vlcremote_") + locale); + a.installTranslator(&translator); + + QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8")); + PlayerMainWindow * mainwindow = new PlayerMainWindow; mainwindow->showMaximized(); diff --git a/vlcRemote.pro b/vlcRemote.pro index b1cb5d2..2b4e4fc 100644 --- a/vlcRemote.pro +++ b/vlcRemote.pro @@ -30,3 +30,8 @@ FORMS += \ OTHER_FILES += \ vlc-remote.desktop + +RESOURCES += \ + ressources.qrc + +TRANSLATIONS = vlcremote_fr_FR.ts diff --git a/vlcremote_fr_FR.qm b/vlcremote_fr_FR.qm new file mode 100644 index 0000000..ed673a5 Binary files /dev/null and b/vlcremote_fr_FR.qm differ diff --git a/vlcremote_fr_FR.ts b/vlcremote_fr_FR.ts new file mode 100644 index 0000000..018b60c --- /dev/null +++ b/vlcremote_fr_FR.ts @@ -0,0 +1,195 @@ + + + + + AboutDialog + + + Dialog + À propos + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Sans'; font-size:14pt; font-weight:400; font-style:normal;"> +<table style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;"> +<tr> +<td style="border: none;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">OMed </p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Application by Sacha schutz </p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">istdasklar@gmail.com</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://omedsoft.blogspot.com/"><span style=" text-decoration: underline; color:#0000ff;">http://omedsoft.blogspot.com/</span></a></p></td></tr></table></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Sans'; font-size:14pt; font-weight:400; font-style:normal;"> +<table style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;"> +<tr> +<td style="border: none;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">OMed </p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Application par Sacha schutz </p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">istdasklar@gmail.com</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://omedsoft.blogspot.com/"><span style=" text-decoration: underline; color:#0000ff;">http://omedsoft.blogspot.com/</span></a></p></td></tr></table></body></html> + + + + ConfigDialog + + + Dialog + Configuration + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Sans'; font-size:14pt; font-weight:400; font-style:normal;"> +<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;"> +<tr> +<td style="border: none;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Enter IP of VLC server. </p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Example : <span style=" font-weight:600;">192.168.0.8:8080</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Be sure you have properly configured Vlc</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> and allows connection by adding this IP in /vlc/http/.hosts</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">More information on my blog : <a href="http://omedsoft.blogspot.com/"><span style=" text-decoration: underline; color:#0000ff;">omed.blogspot.com</span></a><br /></p></td></tr></table></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Sans'; font-size:14pt; font-weight:400; font-style:normal;"> +<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;"> +<tr> +<td style="border: none;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Mettre l'ip du Serveur VLC.</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Exemple : <span style=" font-weight:600;">192.168.0.8:8080</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Vous devez avoir configurer VLC correctement</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> et autoriser les connexions en ajoutant l'ip de votre N900 dans /vlc/http/.hosts</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Plus d'informations sur mon blog : <a href="http://omedsoft.blogspot.com/"><span style=" text-decoration: underline; color:#0000ff;">omed.blogspot.com</span></a><br /></p></td></tr></table></body></html> + + + + PlayListMainWindow + + + MainWindow + Vlc remote + + + + + + not yet done + fonctions pas encore développée + + + + Clear + Vider + + + + Shuffle + Aléatoire + + + + Loop + Boucler + + + + Repeat + Répéter + + + + menu + + + + + configuration + Configuration + + + + About + À propos + + + + PlayerMainWindow + + + MainWindow + Vlc remote + + + + Information + Information + + + + < + < + + + + play + Lire + + + + > + > + + + + Pause + Pause + + + + Stop + Stop + + + + FS + FS + + + + V+ + V+ + + + + V- + V- + + + + PlayList + Liste de lecture + + + + menu + + + + + Configuration + Configuration + + + + About + À propos + + +