]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
added translation possibility (remember that buttons isn't compiled, at all,)
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 31 May 2014 07:29:14 +0000 (09:29 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 31 May 2014 07:29:14 +0000 (09:29 +0200)
diary-mobile.pro
diary-mobile_en.ts [new file with mode: 0644]
diary-mobile_fr.ts [new file with mode: 0644]
mainwindow.cpp

index c683f3ea2ef12ef22a9ca7802a2e66649fa4e567..f4d3cfbb4330e62543644f58f496fe22717bcb2f 100644 (file)
@@ -26,7 +26,7 @@ HEADERS  += mainwindow.h \
 CONFIG += mobility c++11
 MOBILITY = 
 QMAKE_CXXFLAGS += -fpermissive
-
+TRANSLATIONS = diary-mobile_fr.ts diary-mobile_en.ts
 ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
 
 OTHER_FILES += \
diff --git a/diary-mobile_en.ts b/diary-mobile_en.ts
new file mode 100644 (file)
index 0000000..a38ffb6
--- /dev/null
@@ -0,0 +1,286 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="en_US">
+<context>
+    <name>MainWindow</name>
+    <message>
+        <location filename="mainwindow.cpp" line="72"/>
+        <source>fichier initial</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="72"/>
+        <source>Entrez l&apos;adresse du serveur où télécharger les premier boutons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="199"/>
+        <source>choice</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="199"/>
+        <source>Veuillez choisir une action.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="210"/>
+        <source>get file</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="214"/>
+        <source>box</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="229"/>
+        <source>set</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="240"/>
+        <source>Entrez l&apos;ID du bouton à éditez</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="253"/>
+        <source>&amp;File</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="254"/>
+        <source>&amp;Start...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="254"/>
+        <source>Ctrl+S</source>
+        <comment>File|Start</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="255"/>
+        <source>&amp;Back</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="255"/>
+        <source>Ctrl+B</source>
+        <comment>File|Back</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="256"/>
+        <source>&amp;DownloadUi</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="256"/>
+        <source>Ctrl+W</source>
+        <comment>File|Downlad</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="257"/>
+        <source>sendRAW</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="257"/>
+        <source>Ctrl+L</source>
+        <comment>File|Upload</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="259"/>
+        <source>Reset Ui</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="259"/>
+        <source>Ctrl+Z</source>
+        <comment>File|ResetUi</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="260"/>
+        <source>Reset RAW</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="261"/>
+        <source>&amp;Quit...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="261"/>
+        <source>Ctrl+Q</source>
+        <comment>File|Quit</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="265"/>
+        <source>A&amp;dd buttons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="265"/>
+        <source>Ctrl+D</source>
+        <comment>Buttons|Add</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="266"/>
+        <source>Sa&amp;v buttons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="266"/>
+        <source>Ctrl+V</source>
+        <comment>Buttons|Save</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="267"/>
+        <source>&amp;Edit buttons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="267"/>
+        <source>Ctrl+E</source>
+        <comment>Buttons|&amp;Edit</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="269"/>
+        <source>&amp;View/Hide menu</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="269"/>
+        <source>Ctrl+T</source>
+        <comment>Buttons|View menu</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="272"/>
+        <source>Nouvelle entré</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="273"/>
+        <location filename="mainwindow.cpp" line="682"/>
+        <source>getButtons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="274"/>
+        <source>About Qt</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="274"/>
+        <source>ctrl+H</source>
+        <comment>Help|About Qt</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="275"/>
+        <source>C&amp;reate Database</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="275"/>
+        <source>Ctrl+R</source>
+        <comment>Help|CreateDB</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="413"/>
+        <source>nouvelle entrée</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="435"/>
+        <source>Entrez son label</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="437"/>
+        <source>Entrez ses mots clé (no limit !)</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="439"/>
+        <source>Entrez son action</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="473"/>
+        <source>chooseButtonDB</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="473"/>
+        <location filename="mainwindow.cpp" line="682"/>
+        <source>Entrez le mots-clé : </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="494"/>
+        <source>keyword</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="494"/>
+        <source>new keyword</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="496"/>
+        <source>label</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="496"/>
+        <source>new label</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="498"/>
+        <source>action</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="498"/>
+        <source>new action</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="542"/>
+        <source>RAWsent</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="542"/>
+        <source>sendRAW finish</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="625"/>
+        <source>Upload finish : </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="676"/>
+        <source>Uisent</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="676"/>
+        <source>savbuttons finish</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+</TS>
diff --git a/diary-mobile_fr.ts b/diary-mobile_fr.ts
new file mode 100644 (file)
index 0000000..aa67095
--- /dev/null
@@ -0,0 +1,286 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="fr_FR">
+<context>
+    <name>MainWindow</name>
+    <message>
+        <location filename="mainwindow.cpp" line="72"/>
+        <source>fichier initial</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="72"/>
+        <source>Entrez l&apos;adresse du serveur où télécharger les premier boutons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="199"/>
+        <source>choice</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="199"/>
+        <source>Veuillez choisir une action.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="210"/>
+        <source>get file</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="214"/>
+        <source>box</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="229"/>
+        <source>set</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="240"/>
+        <source>Entrez l&apos;ID du bouton à éditez</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="253"/>
+        <source>&amp;File</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="254"/>
+        <source>&amp;Start...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="254"/>
+        <source>Ctrl+S</source>
+        <comment>File|Start</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="255"/>
+        <source>&amp;Back</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="255"/>
+        <source>Ctrl+B</source>
+        <comment>File|Back</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="256"/>
+        <source>&amp;DownloadUi</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="256"/>
+        <source>Ctrl+W</source>
+        <comment>File|Downlad</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="257"/>
+        <source>sendRAW</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="257"/>
+        <source>Ctrl+L</source>
+        <comment>File|Upload</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="259"/>
+        <source>Reset Ui</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="259"/>
+        <source>Ctrl+Z</source>
+        <comment>File|ResetUi</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="260"/>
+        <source>Reset RAW</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="261"/>
+        <source>&amp;Quit...</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="261"/>
+        <source>Ctrl+Q</source>
+        <comment>File|Quit</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="265"/>
+        <source>A&amp;dd buttons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="265"/>
+        <source>Ctrl+D</source>
+        <comment>Buttons|Add</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="266"/>
+        <source>Sa&amp;v buttons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="266"/>
+        <source>Ctrl+V</source>
+        <comment>Buttons|Save</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="267"/>
+        <source>&amp;Edit buttons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="267"/>
+        <source>Ctrl+E</source>
+        <comment>Buttons|&amp;Edit</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="269"/>
+        <source>&amp;View/Hide menu</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="269"/>
+        <source>Ctrl+T</source>
+        <comment>Buttons|View menu</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="272"/>
+        <source>Nouvelle entré</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="273"/>
+        <location filename="mainwindow.cpp" line="682"/>
+        <source>getButtons</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="274"/>
+        <source>About Qt</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="274"/>
+        <source>ctrl+H</source>
+        <comment>Help|About Qt</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="275"/>
+        <source>C&amp;reate Database</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="275"/>
+        <source>Ctrl+R</source>
+        <comment>Help|CreateDB</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="413"/>
+        <source>nouvelle entrée</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="435"/>
+        <source>Entrez son label</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="437"/>
+        <source>Entrez ses mots clé (no limit !)</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="439"/>
+        <source>Entrez son action</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="473"/>
+        <source>chooseButtonDB</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.cpp" line="473"/>
+        <location filename="mainwindow.cpp" line="682"/>
+        <source>Entrez le mots-clé : </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="494"/>
+        <source>keyword</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="494"/>
+        <source>new keyword</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="496"/>
+        <source>label</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="496"/>
+        <source>new label</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="498"/>
+        <source>action</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="498"/>
+        <source>new action</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="542"/>
+        <source>RAWsent</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="542"/>
+        <source>sendRAW finish</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="625"/>
+        <source>Upload finish : </source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="676"/>
+        <source>Uisent</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="676"/>
+        <source>savbuttons finish</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+</TS>
index 80c78a552c84159d4819bf817425e2f86b135555..b715456875812b04a6f84d52708285216db79eec 100644 (file)
@@ -69,7 +69,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
     screen->show();
     if((conf->value(QString("first")).toInt()==1)){
         qDebug()<<"second";
-        QString ser=QInputDialog::getText(this, "fichier initial", "Entrez l'adresse du serveur où télécharger les premier boutons", QLineEdit::Normal, conf->value(QString("download")).toString());
+        QString ser=QInputDialog::getText(this, trUtf8("fichier initial"), trUtf8("Entrez l'adresse du serveur où télécharger les premier boutons"), QLineEdit::Normal, conf->value(QString("download")).toString());
         if(ser!="")conf->setValue(QString("download"), ser);
         createDB();
         downloadUi();
@@ -189,14 +189,14 @@ void MainWindow::action(const QString &a){
         if(ok)conf->setValue(b[1], e);
     }
     else if(b[0]==QString("start")){
-        getButtons(conf->value(QString("start")).toString());
+        start();
     }
     else if(b[0]==QString("new")){
         entry(c);
     }
     else if(b[0]==QString("a/b")){
         bool ok;
-        QString e=QInputDialog::getItem(this, QString("choice"), QString("Veuillez choisir une action."), c.split(conf->value(QString("sepchc")).toString()), 0, 0, &ok);
+        QString e=QInputDialog::getItem(this, trUtf8("choice"), trUtf8("Veuillez choisir une action."), c.split(conf->value(QString("sepchc")).toString()), 0, 0, &ok);
         if(ok)action(e);
     }
     else if(b[0]==QString("back")){
@@ -207,11 +207,11 @@ void MainWindow::action(const QString &a){
     } 
     else if(b[0]==QString("setfile")){
         bool ok;
-        QString e=QFileDialog::getSaveFileName(this, QString("get file"), conf->value(b[1]).toString());
+        QString e=QFileDialog::getSaveFileName(this, trUtf8("get file"), conf->value(b[1]).toString());
         if(ok)conf->setValue(b[1], e);
     }
     else if(b[0]==QString("box")){
-        QMessageBox::information(this, QString("box"), c);
+        QMessageBox::information(this, trUtf8("box"), c);
 
     }
     else if(b[0]==QString("quit")){
@@ -224,9 +224,9 @@ void MainWindow::action(const QString &a){
         int value=c.count(conf->value(QString("sqlval")).toString());
         QList<QString> cmd({c});
         if (value){
-            for(int d=0; d<=value; d++){
+            for(int d=1; d<=value; d++){
                 bool ok;
-                QString e=QInputDialog::getText(this, "set", c+" : "+d, QLineEdit::Normal, QString(""), &ok);
+                QString e=QInputDialog::getText(this, trUtf8("set"), c+" : "+d, QLineEdit::Normal, QString(""), &ok);
                 if(ok)cmd.append(e);
                 else break;// in case of break, exec complain about cmd size
             }
@@ -237,7 +237,7 @@ void MainWindow::action(const QString &a){
         QString e;
         bool ok;
         if(b.size()<=1){
-            e=QInputDialog::getText(this, QString("ID"), QString("Entrez l'ID du bouton à éditez"), QLineEdit::Normal, QString(""), &ok);
+            e=QInputDialog::getText(this, QString("ID"), trUtf8("Entrez l'ID du bouton à éditez"), QLineEdit::Normal, QString(""), &ok);
             if(ok)editButtonDB(e);
             }
         else editButtonDB(b[1]);
@@ -250,7 +250,7 @@ void MainWindow::action(const QString &a){
     else getButtons(a);
 }
 void MainWindow::createMenuBar(){
-    FileMenu=new QMenu(QString("&File"), this);
+    FileMenu=new QMenu(trUtf8("&File"), this);
     FileMenu->addAction(trUtf8("&Start..."), this, SLOT(start()),QKeySequence(trUtf8("Ctrl+S", "File|Start")));
     FileMenu->addAction(trUtf8("&Back"), this, SLOT(back()),QKeySequence(trUtf8("Ctrl+B", "File|Back")));
     FileMenu->addAction(trUtf8("&DownloadUi"), this, SLOT(downloadUi()),QKeySequence(trUtf8("Ctrl+W", "File|Downlad")));
@@ -410,7 +410,7 @@ void MainWindow::entry(const QString &a){
     context.append(way.last());
     if(a=="")label=context+" : ";
     else label=context+", "+a+" : ";
-    entry=QInputDialog::getText(this, QString("nouvelle entrée"), label, QLineEdit::Normal, "", &ok);
+    entry=QInputDialog::getText(this, trUtf8("nouvelle entrée"), label, QLineEdit::Normal, "", &ok);
     if(ok==0)return;
     QString c;
     if(a=="")c=context+" : "+entry;
@@ -432,11 +432,11 @@ void MainWindow::addButtonDB(){
     qDebug()<<"addButtonDB()";
     bool ok=0;
     QString cur=label->text();
-    QString a, b, c=QInputDialog::getText(this, QString("label"), QString("Entrez son label"),QLineEdit::Normal, QString(""), &ok);
+    QString a, b, c=QInputDialog::getText(this, QString("label"), trUtf8("Entrez son label"),QLineEdit::Normal, QString(""), &ok);
     if ((c=="")||(ok==0))return;
-    b=QInputDialog::getText(this, QString("keyword"), QString("Entrez ses mots clé (no limit !)"), QLineEdit::Normal, cur, &ok);
+    b=QInputDialog::getText(this, QString("keyword"), trUtf8("Entrez ses mots clé (no limit !)"), QLineEdit::Normal, cur, &ok);
     if ((b=="")||(ok==0))return;
-    a=QInputDialog::getText(this, QString("action"), QString("Entrez son action"), QLineEdit::Normal, c, &ok);
+    a=QInputDialog::getText(this, QString("action"), trUtf8("Entrez son action"), QLineEdit::Normal, c, &ok);
     if ((a=="")||(ok==0))return;
     insertButton(b, c, a);
     return;
@@ -470,7 +470,7 @@ void MainWindow::getButtons(const QString &b){
 }
 void MainWindow::chooseButtonDB(){
     QString a;
-    if(conf->value(QString("askkeyword")).toBool())a=QInputDialog::getText(this, QString("chooseButtonDB"), QString("Entrez le mots-clé : "), QLineEdit::Normal, label->text());
+    if(conf->value(QString("askkeyword")).toBool())a=QInputDialog::getText(this, trUtf8("chooseButtonDB"), trUtf8("Entrez le mots-clé : "), QLineEdit::Normal, label->text());
     else a=label->text();
     chooseButtonDB(a);
 }
@@ -491,11 +491,11 @@ void MainWindow::editButtonDB(const QString & a){
     QString keyword=q->value(1).toString();
     QString label=q->value(2).toString();
     QString action=q->value(3).toString();
-    const QString tmpkeyword=QInputDialog::getText(this, "keyword", "new keyword", QLineEdit::Normal, keyword, &ok);
+    const QString tmpkeyword=QInputDialog::getText(this, trUtf8("keyword"), trUtf8("new keyword"), QLineEdit::Normal, keyword, &ok);
     if(!ok)return;
-    const QString tmplabel=QInputDialog::getText(this, "label", "new label", QLineEdit::Normal, label, &ok);
+    const QString tmplabel=QInputDialog::getText(this, trUtf8("label"), trUtf8("new label"), QLineEdit::Normal, label, &ok);
     if(!ok)return;
-    const QString tmpaction=QInputDialog::getText(this, "action", "new action", QLineEdit::Normal, action, &ok);
+    const QString tmpaction=QInputDialog::getText(this, trUtf8("action"), trUtf8("new action"), QLineEdit::Normal, action, &ok);
     if(!ok)return;
     if((tmpkeyword=="")||(tmplabel=="")||(tmpaction=="")){
         //exec(QList<QString>({conf->value(QString("deletebuttons")).toString(), a}));
@@ -539,7 +539,7 @@ void MainWindow::sendRAW(){
 }
 void MainWindow::RAWsent(){
     qDebug()<<"RAWsent";
-    QMessageBox::information(this, "RAWsent", "sendRAW finish");
+    QMessageBox::information(this, trUtf8("RAWsent"), trUtf8("sendRAW finish"));
 }
 void MainWindow::back(){
     flush();
@@ -622,7 +622,7 @@ void MainWindow::readButtons(const QByteArray &in){
 }
 void MainWindow::datasent(){
     qDebug()<<"datasent";
-    QString texte="Upload finish : ";
+    QString texte=trUtf8("Upload finish : ");
     texte=texte+conf->value(QString("uploadDB")).toString();
     qDebug()<<"texte : "<<texte;
 
@@ -673,13 +673,13 @@ void MainWindow::savButtons(){
 }
 void MainWindow::Uisent(){
     qDebug()<<"Uisent";
-    QMessageBox::information(this, "Uisent", "savbuttons finish");
+    QMessageBox::information(this, trUtf8("Uisent"), trUtf8("savbuttons finish"));
 }
 void MainWindow::resetRAW(){
     exec(QList<QString>({"delete from raw;"}));
 }
 void MainWindow::getButtons(){
-    const QString a=QInputDialog::getText(this, QString("getButtons"), QString("Entrez le mots-clé : "));
+    const QString a=QInputDialog::getText(this, trUtf8("getButtons"), trUtf8("Entrez le mots-clé : "));
     getButtons(a);
 }
 void MainWindow::insertButton(const QString & keyword, const QString & label, const QString & action){