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.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius
New Topic Reply Printer Friendly
Have SLMake generate proper ERRORLEVEL exit code - Wish list for software localization tool - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Fri Apr 18th, 2008 12:27 pm
PM Private Upload Quote Reply
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.

Back To Top PM Private Upload Quote Reply

 Posted: Wed Apr 23rd, 2008 01:57 am
PM Private Upload Quote Reply
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



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Apr 23rd, 2008 02:22 am
PM Private Upload Quote Reply
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



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Apr 23rd, 2008 05:42 am
PM Private Upload Quote Reply
Frede
Member
 

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

Back To Top PM Private Upload Quote Reply

Current time is 06:21 pm  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Wish list for software localization tool > Have SLMake generate proper ERRORLEVEL exit code



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