Browse Source

- Replaced 'correct' by 'valid' everywhere

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
dfb7717995
  1. 2
      src/createtorrent_imp.cpp
  2. BIN
      src/lang/qbittorrent_bg.qm
  3. 18
      src/lang/qbittorrent_bg.ts
  4. BIN
      src/lang/qbittorrent_ca.qm
  5. 18
      src/lang/qbittorrent_ca.ts
  6. BIN
      src/lang/qbittorrent_de.qm
  7. 18
      src/lang/qbittorrent_de.ts
  8. BIN
      src/lang/qbittorrent_el.qm
  9. 18
      src/lang/qbittorrent_el.ts
  10. 22
      src/lang/qbittorrent_en.ts
  11. BIN
      src/lang/qbittorrent_es.qm
  12. 18
      src/lang/qbittorrent_es.ts
  13. BIN
      src/lang/qbittorrent_fr.qm
  14. 18
      src/lang/qbittorrent_fr.ts
  15. BIN
      src/lang/qbittorrent_it.qm
  16. 18
      src/lang/qbittorrent_it.ts
  17. BIN
      src/lang/qbittorrent_ko.qm
  18. 18
      src/lang/qbittorrent_ko.ts
  19. BIN
      src/lang/qbittorrent_nb.qm
  20. 18
      src/lang/qbittorrent_nb.ts
  21. BIN
      src/lang/qbittorrent_nl.qm
  22. 18
      src/lang/qbittorrent_nl.ts
  23. BIN
      src/lang/qbittorrent_pl.qm
  24. 18
      src/lang/qbittorrent_pl.ts
  25. BIN
      src/lang/qbittorrent_pt.qm
  26. 18
      src/lang/qbittorrent_pt.ts
  27. BIN
      src/lang/qbittorrent_ro.qm
  28. 18
      src/lang/qbittorrent_ro.ts
  29. BIN
      src/lang/qbittorrent_ru.qm
  30. 18
      src/lang/qbittorrent_ru.ts
  31. BIN
      src/lang/qbittorrent_sk.qm
  32. 18
      src/lang/qbittorrent_sk.ts
  33. BIN
      src/lang/qbittorrent_sv.qm
  34. 18
      src/lang/qbittorrent_sv.ts
  35. BIN
      src/lang/qbittorrent_tr.qm
  36. 18
      src/lang/qbittorrent_tr.ts
  37. BIN
      src/lang/qbittorrent_uk.qm
  38. 18
      src/lang/qbittorrent_uk.ts
  39. BIN
      src/lang/qbittorrent_zh.qm
  40. 18
      src/lang/qbittorrent_zh.ts
  41. 20
      src/lang/qbittorrent_zh_HK.ts
  42. 8
      src/options_imp.cpp

2
src/createtorrent_imp.cpp

@ -92,7 +92,7 @@ void createtorrent::on_createButton_clicked(){
return; return;
} }
if(!QFile::exists(input)){ if(!QFile::exists(input)){
QMessageBox::critical(0, tr("Input path does not exist"), tr("Please type a correct input path first")); QMessageBox::critical(0, tr("Input path does not exist"), tr("Please type a valid input path first"));
return; return;
} }
char const* creator_str = "qBittorrent"; char const* creator_str = "qBittorrent";

BIN
src/lang/qbittorrent_bg.qm

Binary file not shown.

18
src/lang/qbittorrent_bg.ts

@ -1278,7 +1278,7 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Моля първо напишете правилен входящ път </translation> <translation type="obsolete">Моля първо напишете правилен входящ път </translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1288,6 +1288,10 @@ Please close the other one first.</source>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Торента бе създаден успешно:</translation> <translation>Торента бе създаден успешно:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1421,11 +1425,11 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Некоректно IP</translation> <translation type="obsolete">Некоректно IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Това IP е некоректно.</translation> <translation type="obsolete">Това IP е некоректно.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1452,6 +1456,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Моля, изберете любима програма за оглед</translation> <translation>Моля, изберете любима програма за оглед</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_ca.qm

Binary file not shown.

18
src/lang/qbittorrent_ca.ts

@ -1321,7 +1321,7 @@ Si et plau tanca l&apos;altre primer.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Si us plau escriu una ruta d&apos;entrada primer</translation> <translation type="obsolete">Si us plau escriu una ruta d&apos;entrada primer</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1331,6 +1331,10 @@ Si et plau tanca l&apos;altre primer.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrent creatamb éxit:</translation> <translation>Torrent creatamb éxit:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1469,11 +1473,11 @@ Si et plau tanca l&apos;altre primer.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>IP Incorrecte</translation> <translation type="obsolete">IP Incorrecte</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Aquesta IP es incorrecta.</translation> <translation type="obsolete">Aquesta IP es incorrecta.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1500,6 +1504,14 @@ Si et plau tanca l&apos;altre primer.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Escull el teu programa per previsualitzar</translation> <translation>Escull el teu programa per previsualitzar</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_de.qm

Binary file not shown.

18
src/lang/qbittorrent_de.ts

@ -1226,7 +1226,7 @@ Bitte schliessen Sie diesen zuerst.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Bitte geben Sie einen gültigen Eingangs-Pfad an</translation> <translation type="obsolete">Bitte geben Sie einen gültigen Eingangs-Pfad an</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1236,6 +1236,10 @@ Bitte schliessen Sie diesen zuerst.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrent erfolgreich erstellt:</translation> <translation>Torrent erfolgreich erstellt:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1374,11 +1378,11 @@ Bitte schliessen Sie diesen zuerst.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Fehlerhafte IP</translation> <translation type="obsolete">Fehlerhafte IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Diese IP ist fehlerhaft.</translation> <translation type="obsolete">Diese IP ist fehlerhaft.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1405,6 +1409,14 @@ Bitte schliessen Sie diesen zuerst.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Wählen Sie ihr bevorzugtes Vorschau Programm</translation> <translation>Wählen Sie ihr bevorzugtes Vorschau Programm</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_el.qm

Binary file not shown.

18
src/lang/qbittorrent_el.ts

@ -1313,7 +1313,7 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Παρακαλώ πληκτρολογήστε έναν έγκυρο προορισμό διαδρομής πρώτα</translation> <translation type="obsolete">Παρακαλώ πληκτρολογήστε έναν έγκυρο προορισμό διαδρομής πρώτα</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1323,6 +1323,10 @@ Please close the other one first.</source>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Τόρεντ δημιουργήθηκε επιτυχώς:</translation> <translation>Τόρεντ δημιουργήθηκε επιτυχώς:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1461,11 +1465,11 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Λάθος ΙΡ</translation> <translation type="obsolete">Λάθος ΙΡ</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Η ΙΡ είναι λάθος.</translation> <translation type="obsolete">Η ΙΡ είναι λάθος.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1492,6 +1496,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Επιλέξτε το αγαπημένο σας πρόγραμμα προεπισκόπησης</translation> <translation>Επιλέξτε το αγαπημένο σας πρόγραμμα προεπισκόπησης</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

22
src/lang/qbittorrent_en.ts

@ -941,15 +941,15 @@ Please close the other one first.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Torrent creation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent was created successfully:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Torrent was created successfully:</source> <source>Please type a valid input path first</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -1071,14 +1071,6 @@ Please close the other one first.</source>
<source>Start IP:</source> <source>Start IP:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Incorrect IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is incorrect.</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -1104,6 +1096,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_es.qm

Binary file not shown.

18
src/lang/qbittorrent_es.ts

@ -1254,7 +1254,7 @@ Por favor cierra el otro antes.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Por favor escribe una ruta de entrada correcta primero</translation> <translation type="obsolete">Por favor escribe una ruta de entrada correcta primero</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1264,6 +1264,10 @@ Por favor cierra el otro antes.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>El Torrent se creó con éxito:</translation> <translation>El Torrent se creó con éxito:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1402,11 +1406,11 @@ Por favor cierra el otro antes.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>IP Incorrecta</translation> <translation type="obsolete">IP Incorrecta</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Esta IP está incorrecta.</translation> <translation type="obsolete">Esta IP está incorrecta.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1433,6 +1437,14 @@ Por favor cierra el otro antes.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Escoge tu programa de previsualización favorito</translation> <translation>Escoge tu programa de previsualización favorito</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_fr.qm

Binary file not shown.

18
src/lang/qbittorrent_fr.ts

@ -1381,7 +1381,7 @@ Veuillez d&apos;abord le quitter.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Veuillez vérifier la chemin du fichier/dossier à inclure</translation> <translation type="obsolete">Veuillez vérifier la chemin du fichier/dossier à inclure</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1391,6 +1391,10 @@ Veuillez d&apos;abord le quitter.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Le torrent a é créé avec succès :</translation> <translation>Le torrent a é créé avec succès :</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1533,11 +1537,11 @@ Veuillez d&apos;abord le quitter.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>IP incorrecte</translation> <translation type="obsolete">IP incorrecte</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Cette IP est incorrecte.</translation> <translation type="obsolete">Cette IP est incorrecte.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1564,6 +1568,14 @@ Veuillez d&apos;abord le quitter.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Sélectionner votre logiciel de prévisualisation préféré</translation> <translation>Sélectionner votre logiciel de prévisualisation préféré</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_it.qm

Binary file not shown.

18
src/lang/qbittorrent_it.ts

@ -980,7 +980,7 @@ Example: Downloading www.example.com/test.torrent</comment>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Per favore inserire un percorso di input corretto</translation> <translation type="obsolete">Per favore inserire un percorso di input corretto</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -990,6 +990,10 @@ Example: Downloading www.example.com/test.torrent</comment>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Il torrent è stato creato correttamente:</translation> <translation>Il torrent è stato creato correttamente:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1123,11 +1127,11 @@ Example: Downloading www.example.com/test.torrent</comment>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>IP non corretto</translation> <translation type="obsolete">IP non corretto</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Questo IP non è corretto</translation> <translation type="obsolete">Questo IP non è corretto</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1154,6 +1158,14 @@ Example: Downloading www.example.com/test.torrent</comment>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Scegliere il programma d&apos;anteprima preferito</translation> <translation>Scegliere il programma d&apos;anteprima preferito</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_ko.qm

Binary file not shown.

18
src/lang/qbittorrent_ko.ts

@ -1283,7 +1283,7 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation> </translation> <translation type="obsolete"> </translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1293,6 +1293,10 @@ Please close the other one first.</source>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation> :</translation> <translation> :</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1431,11 +1435,11 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation> IP</translation> <translation type="obsolete"> IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation> IP입니다. </translation> <translation type="obsolete"> IP입니다. </translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1462,6 +1466,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_nb.qm

Binary file not shown.

18
src/lang/qbittorrent_nb.ts

@ -968,7 +968,7 @@ Vennligst avslutt denne først.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Vennligst skriv en gyldig filsti til inndataene først</translation> <translation type="obsolete">Vennligst skriv en gyldig filsti til inndataene først</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -978,6 +978,10 @@ Vennligst avslutt denne først.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Vellykket opprettelse av torrentfil:</translation> <translation>Vellykket opprettelse av torrentfil:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1111,11 +1115,11 @@ Vennligst avslutt denne først.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Ugyldig IP</translation> <translation type="obsolete">Ugyldig IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Denne IPen er ugyldig.</translation> <translation type="obsolete">Denne IPen er ugyldig.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1142,6 +1146,14 @@ Vennligst avslutt denne først.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Velg ditt favorittprogram for forhåndsvisning</translation> <translation>Velg ditt favorittprogram for forhåndsvisning</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_nl.qm

Binary file not shown.

18
src/lang/qbittorrent_nl.ts

@ -1252,7 +1252,7 @@ Stop het eerste proccess eerst.
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Geef alstublieft eerst een geldig bron pad</translation> <translation type="obsolete">Geef alstublieft eerst een geldig bron pad</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1262,6 +1262,10 @@ Stop het eerste proccess eerst.
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrent was succesvol gemaakt:</translation> <translation>Torrent was succesvol gemaakt:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1400,11 +1404,11 @@ Stop het eerste proccess eerst.
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Incorrect IP</translation> <translation type="obsolete">Incorrect IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Dit IP is incorrect.</translation> <translation type="obsolete">Dit IP is incorrect.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1431,6 +1435,14 @@ Stop het eerste proccess eerst.
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Kies uw favoriete vooruitblik programma</translation> <translation>Kies uw favoriete vooruitblik programma</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_pl.qm

Binary file not shown.

18
src/lang/qbittorrent_pl.ts

@ -1297,7 +1297,7 @@ Zamknij najpierw okno podglądu.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Proszę podać poprawną ścieżkę źródłową</translation> <translation type="obsolete">Proszę podać poprawną ścieżkę źródłową</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1307,6 +1307,10 @@ Zamknij najpierw okno podglądu.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Utworzono plik torrent:</translation> <translation>Utworzono plik torrent:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1445,11 +1449,11 @@ Zamknij najpierw okno podglądu.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Niepoprawne IP</translation> <translation type="obsolete">Niepoprawne IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>To jest nieprawidłowe IP.</translation> <translation type="obsolete">To jest nieprawidłowe IP.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1476,6 +1480,14 @@ Zamknij najpierw okno podglądu.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Wybierz program którym zawsze chcesz otwierać dany typ plików</translation> <translation>Wybierz program którym zawsze chcesz otwierać dany typ plików</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_pt.qm

Binary file not shown.

18
src/lang/qbittorrent_pt.ts

@ -1118,7 +1118,7 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Digite primeiro um caminho de entrada correto</translation> <translation type="obsolete">Digite primeiro um caminho de entrada correto</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1128,6 +1128,10 @@ Please close the other one first.</source>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrente criada com sucesso:</translation> <translation>Torrente criada com sucesso:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1261,11 +1265,11 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>IP incorreto</translation> <translation type="obsolete">IP incorreto</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Este IP está incorreto.</translation> <translation type="obsolete">Este IP está incorreto.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1292,6 +1296,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_ro.qm

Binary file not shown.

18
src/lang/qbittorrent_ro.ts

@ -1120,7 +1120,7 @@ Vă rugăm să-l opriţi.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation> rugăm introduceţi corect calea de intrare</translation> <translation type="obsolete"> rugăm introduceţi corect calea de intrare</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1130,6 +1130,10 @@ Vă rugăm să-l opriţi.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrentul a fost creat cu success:</translation> <translation>Torrentul a fost creat cu success:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1263,11 +1267,11 @@ Vă rugăm să-l opriţi.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>IP-ul incorrect</translation> <translation type="obsolete">IP-ul incorrect</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Acest IP este incorrect.</translation> <translation type="obsolete">Acest IP este incorrect.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1294,6 +1298,14 @@ Vă rugăm să-l opriţi.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Alegeţi programul dvs. favorit pentru preview</translation> <translation>Alegeţi programul dvs. favorit pentru preview</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_ru.qm

Binary file not shown.

18
src/lang/qbittorrent_ru.ts

@ -1203,7 +1203,7 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Пожалуйста, сначала введите правильный входной путь</translation> <translation type="obsolete">Пожалуйста, сначала введите правильный входной путь</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1213,6 +1213,10 @@ Please close the other one first.</source>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrent успешно создан:</translation> <translation>Torrent успешно создан:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1351,11 +1355,11 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Неправильный IP</translation> <translation type="obsolete">Неправильный IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Этот IP некорректен.</translation> <translation type="obsolete">Этот IP некорректен.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1382,6 +1386,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Выберите вашу любимую программу для предпросмотра</translation> <translation>Выберите вашу любимую программу для предпросмотра</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_sk.qm

Binary file not shown.

18
src/lang/qbittorrent_sk.ts

@ -1140,7 +1140,7 @@ Najskôr ho prosím zatvorte.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Prosím, napíšte správnu vstupnú cestu</translation> <translation type="obsolete">Prosím, napíšte správnu vstupnú cestu</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1150,6 +1150,10 @@ Najskôr ho prosím zatvorte.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrent bol úspešne vytvorený:</translation> <translation>Torrent bol úspešne vytvorený:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1319,11 +1323,11 @@ Najskôr ho prosím zatvorte.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Nesprávna IP</translation> <translation type="obsolete">Nesprávna IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Táto IP je nesprávna.</translation> <translation type="obsolete">Táto IP je nesprávna.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1354,6 +1358,14 @@ Najskôr ho prosím zatvorte.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Zvoľte si obľúbený program pre náhľad</translation> <translation>Zvoľte si obľúbený program pre náhľad</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_sv.qm

Binary file not shown.

18
src/lang/qbittorrent_sv.ts

@ -975,7 +975,7 @@ Stäng den först.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Ange en korrekt sökväg för indata</translation> <translation type="obsolete">Ange en korrekt sökväg för indata</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -985,6 +985,10 @@ Stäng den först.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrentfilen skapades:</translation> <translation>Torrentfilen skapades:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1106,11 +1110,11 @@ Stäng den först.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Felaktig IP</translation> <translation type="obsolete">Felaktig IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Denna IP-adress är felaktig.</translation> <translation type="obsolete">Denna IP-adress är felaktig.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1137,6 +1141,14 @@ Stäng den först.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Välj ditt favoritprogram för förhandsvisning</translation> <translation>Välj ditt favoritprogram för förhandsvisning</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_tr.qm

Binary file not shown.

18
src/lang/qbittorrent_tr.ts

@ -1305,7 +1305,7 @@ Lütfen önce diğerini kapatın.</translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Lütfen önce düzgün bir girdi yolu seçin</translation> <translation type="obsolete">Lütfen önce düzgün bir girdi yolu seçin</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1315,6 +1315,10 @@ Lütfen önce diğerini kapatın.</translation>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrent başarıyla oluşturuldu:</translation> <translation>Torrent başarıyla oluşturuldu:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1453,11 +1457,11 @@ Lütfen önce diğerini kapatın.</translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Yanlış IP</translation> <translation type="obsolete">Yanlış IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Bu IP Adresi yanlıştır.</translation> <translation type="obsolete">Bu IP Adresi yanlıştır.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1484,6 +1488,14 @@ Lütfen önce diğerini kapatın.</translation>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Favori önizleme programınızı seçin</translation> <translation>Favori önizleme programınızı seçin</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_uk.qm

Binary file not shown.

18
src/lang/qbittorrent_uk.ts

@ -1219,7 +1219,7 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation>Будь-ласка, спочатку введіть правильний вхідний шлях</translation> <translation type="obsolete">Будь-ласка, спочатку введіть правильний вхідний шлях</translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1229,6 +1229,10 @@ Please close the other one first.</source>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Торрент було успішно створено:</translation> <translation>Торрент було успішно створено:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1367,11 +1371,11 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>Невірний IP</translation> <translation type="obsolete">Невірний IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>Цей IP невірний.</translation> <translation type="obsolete">Цей IP невірний.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1398,6 +1402,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>Виберіть вашу улюблену програму перегляду</translation> <translation>Виберіть вашу улюблену програму перегляду</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

BIN
src/lang/qbittorrent_zh.qm

Binary file not shown.

18
src/lang/qbittorrent_zh.ts

@ -1169,7 +1169,7 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Please type a correct input path first</source>
<translation></translation> <translation type="obsolete"></translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent creation</source>
@ -1179,6 +1179,10 @@ Please close the other one first.</source>
<source>Torrent was created successfully:</source> <source>Torrent was created successfully:</source>
<translation>Torrent:</translation> <translation>Torrent:</translation>
</message> </message>
<message>
<source>Please type a valid input path first</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>downloadFromURL</name> <name>downloadFromURL</name>
@ -1312,11 +1316,11 @@ Please close the other one first.</source>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Incorrect IP</source>
<translation>IP</translation> <translation type="obsolete">IP</translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>This IP is incorrect.</source>
<translation>IP有误.</translation> <translation type="obsolete">IP有误.</translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>Range End IP</source>
@ -1343,6 +1347,14 @@ Please close the other one first.</source>
<source>Choose your favourite preview program</source> <source>Choose your favourite preview program</source>
<translation>便</translation> <translation>便</translation>
</message> </message>
<message>
<source>Invalid IP</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This IP is invalid.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>preview</name> <name>preview</name>

20
src/lang/qbittorrent_zh_HK.ts

@ -1125,15 +1125,15 @@ Please close the other one first.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Please type a correct input path first</source> <source>Torrent creation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Torrent creation</source> <source>Torrent was created successfully:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Torrent was created successfully:</source> <source>Please type a valid input path first</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -1261,31 +1261,31 @@ Please close the other one first.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Incorrect IP</source> <source>Range End IP</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>This IP is incorrect.</source> <source>End IP:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Range End IP</source> <source>IP Range Comment</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>End IP:</source> <source>Comment:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>IP Range Comment</source> <source>Choose your favourite preview program</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Comment:</source> <source>Invalid IP</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Choose your favourite preview program</source> <source>This IP is invalid.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>

8
src/options_imp.cpp

@ -874,13 +874,13 @@ void options_imp::on_addFilterRange_clicked(){
QStringList IP1 = startIP.split('.'); QStringList IP1 = startIP.split('.');
// Check IP // Check IP
if (!ok || startIP.isEmpty() || IP1.size() != 4){ if (!ok || startIP.isEmpty() || IP1.size() != 4){
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect.")); QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
return; return;
} }
for(int i=0; i<4; ++i){ for(int i=0; i<4; ++i){
QString part = IP1.at(i).trimmed(); QString part = IP1.at(i).trimmed();
if(part.isEmpty() || part.toInt() < 0 || part.toInt() > 255){ if(part.isEmpty() || part.toInt() < 0 || part.toInt() > 255){
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect.")); QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
return; return;
} }
} }
@ -891,13 +891,13 @@ void options_imp::on_addFilterRange_clicked(){
QStringList IP2 = lastIP.split('.'); QStringList IP2 = lastIP.split('.');
// check IP // check IP
if (!ok || lastIP.isEmpty() || IP2.size() != 4){ if (!ok || lastIP.isEmpty() || IP2.size() != 4){
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect.")); QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
return; return;
} }
for(int i=0; i<4; ++i){ for(int i=0; i<4; ++i){
QString part = IP2.at(i).trimmed(); QString part = IP2.at(i).trimmed();
if(part.isEmpty() || part.toInt() < 0 || part.toInt() > 255){ if(part.isEmpty() || part.toInt() < 0 || part.toInt() > 255){
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect.")); QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
return; return;
} }
} }

Loading…
Cancel
Save