Improved LameXP message logging code. This also fixes an invocation of the invalid message handler, when the console window gets closed unexpectedly.

This commit is contained in:
LoRd_MuldeR 2013-10-25 15:12:27 +02:00
parent 18b645f349
commit dd98a78fad
7 changed files with 436 additions and 327 deletions

View File

@ -1755,7 +1755,7 @@
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="719"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3783"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3792"/>
<source>Access Denied</source>
<translation type="unfinished"></translation>
</message>
@ -1942,8 +1942,8 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1301"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1379"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1456"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3735"/>
<source>Discard</source>
<translation type="unfinished"></translation>
</message>
@ -2158,9 +2158,9 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1856"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1882"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1908"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>Yes</source>
<translation type="unfinished"></translation>
</message>
@ -2169,9 +2169,9 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1856"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1882"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1908"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>No</source>
<translation type="unfinished"></translation>
</message>
@ -2268,321 +2268,321 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2009"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2018"/>
<source>Beta Updates</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<source>Do you really want LameXP to check for Beta (pre-release) updates?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<source>LameXP will check for Beta (pre-release) updates from now on.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<source>Check Now</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2009"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2018"/>
<source>LameXP will &lt;i&gt;not&lt;/i&gt; check for Beta (pre-release) updates from now on.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2033"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2043"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2042"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2052"/>
<source>Hibernate Computer</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<source>Do you really want the computer to be hibernated on shutdown?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2033"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2042"/>
<source>LameXP will hibernate the computer on shutdown from now on.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2043"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2052"/>
<source>LameXP will &lt;i&gt;not&lt;/i&gt; hibernate the computer on shutdown from now on.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2060"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2071"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2069"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2080"/>
<source>Shell Integration</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>Do you really want to disable the LameXP shell integration?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2060"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2069"/>
<source>The LameXP shell integration has been disabled.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2071"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2080"/>
<source>The LameXP shell integration has been re-enabled.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2168"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2177"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2186"/>
<source>Add file(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2209"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2213"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2218"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2222"/>
<source>Add Folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2443"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2447"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2456"/>
<source>Save CSV file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2443"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2450"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2494"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2500"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2459"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2503"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2509"/>
<source>CSV File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2464"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2467"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2470"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2476"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2479"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2482"/>
<source>CSV Export</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2464"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<source>Sorry, there are no meta tags that can be exported!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2467"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2476"/>
<source>Sorry, failed to open CSV file for writing!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2470"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2479"/>
<source>Sorry, failed to write to the CSV file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2482"/>
<source>The CSV files was created successfully!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2494"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2498"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2503"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2507"/>
<source>Open CSV file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2514"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2517"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2520"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2529"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2532"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2535"/>
<source>CSV Import</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2514"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<source>Sorry, failed to open CSV file for reading!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2517"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<source>Sorry, failed to read from the CSV file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2520"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2529"/>
<source>Sorry, the CSV file does not contain any known fields!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2532"/>
<source>CSV file is incomplete. Not all files were updated!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2535"/>
<source>The CSV files was imported successfully!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2706"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2751"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2715"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2760"/>
<source>New Folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2751"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2760"/>
<source>Enter the name of the new folder:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>Failed to create folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>The new folder could not be created:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>Drive is read-only or insufficient access rights!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3261"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3270"/>
<source>Current Encoder: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3363"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3366"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3372"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3375"/>
<source>Quality Level %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3369"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3378"/>
<source>Compression %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3372"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3381"/>
<source>Uncompressed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3419"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3428"/>
<source>Best Quality (Slow)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3422"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3431"/>
<source>High Quality (Recommended)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3425"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3434"/>
<source>Acceptable Quality (Fast)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3428"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3437"/>
<source>Poor Quality (Very Fast)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3715"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3724"/>
<source>File name without extension</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3716"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3725"/>
<source>Track number with leading zero</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3717"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<source>Track title</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3718"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3727"/>
<source>Artist name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3719"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3728"/>
<source>Album name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3720"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3729"/>
<source>Year with (at least) four digits</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3721"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3730"/>
<source>Comment</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3723"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3732"/>
<source>Characters forbidden in file names:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3735"/>
<source>Rename Macros</source>
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<location filename="../../src/Dialog_MainWindow.cpp" line="3739"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3748"/>
<source>%n Instance(s)</source>
<translation type="unfinished">
<numerusform></numerusform>
</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3783"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3792"/>
<source>Cannot write to the selected directory. Please choose another directory!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Overwrite Mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Warning: This mode may overwrite existing files with no way to revert!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Continue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Revert</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3980"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3989"/>
<source>Already Running</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3980"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3989"/>
<source>LameXP is already running, please use the running instance!</source>
<translation type="unfinished"></translation>
</message>
@ -3290,22 +3290,22 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="1338"/>
<location filename="../../src/Global.cpp" line="1438"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1280"/>
<location filename="../../src/Global.cpp" line="1380"/>
<source>Executable &apos;%1&apos; requires Qt v%2, but found Qt v%3.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1285"/>
<location filename="../../src/Global.cpp" line="1385"/>
<source>Executable &apos;%1&apos; was built for Qt &apos;%2&apos;, but found Qt &apos;%3&apos;.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1297"/>
<location filename="../../src/Global.cpp" line="1397"/>
<source>Executable &apos;%1&apos; requires Windows XP or later.</source>
<translation type="unfinished"></translation>
</message>

View File

@ -63,7 +63,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../src/Dialog_MainWindow.cpp" line="3739"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3748"/>
<source>%n Instance(s)</source>
<translation>
<numerusform>%n Instance</numerusform>

View File

@ -1762,7 +1762,7 @@
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="719"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3783"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3792"/>
<source>Access Denied</source>
<translation type="unfinished">Dostęp zablokowany</translation>
</message>
@ -1891,8 +1891,8 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1301"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1379"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1456"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3735"/>
<source>Discard</source>
<translation type="unfinished">Zamknij</translation>
</message>
@ -2173,9 +2173,9 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1856"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1882"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1908"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>Yes</source>
<translation type="unfinished">Tak</translation>
</message>
@ -2184,9 +2184,9 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1856"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1882"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1908"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>No</source>
<translation type="unfinished">Nie</translation>
</message>
@ -2283,284 +2283,284 @@
<translation type="unfinished">Plik Cue Sheet</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2009"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2018"/>
<source>Beta Updates</source>
<translation type="unfinished">Aktualizacje Beta</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<source>Do you really want LameXP to check for Beta (pre-release) updates?</source>
<translation type="unfinished">Czy na pewno chcesz aby LameXP sprawdzał aktualizacje Beta?</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<source>LameXP will check for Beta (pre-release) updates from now on.</source>
<translation type="unfinished">Od teraz LameXP będzie sprawdzał aktualizacje Beta.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<source>Check Now</source>
<translation type="unfinished">Sprawdź teraz</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2009"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2018"/>
<source>LameXP will &lt;i&gt;not&lt;/i&gt; check for Beta (pre-release) updates from now on.</source>
<translation type="unfinished">LameXP od teraz &lt;i&gt;nie będzie&lt;/i&gt; sprawdzał aktualizacji Beta.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2033"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2043"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2042"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2052"/>
<source>Hibernate Computer</source>
<translation type="unfinished">Hibernuj komputer</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<source>Do you really want the computer to be hibernated on shutdown?</source>
<translation type="unfinished">Czy na pewno chcesz aby komputer był hibernowany zamiast zamykany?</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2033"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2042"/>
<source>LameXP will hibernate the computer on shutdown from now on.</source>
<translation type="unfinished">Od teraz LameXP będzie hibernował komputer zamiast zamykać.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2043"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2052"/>
<source>LameXP will &lt;i&gt;not&lt;/i&gt; hibernate the computer on shutdown from now on.</source>
<translation type="unfinished">LameXP od teraz &lt;i&gt;nie&lt;/i&gt; będzie hibernował komputera tylko zamykał.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2060"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2071"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2069"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2080"/>
<source>Shell Integration</source>
<translation type="unfinished">Integracja z systemem</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>Do you really want to disable the LameXP shell integration?</source>
<translation type="unfinished">Czy na pewno chcesz wyłączyć integrację LameXP z systemem?</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2060"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2069"/>
<source>The LameXP shell integration has been disabled.</source>
<translation type="unfinished">Integracja LameXP z systemem zostałą wyłączona.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2071"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2080"/>
<source>The LameXP shell integration has been re-enabled.</source>
<translation type="unfinished">Integracja LameXP z systemem została ponownie włączona.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2168"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2177"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2186"/>
<source>Add file(s)</source>
<translation type="unfinished">Dodaj plik(i)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2209"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2213"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2218"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2222"/>
<source>Add Folder</source>
<translation type="unfinished">Dodaj folder</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2443"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2447"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2456"/>
<source>Save CSV file</source>
<translation type="unfinished">Zapisz plik CSV</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2443"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2450"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2494"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2500"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2459"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2503"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2509"/>
<source>CSV File</source>
<translation type="unfinished">Plik CSV</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2464"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2467"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2470"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2476"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2479"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2482"/>
<source>CSV Export</source>
<translation type="unfinished">Eksportowanie CSV</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2464"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<source>Sorry, there are no meta tags that can be exported!</source>
<translation type="unfinished">Nie ma żadnych tagów, które można eksportować!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2467"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2476"/>
<source>Sorry, failed to open CSV file for writing!</source>
<translation type="unfinished">Nie można otworzyć pliku CSV aby go zapisać!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2470"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2479"/>
<source>Sorry, failed to write to the CSV file!</source>
<translation type="unfinished">Nie można zapisać do pliku CSV!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2482"/>
<source>The CSV files was created successfully!</source>
<translation type="unfinished">Pliki CSV utworzone pomyślnie!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2494"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2498"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2503"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2507"/>
<source>Open CSV file</source>
<translation type="unfinished">Otwórz plik CSV</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2514"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<source>Sorry, failed to open CSV file for reading!</source>
<translation type="unfinished">Nie można otworzyć pliku CSV aby go wczytać!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2514"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2517"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2520"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2529"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2532"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2535"/>
<source>CSV Import</source>
<translation type="unfinished">Importowanie CSV</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2517"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<source>Sorry, failed to read from the CSV file!</source>
<translation type="unfinished">Próba odczytania pliku CSV zakończona niepowodzeniem!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2520"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2529"/>
<source>Sorry, the CSV file does not contain any known fields!</source>
<translation type="unfinished">Plik CSV nie zawiera żadnych znanych pól!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2532"/>
<source>CSV file is incomplete. Not all files were updated!</source>
<translation type="unfinished">Plik CSV nie jest kompletny. Nie wszystkie pliki zostały zaktualizowane!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2535"/>
<source>The CSV files was imported successfully!</source>
<translation type="unfinished">Pliki CSV zaimportowano pomyślnie!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2706"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2751"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2715"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2760"/>
<source>New Folder</source>
<translation type="unfinished">Nowy folder</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2751"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2760"/>
<source>Enter the name of the new folder:</source>
<translation type="unfinished">Wprowadź nazwę nowego folderu:</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>Failed to create folder</source>
<translation type="unfinished">Utworzenie folderu zakończone niepowodzeniem</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>The new folder could not be created:</source>
<translation type="unfinished">Nowy folder nie mógł zostać stworzony:</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>Drive is read-only or insufficient access rights!</source>
<translation type="unfinished">Dysk tylko do odczytu lub brak praw dostępu!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3363"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3366"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3372"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3375"/>
<source>Quality Level %1</source>
<translation type="unfinished">Poziom jakości %1</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3369"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3378"/>
<source>Compression %1</source>
<translation type="unfinished">Kompresja %1</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3372"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3381"/>
<source>Uncompressed</source>
<translation type="unfinished">Nieskompresowany</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3419"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3428"/>
<source>Best Quality (Slow)</source>
<translation type="unfinished">Najlepsza jakość (Powoli)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3425"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3434"/>
<source>Acceptable Quality (Fast)</source>
<translation type="unfinished">Akceptowalna jakość (Szybko)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3422"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3431"/>
<source>High Quality (Recommended)</source>
<translation type="unfinished">Wysoka jakość (Zalecane)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3261"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3270"/>
<source>Current Encoder: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3428"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3437"/>
<source>Poor Quality (Very Fast)</source>
<translation type="unfinished">Najniższa jakość (Bardzo szybko)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3715"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3724"/>
<source>File name without extension</source>
<translation type="unfinished">Nazwa pliku bez rozszerzenia</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3716"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3725"/>
<source>Track number with leading zero</source>
<translation type="unfinished">Numer ścieżki z zerem na początku</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3717"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<source>Track title</source>
<translation type="unfinished">Nazwa ścieżki</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3718"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3727"/>
<source>Artist name</source>
<translation type="unfinished">Nazwa Artysty</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3719"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3728"/>
<source>Album name</source>
<translation type="unfinished">Nazwa Albumu</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3720"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3729"/>
<source>Year with (at least) four digits</source>
<translation type="unfinished">Rok z (przynajmniej) czterema cyframi</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3721"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3730"/>
<source>Comment</source>
<translation type="unfinished">Komentarz</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3723"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3732"/>
<source>Characters forbidden in file names:</source>
<translation type="unfinished">Zabronione znaki w nazwach plików:</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3735"/>
<source>Rename Macros</source>
<translation type="unfinished">Zmień nazwy makr</translation>
</message>
<message numerus="yes">
<location filename="../../src/Dialog_MainWindow.cpp" line="3739"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3748"/>
<source>%n Instance(s)</source>
<translation type="unfinished">
<numerusform>%n wątek</numerusform>
@ -2569,37 +2569,37 @@
</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3783"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3792"/>
<source>Cannot write to the selected directory. Please choose another directory!</source>
<translation type="unfinished">Nie można zapisać do wybranej lokalizacji. Prosze wybierz inną lokalizację!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Overwrite Mode</source>
<translation type="unfinished">Tryb nadpisywania</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Warning: This mode may overwrite existing files with no way to revert!</source>
<translation type="unfinished">Ostrzeżenie: W tym trybie istniejące pliki będą nadpisywane bez możliwości ich odzyskania!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Continue</source>
<translation type="unfinished">Kontynuuj</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Revert</source>
<translation type="unfinished">Cofnij</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3980"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3989"/>
<source>Already Running</source>
<translation type="unfinished">Już działa</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3980"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3989"/>
<source>LameXP is already running, please use the running instance!</source>
<translation type="unfinished">LameXP już działa, przejdź do działającego procesu!</translation>
</message>
@ -3327,22 +3327,22 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="1338"/>
<location filename="../../src/Global.cpp" line="1438"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation type="unfinished">Plik wykonywalny &apos;%1&apos; nie działa w trybie kompatybilności z Windows.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1280"/>
<location filename="../../src/Global.cpp" line="1380"/>
<source>Executable &apos;%1&apos; requires Qt v%2, but found Qt v%3.</source>
<translation type="unfinished">Plik wykonywalny &apos;%1&apos; wymaga Qt v%2, znaleziono jednak Qt v%3.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1285"/>
<location filename="../../src/Global.cpp" line="1385"/>
<source>Executable &apos;%1&apos; was built for Qt &apos;%2&apos;, but found Qt &apos;%3&apos;.</source>
<translation type="unfinished">Plik wykonywalny &quot;%1&quot; został skompilowany dla Qt &quot;%2&quot;, znaleziono &quot;%3&quot;.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1297"/>
<location filename="../../src/Global.cpp" line="1397"/>
<source>Executable &apos;%1&apos; requires Windows XP or later.</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1759,7 +1759,7 @@
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="719"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3783"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3792"/>
<source>Access Denied</source>
<translation>Åtkomst nekad</translation>
</message>
@ -1950,8 +1950,8 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1301"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1379"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1456"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3735"/>
<source>Discard</source>
<translation>Stäng</translation>
</message>
@ -2166,9 +2166,9 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1856"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1882"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1908"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>Yes</source>
<translation>Ja</translation>
</message>
@ -2177,9 +2177,9 @@
<location filename="../../src/Dialog_MainWindow.cpp" line="1856"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1882"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1908"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>No</source>
<translation>Nej</translation>
</message>
@ -2276,284 +2276,284 @@
<translation>Cue-fil</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2009"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2018"/>
<source>Beta Updates</source>
<translation>Beta-uppdateringar</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1994"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2003"/>
<source>Do you really want LameXP to check for Beta (pre-release) updates?</source>
<translation>Vill du verkligen att LameXP skall söka efter beta-uppdateringar?</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<source>LameXP will check for Beta (pre-release) updates from now on.</source>
<translation>LameXP kommer i fortsättningen att söka efter beta-uppdatyeringar.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="1996"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2005"/>
<source>Check Now</source>
<translation>Sök nu</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2009"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2018"/>
<source>LameXP will &lt;i&gt;not&lt;/i&gt; check for Beta (pre-release) updates from now on.</source>
<translation>LameXP kommer i fortsättningen &lt;i&gt;inte&lt;/i&gt; att söka efter beta-uppdateringar.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2033"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2043"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2042"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2052"/>
<source>Hibernate Computer</source>
<translation>Viloläge</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2031"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2040"/>
<source>Do you really want the computer to be hibernated on shutdown?</source>
<translation>Vill du verkligen att datorn skall försättas i viloläge vid avslut?</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2033"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2042"/>
<source>LameXP will hibernate the computer on shutdown from now on.</source>
<translation>LameXP kommer i fortsättningen att försätta datorn i viloläge vid avslut.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2043"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2052"/>
<source>LameXP will &lt;i&gt;not&lt;/i&gt; hibernate the computer on shutdown from now on.</source>
<translation>LameXP kommer i fortsättningen &lt;i&gt;inte&lt;/i&gt; att försätta datorn i viloläge vid avslut.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2060"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2071"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2069"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2080"/>
<source>Shell Integration</source>
<translation>Utforskarintegrering</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2057"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2066"/>
<source>Do you really want to disable the LameXP shell integration?</source>
<translation>Vill du verkligen inaktivera LameXPs utforskarintegration?</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2060"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2069"/>
<source>The LameXP shell integration has been disabled.</source>
<translation>LameXPs utforskarintegration har inaktiverats.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2071"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2080"/>
<source>The LameXP shell integration has been re-enabled.</source>
<translation>LameXPs utforskarintegration har återaktiverats.</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2168"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2177"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2186"/>
<source>Add file(s)</source>
<translation>Lägg till fil(er)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2209"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2213"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2218"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2222"/>
<source>Add Folder</source>
<translation>Lägg till mapp</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2443"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2447"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2456"/>
<source>Save CSV file</source>
<translation>Spara CSV-fil</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2443"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2450"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2494"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2500"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2452"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2459"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2503"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2509"/>
<source>CSV File</source>
<translation>CSV-fil</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2464"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2467"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2470"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2476"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2479"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2482"/>
<source>CSV Export</source>
<translation>CSV-export</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2464"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<source>Sorry, there are no meta tags that can be exported!</source>
<translation>Det finns ingen meta-data som kan exporteras!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2467"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2476"/>
<source>Sorry, failed to open CSV file for writing!</source>
<translation>Kunde inte öppna CSV-filen för skrivning!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2470"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2479"/>
<source>Sorry, failed to write to the CSV file!</source>
<translation>Kunde inte skriva till CSV-filen!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2473"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2482"/>
<source>The CSV files was created successfully!</source>
<translation>CSV-filen skapades korrekt!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2494"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2498"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2503"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2507"/>
<source>Open CSV file</source>
<translation>Öppna CSV-fil</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2514"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2517"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2520"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2529"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2532"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2535"/>
<source>CSV Import</source>
<translation>CSV-import</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2514"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<source>Sorry, failed to open CSV file for reading!</source>
<translation>Kunde inte öppna CSV-filen för läsning!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2517"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<source>Sorry, failed to read from the CSV file!</source>
<translation>Kunde inte läsa från CSV-filen!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2520"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2529"/>
<source>Sorry, the CSV file does not contain any known fields!</source>
<translation>CSV-filen innehåller inga kända fält!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2523"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2532"/>
<source>CSV file is incomplete. Not all files were updated!</source>
<translation>CSV-filen är inte komplett. Alla filer uppdaterades inte!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2526"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2535"/>
<source>The CSV files was imported successfully!</source>
<translation>CSV-filen importerades korrekt!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2706"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2751"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2715"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2760"/>
<source>New Folder</source>
<translation>Ny mapp</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2751"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2760"/>
<source>Enter the name of the new folder:</source>
<translation>Namn den nya mappen:</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>Failed to create folder</source>
<translation>Kunde inte skapa någon mapp</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>The new folder could not be created:</source>
<translation>Den nya mappen kunde inte skapas:</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="2784"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="2793"/>
<source>Drive is read-only or insufficient access rights!</source>
<translation>Diskenheten är skrivskyddad eller åtkomsträttigheter saknas!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3363"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3366"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3372"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3375"/>
<source>Quality Level %1</source>
<translation>Kvallitetsnivå %1</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3369"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3378"/>
<source>Compression %1</source>
<translation>Kompression %1</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3372"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3381"/>
<source>Uncompressed</source>
<translation>Okomprimerad</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3419"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3428"/>
<source>Best Quality (Slow)</source>
<translation>Bäst kvalitet (Långsam)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3425"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3434"/>
<source>Acceptable Quality (Fast)</source>
<translation>Acceptabel kvalitet (Snabb)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3422"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3431"/>
<source>High Quality (Recommended)</source>
<translation>Hög kvallitet (rekommenderas)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3261"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3270"/>
<source>Current Encoder: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3428"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3437"/>
<source>Poor Quality (Very Fast)</source>
<translation>Dålig kvallitet (mycket snabb)</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3715"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3724"/>
<source>File name without extension</source>
<translation>Filnamn utan filtillägg</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3716"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3725"/>
<source>Track number with leading zero</source>
<translation>Spårnummer med inledande nolla</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3717"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<source>Track title</source>
<translation>Spårtitel</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3718"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3727"/>
<source>Artist name</source>
<translation>Artistnamn</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3719"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3728"/>
<source>Album name</source>
<translation>Albumnamn</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3720"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3729"/>
<source>Year with (at least) four digits</source>
<translation>Årtal med (minst) fyra siffror</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3721"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3730"/>
<source>Comment</source>
<translation>Kommentar</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3723"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3732"/>
<source>Characters forbidden in file names:</source>
<translation>Förbjudna tecken i filnamn:</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3726"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3735"/>
<source>Rename Macros</source>
<translation>Namnändra macron</translation>
</message>
<message numerus="yes">
<location filename="../../src/Dialog_MainWindow.cpp" line="3739"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3748"/>
<source>%n Instance(s)</source>
<translation>
<numerusform>%n instans</numerusform>
@ -2561,37 +2561,37 @@
</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3783"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3792"/>
<source>Cannot write to the selected directory. Please choose another directory!</source>
<translation>Kan inte skriva till den specificerade mappen. Välj en annan destination!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Overwrite Mode</source>
<translation>Överskrivningsläge</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Warning: This mode may overwrite existing files with no way to revert!</source>
<translation>Varning! Det här läget kan skriva över befintliga filer, utan möjlighet att återskapa!</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Continue</source>
<translation>Fortsätt</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3906"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3915"/>
<source>Revert</source>
<translation>Återställ</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3980"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3989"/>
<source>Already Running</source>
<translation>Körs redan</translation>
</message>
<message>
<location filename="../../src/Dialog_MainWindow.cpp" line="3980"/>
<location filename="../../src/Dialog_MainWindow.cpp" line="3989"/>
<source>LameXP is already running, please use the running instance!</source>
<translation>LameXP körs redan, använd den redan startade instansen!</translation>
</message>
@ -3310,22 +3310,22 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="1338"/>
<location filename="../../src/Global.cpp" line="1438"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation>EXE-filen &apos;%1&apos; stöder inte Windows kompatibilitetsläge.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1280"/>
<location filename="../../src/Global.cpp" line="1380"/>
<source>Executable &apos;%1&apos; requires Qt v%2, but found Qt v%3.</source>
<translation>EXE-filen &apos;%1&apos; kräver Qt v%2, du har Qt v%3.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1285"/>
<location filename="../../src/Global.cpp" line="1385"/>
<source>Executable &apos;%1&apos; was built for Qt &apos;%2&apos;, but found Qt &apos;%3&apos;.</source>
<translation>EXE-filen &apos;%1&apos; är byggd för Qt &apos;%2&apos;, du har Qt &apos;%3&apos;.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="1297"/>
<location filename="../../src/Global.cpp" line="1397"/>
<source>Executable &apos;%1&apos; requires Windows XP or later.</source>
<translation type="unfinished"></translation>
</message>

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 9
#define VER_LAMEXP_TYPE Alpha
#define VER_LAMEXP_PATCH 4
#define VER_LAMEXP_BUILD 1420
#define VER_LAMEXP_BUILD 1424
#define VER_LAMEXP_CONFG 1348
///////////////////////////////////////////////////////////////////////////////

View File

@ -1962,6 +1962,15 @@ void MainWindow::importCueSheetActionTriggered(bool checked)
LAMEXP_DELETE(cueImporter);
}
if(result == QDialog::Accepted)
{
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
ui->sourceFileView->update();
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
ui->sourceFileView->scrollToBottom();
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
}
if(result != (-1)) break;
}
);

View File

@ -103,6 +103,28 @@ Q_IMPORT_PLUGIN(QICOPlugin)
#define _LAMEXP_MAKE_STR(STR) #STR
#define LAMEXP_MAKE_STR(STR) _LAMEXP_MAKE_STR(STR)
//String helper
#define CLEAN_OUTPUT_STRING(STR) do \
{ \
const char CTRL_CHARS[3] = { '\r', '\n', '\t' }; \
for(size_t i = 0; i < 3; i++) \
{ \
while(char *pos = strchr((STR), CTRL_CHARS[i])) *pos = char(0x20); \
} \
} \
while(0)
//String helper
#define TRIM_LEFT(STR) do \
{ \
const char WHITE_SPACE[4] = { char(0x20), '\r', '\n', '\t' }; \
for(size_t i = 0; i < 4; i++) \
{ \
while(*(STR) == WHITE_SPACE[i]) (STR)++; \
} \
} \
while(0)
///////////////////////////////////////////////////////////////////////////////
// TYPES
///////////////////////////////////////////////////////////////////////////////
@ -301,6 +323,9 @@ const lamexp_os_version_t lamexp_winver_win70 = {6,1};
const lamexp_os_version_t lamexp_winver_win80 = {6,2};
const lamexp_os_version_t lamexp_winver_win81 = {6,3};
//GURU MEDITATION
static const char *GURU_MEDITATION = "\n\nGURU MEDITATION !!!\n\n";
///////////////////////////////////////////////////////////////////////////////
// COMPILER INFO
///////////////////////////////////////////////////////////////////////////////
@ -684,78 +709,153 @@ static void lamexp_console_color(FILE* file, WORD attributes)
}
}
/*
* Output logging message to console
*/
static void lamexp_write_console(const int type, const char *msg)
{
__try
{
if(_isatty(_fileno(stderr)))
{
UINT oldOutputCP = GetConsoleOutputCP();
if(oldOutputCP != CP_UTF8) SetConsoleOutputCP(CP_UTF8);
switch(type)
{
case QtCriticalMsg:
case QtFatalMsg:
lamexp_console_color(stderr, FOREGROUND_RED | FOREGROUND_INTENSITY);
fprintf(stderr, GURU_MEDITATION);
fprintf(stderr, "%s\n", msg);
fflush(stderr);
break;
case QtWarningMsg:
lamexp_console_color(stderr, FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY);
fprintf(stderr, "%s\n", msg);
fflush(stderr);
break;
default:
lamexp_console_color(stderr, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY);
fprintf(stderr, "%s\n", msg);
fflush(stderr);
break;
}
lamexp_console_color(stderr, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED);
if(oldOutputCP != CP_UTF8) SetConsoleOutputCP(oldOutputCP);
}
}
__except(1)
{
/*ignore any exception that might occur here!*/
}
}
/*
* Output logging message to debugger
*/
static void lamexp_write_dbg_out(const int type, const char *msg)
{
const char *FORMAT = "[LameXP][%c] %s\n";
__try
{
char buffer[512];
const char* input = msg;
TRIM_LEFT(input);
switch(type)
{
case QtCriticalMsg:
case QtFatalMsg:
_snprintf_s(buffer, 512, _TRUNCATE, FORMAT, 'C', input);
break;
case QtWarningMsg:
_snprintf_s(buffer, 512, _TRUNCATE, FORMAT, 'W', input);
break;
default:
_snprintf_s(buffer, 512, _TRUNCATE, FORMAT, 'I', input);
break;
}
char *temp = &buffer[0];
CLEAN_OUTPUT_STRING(temp);
OutputDebugStringA(temp);
}
__except(1)
{
/*ignore any exception that might occur here!*/
}
}
/*
* Output logging message to logfile
*/
static void lamexp_write_logfile(const int type, const char *msg)
{
const char *FORMAT = "[%c][%04u] %s\r\n";
__try
{
if(g_lamexp_log_file)
{
char buffer[512];
strncpy_s(buffer, 512, msg, _TRUNCATE);
char *temp = &buffer[0];
TRIM_LEFT(temp);
CLEAN_OUTPUT_STRING(temp);
const unsigned int timestamp = static_cast<unsigned int>(_time64(NULL) % 3600I64);
switch(type)
{
case QtCriticalMsg:
case QtFatalMsg:
fprintf(g_lamexp_log_file, FORMAT, 'C', timestamp, temp);
break;
case QtWarningMsg:
fprintf(g_lamexp_log_file, FORMAT, 'W', timestamp, temp);
break;
default:
fprintf(g_lamexp_log_file, FORMAT, 'I', timestamp, temp);
break;
}
fflush(g_lamexp_log_file);
}
}
__except(1)
{
/*ignore any exception that might occur here!*/
}
}
/*
* Qt message handler
*/
void lamexp_message_handler(QtMsgType type, const char *msg)
{
static const char *GURU_MEDITATION = "\n\nGURU MEDITATION !!!\n\n";
if(msg == NULL) return;
if((!msg) || (!(msg[0])))
{
return;
}
QMutexLocker lock(&g_lamexp_message_mutex);
if(g_lamexp_log_file)
{
static char prefix[] = "DWCF";
int index = qBound(0, static_cast<int>(type), 3);
unsigned int timestamp = static_cast<unsigned int>(_time64(NULL) % 3600I64);
QString str = QString::fromUtf8(msg).trimmed().replace('\n', '\t');
fprintf(g_lamexp_log_file, "[%c][%04u] %s\r\n", prefix[index], timestamp, QUTF8(str));
fflush(g_lamexp_log_file);
lamexp_write_logfile(type, msg);
}
if(g_lamexp_console_attached)
{
UINT oldOutputCP = GetConsoleOutputCP();
if(oldOutputCP != CP_UTF8) SetConsoleOutputCP(CP_UTF8);
switch(type)
{
case QtCriticalMsg:
case QtFatalMsg:
fflush(stdout);
fflush(stderr);
lamexp_console_color(stderr, FOREGROUND_RED | FOREGROUND_INTENSITY);
fprintf(stderr, GURU_MEDITATION);
fprintf(stderr, "%s\n", msg);
fflush(stderr);
break;
case QtWarningMsg:
lamexp_console_color(stderr, FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY);
fprintf(stderr, "%s\n", msg);
fflush(stderr);
break;
default:
lamexp_console_color(stderr, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY);
fprintf(stderr, "%s\n", msg);
fflush(stderr);
break;
}
lamexp_console_color(stderr, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED);
if(oldOutputCP != CP_UTF8) SetConsoleOutputCP(oldOutputCP);
lamexp_write_console(type, msg);
}
else
{
QString temp("[LameXP][%1] %2");
switch(type)
{
case QtCriticalMsg:
case QtFatalMsg:
temp = temp.arg("C", QString::fromUtf8(msg));
break;
case QtWarningMsg:
temp = temp.arg("W", QString::fromUtf8(msg));
break;
default:
temp = temp.arg("I", QString::fromUtf8(msg));
break;
}
temp.replace("\n", "\t").append("\n");
OutputDebugStringA(temp.toLatin1().constData());
lamexp_write_dbg_out(type, msg);
}
if((type == QtCriticalMsg) || (type == QtFatalMsg))
@ -783,7 +883,7 @@ void lamexp_init_console(const QStringList &argv)
FILE *temp = NULL;
if(!_wfopen_s(&temp, logfile, L"wb"))
{
fprintf(temp, "%c%c%c", 0xEF, 0xBB, 0xBF);
fprintf(temp, "%c%c%c", char(0xEF), char(0xBB), char(0xBF));
g_lamexp_log_file = temp;
}
free(logfile);
@ -993,7 +1093,7 @@ static unsigned int __stdcall lamexp_debug_thread_proc(LPVOID lpParameter)
{
while(!lamexp_check_for_debugger())
{
Sleep(250);
Sleep(1250);
}
lamexp_fatal_exit(L"Not a debug build. Please unload debugger and try again!");
return 666;