Added more "known hosts" to the list: We now use a list of 64 domains, taken (mostly) from the Alexa 'top 500 sites on the web' list, to test the Internet connectivity. Also added a self-test function to check all hosts (press CTRL+F12 in the update dialog).

This commit is contained in:
LoRd_MuldeR 2011-12-01 22:16:06 +01:00
parent c54b9cb045
commit e4d414b822
6 changed files with 281 additions and 107 deletions

View File

@ -482,7 +482,7 @@ cores, the maximum number of parallel instances is six. On systems with 16 cores
parallel instances is eight. On systems with 32 cores, the maximum number of parallel instances is eleven.<br>
And on systems with 64 cores, the maximum number of parallel instances is 16. 16 is the upper limit.<br>
<br>
<a href="http://img685.imageshack.us/img685/9453/cpucoresmappingnew.png" target="_blank"><img src="http://img685.imageshack.us/img685/9453/cpucoresmappingnew.th.png" border="0" alt="thumb"></a><br>
<a href="http://img853.imageshack.us/img853/1428/corestoinstancesbig.png" target="_blank"><img src="http://img853.imageshack.us/img853/1428/corestoinstancesbig.th.png" border="0" alt="thumb"></a><br>
<br>
You may wonder why LameXP doesn't always create one instance for each CPU core. In theory, the more instances<br>
we run in parallel, the more CPU cores can be utilized - until all CPU cores are busy and the overall CPU<br>

View File

@ -2633,141 +2633,141 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="154"/>
<location filename="../../src/Dialog_Processing.cpp" line="153"/>
<source>Show details for selected job</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="155"/>
<location filename="../../src/Dialog_Processing.cpp" line="154"/>
<source>Browse Output File Location</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/>
<location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Encoding Files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/>
<location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Your files are being encoded, please be patient...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="335"/>
<location filename="../../src/Dialog_Processing.cpp" line="334"/>
<source>Encoding files, please wait...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="378"/>
<location filename="../../src/Dialog_Processing.cpp" line="377"/>
<source>Multi-threading enabled: Running %1 instances in parallel!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="398"/>
<location filename="../../src/Dialog_Processing.cpp" line="397"/>
<source>Aborted! Waiting for running jobs to terminate...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="413"/>
<location filename="../../src/Dialog_Processing.cpp" line="412"/>
<source>Encoding: %1 files of %2 completed so far, please wait...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="441"/>
<location filename="../../src/Dialog_Processing.cpp" line="440"/>
<source>Creating the playlist file, please wait...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted by the user after %1 file(s)!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted prematurely by the user!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>LameXP - Aborted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>Process was aborted by the user.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="465"/>
<location filename="../../src/Dialog_Processing.cpp" line="464"/>
<source>Process finished after %1.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="474"/>
<location filename="../../src/Dialog_Processing.cpp" line="473"/>
<source>Error: %1 of %2 files failed. Double-click failed items for detailed information!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/>
<location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>LameXP - Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/>
<location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>At least one file has failed!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="484"/>
<location filename="../../src/Dialog_Processing.cpp" line="485"/>
<location filename="../../src/Dialog_Processing.cpp" line="486"/>
<source>All files completed successfully.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="486"/>
<location filename="../../src/Dialog_Processing.cpp" line="485"/>
<source>LameXP - Done</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/>
<location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>Playlist creation failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/>
<location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>The playlist file could not be created:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="953"/>
<location filename="../../src/Dialog_Processing.cpp" line="952"/>
<source>Warning: Computer will shutdown in %1 seconds...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="956"/>
<location filename="../../src/Dialog_Processing.cpp" line="957"/>
<location filename="../../src/Dialog_Processing.cpp" line="958"/>
<source>Cancel Shutdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1013"/>
<location filename="../../src/Dialog_Processing.cpp" line="1012"/>
<source>hour(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1014"/>
<location filename="../../src/Dialog_Processing.cpp" line="1018"/>
<location filename="../../src/Dialog_Processing.cpp" line="1013"/>
<location filename="../../src/Dialog_Processing.cpp" line="1017"/>
<source>minute(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1019"/>
<location filename="../../src/Dialog_Processing.cpp" line="1023"/>
<location filename="../../src/Dialog_Processing.cpp" line="1018"/>
<location filename="../../src/Dialog_Processing.cpp" line="1022"/>
<source>second(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1024"/>
<location filename="../../src/Dialog_Processing.cpp" line="1023"/>
<source>millisecond(s)</source>
<translation type="unfinished"></translation>
</message>
@ -2867,103 +2867,107 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="218"/>
<location filename="../../src/Dialog_Update.cpp" line="463"/>
<location filename="../../src/Dialog_Update.cpp" line="247"/>
<location filename="../../src/Dialog_Update.cpp" line="500"/>
<source>Build</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="219"/>
<location filename="../../src/Dialog_Update.cpp" line="248"/>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="307"/>
<location filename="../../src/Dialog_Update.cpp" line="344"/>
<source>Testing your internet connection, please wait...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="327"/>
<location filename="../../src/Dialog_Update.cpp" line="364"/>
<location filename="../../src/Dialog_Update.cpp" line="928"/>
<source>It appears that the computer currently is offline!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="330"/>
<location filename="../../src/Dialog_Update.cpp" line="367"/>
<location filename="../../src/Dialog_Update.cpp" line="931"/>
<source>Please make sure your computer is connected to the internet and try again.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="380"/>
<location filename="../../src/Dialog_Update.cpp" line="417"/>
<location filename="../../src/Dialog_Update.cpp" line="978"/>
<source>Network connectivity test has failed!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="383"/>
<location filename="../../src/Dialog_Update.cpp" line="420"/>
<location filename="../../src/Dialog_Update.cpp" line="981"/>
<source>Please make sure your internet connection is working properly and try again.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="397"/>
<location filename="../../src/Dialog_Update.cpp" line="434"/>
<source>Checking for new updates online, please wait...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="448"/>
<location filename="../../src/Dialog_Update.cpp" line="485"/>
<source>Failed to fetch update information from server!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="453"/>
<location filename="../../src/Dialog_Update.cpp" line="490"/>
<source>Sorry, the update server might be busy at this time. Plase try again later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="465"/>
<location filename="../../src/Dialog_Update.cpp" line="502"/>
<source>More information available at:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="471"/>
<location filename="../../src/Dialog_Update.cpp" line="508"/>
<source>A new version of LameXP is available!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="473"/>
<location filename="../../src/Dialog_Update.cpp" line="510"/>
<source>We highly recommend all users to install this update as soon as possible.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="482"/>
<location filename="../../src/Dialog_Update.cpp" line="519"/>
<source>No new updates available at this time.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="484"/>
<location filename="../../src/Dialog_Update.cpp" line="521"/>
<source>Your version of LameXP is still up-to-date. Please check for updates regularly!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="493"/>
<location filename="../../src/Dialog_Update.cpp" line="530"/>
<source>Your version appears to be newer than the latest release.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="495"/>
<location filename="../../src/Dialog_Update.cpp" line="532"/>
<source>This usually indicates your are currently using a pre-release version of LameXP.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="778"/>
<location filename="../../src/Dialog_Update.cpp" line="815"/>
<source>Update is being downloaded, please be patient...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="817"/>
<location filename="../../src/Dialog_Update.cpp" line="854"/>
<source>Update ready to install. Applicaion will quit...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="825"/>
<location filename="../../src/Dialog_Update.cpp" line="862"/>
<source>Update failed. Please try again or download manually!</source>
<translation type="unfinished"></translation>
</message>

View File

@ -2633,141 +2633,141 @@
<translation type="unfinished">Powrót</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="154"/>
<location filename="../../src/Dialog_Processing.cpp" line="153"/>
<source>Show details for selected job</source>
<translation type="unfinished">Pokaż szczegóły wybranego zadania</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="155"/>
<location filename="../../src/Dialog_Processing.cpp" line="154"/>
<source>Browse Output File Location</source>
<translation type="unfinished">Wybierz lokalizację dla plików wyjściowych</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/>
<location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Encoding Files</source>
<translation type="unfinished">Kompresowanie plików</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/>
<location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Your files are being encoded, please be patient...</source>
<translation type="unfinished">Twoje pliki właśnie kompresowane, prosze być cierpliwy...</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="335"/>
<location filename="../../src/Dialog_Processing.cpp" line="334"/>
<source>Encoding files, please wait...</source>
<translation type="unfinished">Kompresowanie plików, prosze czekać...</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="378"/>
<location filename="../../src/Dialog_Processing.cpp" line="377"/>
<source>Multi-threading enabled: Running %1 instances in parallel!</source>
<translation type="unfinished">Wielowątkowosć włączona: Równolegle wykonywanych jest %1 kodowań!</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="398"/>
<location filename="../../src/Dialog_Processing.cpp" line="397"/>
<source>Aborted! Waiting for running jobs to terminate...</source>
<translation type="unfinished">Przerwano! Czekanie na wyłączenie procesu...</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="413"/>
<location filename="../../src/Dialog_Processing.cpp" line="412"/>
<source>Encoding: %1 files of %2 completed so far, please wait...</source>
<translation type="unfinished">Kompresja: Prosze czekać, jak dotąd wykonano %1 z %2 plików...</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="441"/>
<location filename="../../src/Dialog_Processing.cpp" line="440"/>
<source>Creating the playlist file, please wait...</source>
<translation type="unfinished">Tworzenie pliku playlisty, prosze czekać...</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted by the user after %1 file(s)!</source>
<translation type="unfinished">Proces został przerwany przez użytkownika po wykonaniu %1 plików!</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted prematurely by the user!</source>
<translation type="unfinished">Proces został przedwcześnie zakończony przez użytkownika!</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>LameXP - Aborted</source>
<translation type="unfinished">LameXP - Przerwano</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/>
<location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>Process was aborted by the user.</source>
<translation type="unfinished">Proces został przerwany przez użytkownika.</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="465"/>
<location filename="../../src/Dialog_Processing.cpp" line="464"/>
<source>Process finished after %1.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="474"/>
<location filename="../../src/Dialog_Processing.cpp" line="473"/>
<source>Error: %1 of %2 files failed. Double-click failed items for detailed information!</source>
<translation type="unfinished">Błąd: %1 z %2 plików nie zostało skompresowanych. Kliknij dwukrotnie na plik aby zobaczyć szczegóły!</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/>
<location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>LameXP - Error</source>
<translation type="unfinished">LameXP - Błąd</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/>
<location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>At least one file has failed!</source>
<translation type="unfinished">Przynajmniej jeden plik nie został skompresowany!</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="484"/>
<location filename="../../src/Dialog_Processing.cpp" line="485"/>
<location filename="../../src/Dialog_Processing.cpp" line="486"/>
<source>All files completed successfully.</source>
<translation type="unfinished">Kompresja wszystkich plików zakończona powodzeniem.</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="486"/>
<location filename="../../src/Dialog_Processing.cpp" line="485"/>
<source>LameXP - Done</source>
<translation type="unfinished">LameXP - Zrobione</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/>
<location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>Playlist creation failed</source>
<translation type="unfinished">Tworzenie playlisty zakończone niepowodzeniem</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/>
<location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>The playlist file could not be created:</source>
<translation type="unfinished">Playlista nie mogła zostać utworzona:</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="953"/>
<location filename="../../src/Dialog_Processing.cpp" line="952"/>
<source>Warning: Computer will shutdown in %1 seconds...</source>
<translation type="unfinished">Ostrzeżenie: Komputer zostanie zamknięty za %1 sekund/y...</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="956"/>
<location filename="../../src/Dialog_Processing.cpp" line="957"/>
<location filename="../../src/Dialog_Processing.cpp" line="958"/>
<source>Cancel Shutdown</source>
<translation type="unfinished">Anuluj wyłączenie komputera</translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1013"/>
<location filename="../../src/Dialog_Processing.cpp" line="1012"/>
<source>hour(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1014"/>
<location filename="../../src/Dialog_Processing.cpp" line="1018"/>
<location filename="../../src/Dialog_Processing.cpp" line="1013"/>
<location filename="../../src/Dialog_Processing.cpp" line="1017"/>
<source>minute(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1019"/>
<location filename="../../src/Dialog_Processing.cpp" line="1023"/>
<location filename="../../src/Dialog_Processing.cpp" line="1018"/>
<location filename="../../src/Dialog_Processing.cpp" line="1022"/>
<source>second(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_Processing.cpp" line="1024"/>
<location filename="../../src/Dialog_Processing.cpp" line="1023"/>
<source>millisecond(s)</source>
<translation type="unfinished"></translation>
</message>
@ -2867,103 +2867,107 @@
<translation type="unfinished">Zamknij</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="218"/>
<location filename="../../src/Dialog_Update.cpp" line="463"/>
<location filename="../../src/Dialog_Update.cpp" line="247"/>
<location filename="../../src/Dialog_Update.cpp" line="500"/>
<source>Build</source>
<translation type="unfinished">Build</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="219"/>
<location filename="../../src/Dialog_Update.cpp" line="248"/>
<source>Unknown</source>
<translation type="unfinished">Nieznany</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="307"/>
<location filename="../../src/Dialog_Update.cpp" line="344"/>
<source>Testing your internet connection, please wait...</source>
<translation type="unfinished">Testowanie połączenia internetowego, prosze czekać...</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="327"/>
<location filename="../../src/Dialog_Update.cpp" line="364"/>
<location filename="../../src/Dialog_Update.cpp" line="928"/>
<source>It appears that the computer currently is offline!</source>
<translation type="unfinished">LameXP wykrył brak dostępu do internetu!</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="330"/>
<location filename="../../src/Dialog_Update.cpp" line="367"/>
<location filename="../../src/Dialog_Update.cpp" line="931"/>
<source>Please make sure your computer is connected to the internet and try again.</source>
<translation type="unfinished">Upewnij się że komputer jest podłączony do internetu i spróbuj ponownie.</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="380"/>
<location filename="../../src/Dialog_Update.cpp" line="417"/>
<location filename="../../src/Dialog_Update.cpp" line="978"/>
<source>Network connectivity test has failed!</source>
<translation type="unfinished">Test połączenia internetowego zakończony niepowodzeniem!</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="383"/>
<location filename="../../src/Dialog_Update.cpp" line="420"/>
<location filename="../../src/Dialog_Update.cpp" line="981"/>
<source>Please make sure your internet connection is working properly and try again.</source>
<translation type="unfinished">Upewnij się że połączenie internetowe działa prawidłowo i spróbuj ponownie.</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="397"/>
<location filename="../../src/Dialog_Update.cpp" line="434"/>
<source>Checking for new updates online, please wait...</source>
<translation type="unfinished">Sprawdzanie aktualizacji online, prosze czekać...</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="448"/>
<location filename="../../src/Dialog_Update.cpp" line="485"/>
<source>Failed to fetch update information from server!</source>
<translation type="unfinished">Pobieranie informacji z serwera zakończone niepowodzeniem!</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="453"/>
<location filename="../../src/Dialog_Update.cpp" line="490"/>
<source>Sorry, the update server might be busy at this time. Plase try again later.</source>
<translation type="unfinished">Serwer aktualizacji wydaje się nie odpowiadać w tej chwili. Prosze spróbować później.</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="465"/>
<location filename="../../src/Dialog_Update.cpp" line="502"/>
<source>More information available at:</source>
<translation type="unfinished">Więcej informacji tutaj:</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="471"/>
<location filename="../../src/Dialog_Update.cpp" line="508"/>
<source>A new version of LameXP is available!</source>
<translation type="unfinished">Dostępna nowa wersja LameXP!</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="473"/>
<location filename="../../src/Dialog_Update.cpp" line="510"/>
<source>We highly recommend all users to install this update as soon as possible.</source>
<translation type="unfinished">Jest wysoce zalecane aby zainstalować aktualizację jak najszybciej.</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="482"/>
<location filename="../../src/Dialog_Update.cpp" line="519"/>
<source>No new updates available at this time.</source>
<translation type="unfinished">Nie ma nowych aktualizacji w tej chwili.</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="484"/>
<location filename="../../src/Dialog_Update.cpp" line="521"/>
<source>Your version of LameXP is still up-to-date. Please check for updates regularly!</source>
<translation type="unfinished">Posiadasz najnowszą wersję LameXP. Sprawdzaj aktualizacje regularnie!</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="493"/>
<location filename="../../src/Dialog_Update.cpp" line="530"/>
<source>Your version appears to be newer than the latest release.</source>
<translation type="unfinished">Posiadasz nowszą wersję LameXP niż ostatnie wydanie.</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="495"/>
<location filename="../../src/Dialog_Update.cpp" line="532"/>
<source>This usually indicates your are currently using a pre-release version of LameXP.</source>
<translation type="unfinished">To wskazuje na to, że posiadasz wersję alfa LameXP.</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="778"/>
<location filename="../../src/Dialog_Update.cpp" line="815"/>
<source>Update is being downloaded, please be patient...</source>
<translation type="unfinished">Pobieranie aktualizacji w toku, prosze czekać...</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="817"/>
<location filename="../../src/Dialog_Update.cpp" line="854"/>
<source>Update ready to install. Applicaion will quit...</source>
<translation type="unfinished">Aktualizacja gotowa do instalacji. Teraz program zostanie zamknięty...</translation>
</message>
<message>
<location filename="../../src/Dialog_Update.cpp" line="825"/>
<location filename="../../src/Dialog_Update.cpp" line="862"/>
<source>Update failed. Please try again or download manually!</source>
<translation type="unfinished">Aktualizacja zakończona niepowodzeniem. Prosze spróbować ponownie lub zainstalować ręcznie!</translation>
</message>

View File

@ -29,8 +29,8 @@
#define VER_LAMEXP_MINOR_HI 0
#define VER_LAMEXP_MINOR_LO 4
#define VER_LAMEXP_TYPE Alpha
#define VER_LAMEXP_PATCH 5
#define VER_LAMEXP_BUILD 796
#define VER_LAMEXP_PATCH 6
#define VER_LAMEXP_BUILD 798
///////////////////////////////////////////////////////////////////////////////
// Tool versions (minimum expected versions!)

View File

@ -73,43 +73,72 @@ static const char *update_mirrors_back[] =
NULL
};
static const char *known_hosts[] =
static const char *known_hosts[] = //Taken form: http://www.alexa.com/topsites
{
"http://www.163.com/",
"http://www.360buy.com/",
"http://www.amazon.com/",
"http://www.aol.com/",
"http://www.apache.org/",
"http://www.apple.com/",
"http://www.adobe.com/",
"http://www.avidemux.org/",
"http://www.babylon.com/",
"http://www.baidu.com/",
"http://www.bbc.co.uk/",
"http://www.bing.com/",
"http://www.cnet.com/",
"http://cnzz.com/",
"http://www.ebay.com/",
"http://www.equation.com/",
"http://fc2.com/",
"http://www.ffmpeg.org/",
"http://www.flickr.com/",
"http://www.gitorious.org/",
"http://www.gnome.org/",
"http://www.gnu.org/",
"http://go.com/",
"http://code.google.com/",
"http://haali.su/mkv/",
"http://www.heise.de/",
"http://www.huffingtonpost.co.uk/",
"http://www.iana.org/",
"http://www.imdb.com/",
"http://www.imgburn.com/",
"http://imgur.com/",
"http://www.kernel.org/",
"http://www.libav.org/",
"http://www.linkedin.com/",
"http://www.livedoor.com/",
"http://www.livejournal.com/",
"http://mail.ru/",
"http://www.mediafire.com/",
"http://www.mozilla.org/",
"http://mplayerhq.hu/",
"http://www.msn.com/?st=1",
"http://oss.netfarm.it/",
"http://www.nytimes.com/",
"http://www.opera.com/",
"http://www.quakelive.com/",
"http://www.seamonkey-project.org/",
"http://www.sina.com.cn/",
"http://www.sohu.com/",
"http://www.soso.com/",
"http://sourceforge.net/",
"http://www.spiegel.de/",
"http://tdm-gcc.tdragon.net/",
"http://www.tdrsmusic.com/",
"http://www.ubuntu.com/",
"http://twitter.com/",
"http://www.uol.com.br/",
"http://www.videohelp.com/",
"http://www.videolan.org/",
"http://www.weibo.com/",
"http://www.wikipedia.org/",
"http://wordpress.com/",
"http://www.yahoo.com/",
"http://www.yandex.ru/",
"http://www.youtube.com/",
"http://www.zedo.com/",
NULL
};
@ -259,6 +288,14 @@ void UpdateDialog::keyPressEvent(QKeyEvent *e)
{
if(closeButton->isEnabled()) logButtonClicked();
}
else if((e->key() == Qt::Key_F12) && e->modifiers().testFlag(Qt::ControlModifier))
{
if(closeButton->isEnabled())
{
testKnownWebSites();
logButtonClicked();
}
}
else
{
QDialog::keyPressEvent(e);
@ -365,7 +402,7 @@ void UpdateDialog::checkForUpdates(void)
else
{
QApplication::processEvents();
Sleep(15);
Sleep(8);
}
}
@ -578,7 +615,7 @@ bool UpdateDialog::getFile(const QString &url, const QString &outFile, unsigned
QTimer timer;
timer.setSingleShot(true);
timer.setInterval(15000);
timer.setInterval(25000);
connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
process.start(m_binaryWGet, args);
@ -844,3 +881,131 @@ void UpdateDialog::progressBarValueChanged(int value)
{
WinSevenTaskbar::setTaskbarProgress(this->parentWidget(), value, progressBar->maximum());
}
void UpdateDialog::testKnownWebSites(void)
{
int connectionScore = 0;
// ----- Initialization ----- //
progressBar->setValue(0);
WinSevenTaskbar::setTaskbarState(this->parentWidget(), WinSevenTaskbar::WinSevenTaskbarNormalState);
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/transmit_blue.png"));
installButton->setEnabled(false);
closeButton->setEnabled(false);
retryButton->setEnabled(false);
logButton->setEnabled(false);
if(infoLabel->isVisible()) infoLabel->hide();
if(hintLabel->isVisible()) hintLabel->hide();
if(hintIcon->isVisible()) hintIcon->hide();
frameAnimation->show();
QApplication::processEvents();
QApplication::setOverrideCursor(Qt::WaitCursor);
// ----- Test Internet Connection ----- //
statusLabel->setText("Testing all known hosts, this may take a few minutes...");
m_logFile->clear();
m_logFile->append("Checking internet connection...");
QFuture<BOOL> connectedState = QtConcurrent::run(getInternetConnectedState);
while(!connectedState.isFinished())
{
QApplication::processEvents(QEventLoop::WaitForMoreEvents);
}
if(!connectedState.result())
{
m_logFile->append(QStringList() << "" << "Operating system reports that the computer is currently offline !!!");
if(!retryButton->isVisible()) retryButton->show();
if(!logButton->isVisible()) logButton->show();
closeButton->setEnabled(true);
retryButton->setEnabled(true);
logButton->setEnabled(true);
if(frameAnimation->isVisible()) frameAnimation->hide();
statusLabel->setText(tr("It appears that the computer currently is offline!"));
progressBar->setValue(progressBar->maximum());
hintIcon->setPixmap(QIcon(":/icons/network_error.png").pixmap(16,16));
hintLabel->setText(tr("Please make sure your computer is connected to the internet and try again."));
hintIcon->show();
hintLabel->show();
LAMEXP_DELETE(m_updateInfo);
if(m_settings->soundsEnabled()) PlaySound(MAKEINTRESOURCE(IDR_WAVE_ERROR), GetModuleHandle(NULL), SND_RESOURCE | SND_ASYNC);
QApplication::restoreOverrideCursor();
progressBar->setValue(progressBar->maximum());
WinSevenTaskbar::setTaskbarState(this->parentWidget(), WinSevenTaskbar::WinSevenTaskbarErrorState);
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/exclamation.png"));
return;
}
// ----- Test Known Hosts Connectivity ----- //
QStringList hostList;
for(int i = 0; known_hosts[i]; i++)
{
hostList << QString::fromLatin1(known_hosts[i]);
}
int maxScore = hostList.count();
while(!hostList.isEmpty())
{
progressBar->setValue(progressBar->value() + 1);
QString currentHost = hostList.takeFirst();
qDebug("Testing: %s", currentHost.toLatin1().constData());
m_logFile->append(QStringList() << "" << "Testing host:" << currentHost << "");
QString outFile = QString("%1/%2.htm").arg(lamexp_temp_folder2(), lamexp_rand_str());
if(getFile(currentHost, outFile, 0))
{
connectionScore++;
}
else
{
qWarning("Connectivity test failed on the following site:\n%s", currentHost.toLatin1().constData());
}
QFile::remove(outFile);
}
if(connectionScore < maxScore)
{
if(!retryButton->isVisible()) retryButton->show();
if(!logButton->isVisible()) logButton->show();
closeButton->setEnabled(true);
retryButton->setEnabled(true);
logButton->setEnabled(true);
if(frameAnimation->isVisible()) frameAnimation->hide();
statusLabel->setText(tr("Network connectivity test has failed!"));
progressBar->setValue(progressBar->maximum());
hintIcon->setPixmap(QIcon(":/icons/network_error.png").pixmap(16,16));
hintLabel->setText(tr("Please make sure your internet connection is working properly and try again."));
hintIcon->show();
hintLabel->show();
LAMEXP_DELETE(m_updateInfo);
if(m_settings->soundsEnabled()) PlaySound(MAKEINTRESOURCE(IDR_WAVE_ERROR), GetModuleHandle(NULL), SND_RESOURCE | SND_ASYNC);
QApplication::restoreOverrideCursor();
progressBar->setValue(progressBar->maximum());
WinSevenTaskbar::setTaskbarState(this->parentWidget(), WinSevenTaskbar::WinSevenTaskbarErrorState);
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/exclamation.png"));
return;
}
// ----- Done ----- //
QApplication::restoreOverrideCursor();
progressBar->setValue(progressBar->maximum());
statusLabel->setText("Test completed.");
hintIcon->setPixmap(QIcon(":/icons/shield_green.png").pixmap(16,16));
hintLabel->setText("Congratulations, the test has completed.");
if(frameAnimation->isVisible()) frameAnimation->hide();
hintIcon->show();
hintLabel->show();
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/shield_green.png"));
MessageBeep(MB_ICONINFORMATION);
closeButton->setEnabled(true);
if(retryButton->isVisible()) retryButton->hide();
if(logButton->isVisible()) logButton->hide();
if(frameAnimation->isVisible()) frameAnimation->hide();
}

View File

@ -61,6 +61,7 @@ private:
bool getFile(const QString &url, const QString &outFile, unsigned int maxRedir = 5);
bool checkSignature(const QString &file, const QString &signature);
bool parseVersionInfo(const QString &file, UpdateInfo *updateInfo);
void testKnownWebSites(void);
UpdateInfo *m_updateInfo;
QStringList *m_logFile;