diff --git a/Sources/MEncryptor.cpp b/Sources/MEncryptor.cpp index db138fe..a9d2949 100644 --- a/Sources/MEncryptor.cpp +++ b/Sources/MEncryptor.cpp @@ -74,7 +74,9 @@ void MEncryptor::loadOptions () sortingSelecter->setCurrentText (QString::fromStdString (options.at (5))); - connect (languageSelecter, SIGNAL (currentIndexChanged (int)), this, SLOT (languageModified (int))); + connect (languageSelecter, SIGNAL (currentIndexChanged (int)), this, SLOT (languageModified ())); + + connect (sortingSelecter, SIGNAL (currentIndexChanged (int)), this, SLOT (analyzeText ())); } @@ -237,8 +239,6 @@ void MEncryptor::initAnalyzer () sortingSelecter->addItem (tr("Frequency (croissant)")); sortingSelecter->addItem (tr("Frequency (decroissant)")); analyzerOutputBoxLayout->addWidget (sortingSelecter, 1, 1); - - connect (sortingSelecter, SIGNAL (currentTextChanged ()), this, SLOT (analyzeText ())); } @@ -279,8 +279,6 @@ void MEncryptor::analyzeText () displayAnalysisReport (input, dict); } - else - QMessageBox::warning (this, tr("Oooooooops..."), tr("You should enter something before analysis !")); } void MEncryptor::clearContents () @@ -353,15 +351,16 @@ void MEncryptor::initOthers () othersTabLayout = new QVBoxLayout (othersTab); - aboutMRecorderLabel = new QLabel (tr("This opensource software was developed by NY4N_M4THS (MemeTech INC)
" - "under license LGPLv3 with the framework Qt in C++ language.
" - "Follow this link to learn more about Qt.
" - "You can also visit our website to check for updates,
" - "try other of our applications or ask for new features !
" - "Click here to visit the GitHub page of the project.

")); - QFile errorsStream (QString ("Error Codes ") + QString::fromStdString (options.at (0)) + ".pastouche"); - if (errorsStream.open (QFile::ReadOnly)) - aboutMRecorderLabel->setText (aboutMRecorderLabel->text () + errorsStream.readAll ()); + aboutMRecorderLabel = new QLabel ( + tr("This opensource software was developed by NY4N_M4THS (MemeTech INC)
" + "under license LGPLv3 with the framework Qt in C++ language.
" + "Follow this link to learn more about Qt.
" + "You can also visit our website to check for updates,
" + "try other of our applications or ask for new features !
" + "Click here to visit the GitHub page of the project.

" + "Error codes :
" + "  #1  Any files are missing in the app directory, reinstall it should fix the problem.
" + "  #2  The message that you try to encrypt/decrypt is corrupted (Forbidden symbols, etc...).
")); aboutMRecorderLabel->setOpenExternalLinks (true); aboutMRecorderLabel->setTextInteractionFlags(Qt::TextBrowserInteraction); @@ -382,7 +381,7 @@ void MEncryptor::initOthers () ////////////// Slots -void MEncryptor::languageModified (int) +void MEncryptor::languageModified () { QMessageBox::Button clickedButton = QMessageBox::question (this, tr("Language changed"), tr("Do you want to restart the app now ?")); diff --git a/Sources/MEncryptor.h b/Sources/MEncryptor.h index db32b59..986dddc 100644 --- a/Sources/MEncryptor.h +++ b/Sources/MEncryptor.h @@ -43,7 +43,7 @@ class MEncryptor : public QTabWidget void analyzeText (); void clearContents (); - void languageModified (int); + void languageModified (); private: diff --git a/Sources/mencryptor_fr.ts b/Sources/mencryptor_fr.ts index b466d3e..bc68242 100644 --- a/Sources/mencryptor_fr.ts +++ b/Sources/mencryptor_fr.ts @@ -4,212 +4,201 @@ MEncryptor - - - + + + Encrypt Crypter - - + + Decrypt Décrypter - + Encrypt / Decrypt messages Chiffrer / Déchiffrer - + Choose what to do : Que faire ? - + Please select protocol : Séléctionnez un protocole : - + Output Sortie - + Frequency (decroissant) Frequency (decoissant) Fréquence (décroissant) - + Translate now ! Traduire ! - + Save translated message as... Sauvegarder la traduction - + Frequency analyzer Analyse fréquentielle - + Message Message - + Also analyze symbols Aussi analyser les symboles - + Case sensitive Sensible à la casse - + Analyze Analyser - + Clear Nettoyer - + Help and settings About and settings Aide et paramètres - + + This opensource software was developed by NY4N_M4THS (MemeTech INC)<br/>under <a href = 'https://gnu.org/licenses/lgpl-3.0.en.html'>license LGPLv3</a> with the framework Qt in C++ language.<br/>Follow <a href = 'https://qt.io'>this link</a> to learn more about Qt.<br/>You can also visit <a href = 'https://memetech-inc.weebly.com'>our website</a> to check for updates,<br/>try other of our applications or <a href = 'https://github.com/NyanMaths/MEncryptor/issues'>ask for new features</a> !<br/>Click <a href = 'https://github.com/NyanMaths/MEncryptor'>here</a> to visit the GitHub page of the project.<br/><br/><b>Error codes :</b><br/>&nbsp;&nbsp;#1&nbsp;&nbsp;Any files are missing in the app directory, reinstall it should fix the problem.<br/>&nbsp;&nbsp;#2&nbsp;&nbsp;The message that you try to encrypt/decrypt is corrupted (Forbidden symbols, etc...).<br/> + Ce logiciel opensource a été créé par NY4N_M4THS (MemeTech INC)<br/>sous <a href = 'https://gnu.org/licenses/lgpl-3.0.en.html'>license LGPLv3</a> à l'aide de Qt en langage C++.<br/>Suivez <a href = 'https://qt.io'>ce lien</a> pour en savoir plus sur Qt.<br/>Vous pouvez également visiter <a href = 'https://memetech-inc-fr.weebly.com'>notre site web</a> pour télécharger les dernières mises à jour,<br/>découvrir d'autres applications de MemeTech, ou encore <a href = 'https://github.com/NyanMaths/MEncryptor/issues'>demander de nouvelles fonctionalités pour MEncryptor</a> !<br/>Cliquez sur <a href = 'https://github.com/NyanMaths/MEncryptor'>ce lien</a> pour visiter la page GitHub du projet.<br/><br/><b>Codes d'erreur :</b><br/>&nbsp;&nbsp;#1&nbsp;&nbsp;Il manque des fichiers importants, réinstaller l'application résoudra le problème.<br/>&nbsp;&nbsp;&nbsp;#2&nbsp;&nbsp;Le message à crypter/décrypter est corrompu (Symboles interdits, etc...).<br/> + + + Language changed Langue de l'interface changée - + Do you want to restart the app now ? Voulez-vous redémarrer l'application maintenant ? - + Check in "Help and settings" tab to fix it ! Consultez l'onglet "Aide et paramètres" pour réparer le problème ! - + Shift cipher Chiffrement par décalage - - + + Please input the shift : Veuillez entrer le décalage : - + Shift decipher Déchiffrement par décalage - + Save translated file as... Sauvegarder le fichier traduit sous... - + Untitled.txt Sans titre.txt - + Operation successful, Houston ! Opération réussie, Houston ! - + Runtime error Erreur d'éxécution - + Analysis report Rapport d'analyse - + Sort by : Trier par : - - + + Alphabetical order Ordre alphabétique - - - + + + Frequency (croissant) Fréquence (croissant) - - Oooooooops... - Minute papillon ! - - - - You should enter something before analysis ! - Vous devez entrer quelque chose<br>avant de lancer l'analyse ! - - - - + + occurrence(s) of character %n occurrence(s) of character occurence(s) du caractère - - This opensource software was developed by NY4N_M4THS (MemeTech INC)<br/>under <a href = 'https://gnu.org/licenses/lgpl-3.0.en.html'>license LGPLv3</a> with the framework Qt in C++ language.<br/>Follow <a href = 'https://qt.io'>this link</a> to learn more about Qt.<br/>You can also visit <a href = 'https://memetech-inc.weebly.com'>our website</a> to check for updates,<br/>try other of our applications or ask for new features !<br/>Click <a href = 'https://github.com/NyanMaths/MEncryptor'>here</a> to visit the GitHub page of the project.<br/><br/> - This opensource software was developed by NY4N_M4THS (MemeTech INC)<br/>under <a href = 'https://gnu.org/licenses/lgpl-3.0.en.html'>liscence LGPLv3</a> with the framework Qt in C++ language.<br/>Follow <a href = 'https://qt.io'>this link</a> to learn more about Qt.<br/>You can also visit <a href = 'https://memetech-inc.weebly.com'>our website</a> to check for updates,<br/>try other of our applications or ask for new features !<br/>Click <a href = 'https://github.com/NyanMaths/MEncryptor'>here</a> to visit the GitHub page of the project.<br/><br/> - Ce logiciel opensource a été créé par NY4N_M4THS (MemeTech INC)<br/>sous <a href = 'https://gnu.org/licenses/lgpl-3.0.en.html'>license LGPLv3</a> à l'aide de Qt en langage C++.<br/>Suivez <a href = 'https://qt.io'>ce lien</a> pour en savoir plus sur Qt.<br/>Vous pouvez également visiter <a href = 'https://memetech-inc-fr.weebly.com'>notre site web</a> pour télécharger les dernières mises à jour,<br/>découvrir d'autres applications de MemeTech, ou encore demander de nouvelles fonctionalités pour MEncryptor !<br/>Cliquez sur <a href = 'https://github.com/NyanMaths/MEncryptor'>ce lien</a> pour visiter la page GitHub du projet.<br/><br/> - - - + Error # Erreur # - + You should enter something in the text area to translate ! Vous devez entrer quelque chose dans la zone de texte ! - + Little problem... Petit souci... - + File Le fichier - + saved ! a été sauvegardé !