Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.


 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius  
AuthorPost
Frede
Member
 

Joined: Wed Sep 5th, 2007
Location:  
Posts: 312
Status: 
Offline
SLMake is great to automate the scan and builds etc. but it does not set ERRORLEVEL as it should. The only case when it returns a nonzero value is when the project does not exist. If the project exist it always return 0 (success). This is regardless if it cold not load the files in the project or failed to generate localized versions or whatever. This means that it's not possible to check the success with a build tool or batch file since errorlevel really does not tell you anything useful. Your only option is to check the output log file for errors and that file can be very big if you have a big project. An easy implementation would be to have it return 1 if there were any errors and 2 if there were only warnings or similar. That way you could be notified when something goes wrong and you can review the log for details.

Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
I checked the logic. SlMake return 0 if succesful and there are not error level item on the log. It returns 1 if there was an error (e.g. missing file) or there is at least one error level item on the log.

Whart is the case where you have an error but SlMake does not return 1. Can you send me the log file, please

support (at) sisulizer.fi

Jaakko

Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
I found a bug in SlMake's error level handling. I fixed this in 1.6.25.

This is how it works now:

SlMake returns 0 if there are no error or warning items in the log.

SlMake returns 1 if there is at least on error item in the log.

SlMake returns 2 if there is at least on warning item in the log.

Jaakko

Frede
Member
 

Joined: Wed Sep 5th, 2007
Location:  
Posts: 312
Status: 
Offline
Great, I will test it asap when the new build is out.



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize