-
-
Notifications
You must be signed in to change notification settings - Fork 285
Description
Hey,
I just ran the tool on a folder and got this. Doesn't do anything for about an hour now.
I think I found the problem: In the file "Compact.vb" the process "MyProcess_OuputDataReceived" checks for english output lines. This obviously fails when compact.exe returns german lines, which may pose an issue on other languages, too. Not sure how localized most of them are.
The proper translations seem to be:
"total bytes of data are stored in" -> "Datenbytes insgesamt werden in %i Bytes gespeichert"
"The compression ratio is" -> "Das Komprimierungsverh„ltnis ist" #note: "„" should be "ä"
"directories were uncompressed" -> "waren nicht komprimiert" #probably a bad translation on MS' part here, if this is supposed to indicate the number of files that have just been uncompressed. German means "files that were not compressed"
" Compressing files in" -> "Komprimieren der Dateien in"
"[OK]" -> "[OK]" #no change here
" are not compressed." -> "nicht komprimiert." #this will also trigger on the entry for "directories were uncompressed". Maybe move that entry into a nested if-condition here?
" Listing " ->" Auflisten von "
I'll try to fix this on my system and create a branch if I get it working. I haven't looked through the whole source to see if there's more checks for localized output. Also, I never worked with VB before >_>
To ultimately fix this and make it available on more languages, the string should probably be put into a database (XML or JSON?) and be loaded upon start of the program.
Getting the System Locale should be possible, although I've only done this in C# before and don't know how to do this in VB. Otherwise you can probably hack it together by checking the copyright notice in the output.