![]() |
Decimal Delimiter
When installer shows space required/space availabe it use "." as decimal delimiter. For instance: "Space required 13.1Mb"
It shows "." regardless of system regional settings. How can I make it use system's decimal delimiter rather then just "."? |
Is it really that big of a deal?
anyways, there is already a bug report about it http://sourceforge.net/tracker/index...49&atid=373085 |
Our QA team reported it, therefore, I have to investigate.
Thanks! Hope it will be fixed sometimes soon. |
You might be able to set the label text yourself, using SectionGetSize to get the size of a section, adding up for each selected section, and rounding that off to megabytes with decimals - with a comma for a decimal - yourself.. if it's something that can't wait for a fix in NSIS itself
|
Yes, I can change label text and can set whatver value I want. But I would be unable to change decimal delimiter in the number.
|
Edit: All's well - Here's what I have now...
code: For any devs reading, SectionGetSize without the SectionSetSize returns 8039 - I've verified that the correct (7.8something MB) file is what is included in the installer. |
That is the size in KB.
|
Quote:
code: Should read kbytes, then? I'll adjust my post above - should be a simple mult by 1024 (presuming KiB and not KB)? Edit: Yes - and done. |
Keep in mind that using IntOp only works up to 2GB of required space. To be sure your code works for future projects, you might consider using the math plugin:
PHP Code:
Edit: Wait, I think I'm talking bullshit. Size in kilobytes, and all. >__< |
The "required size" output on standard dialog constist of "LABEL" and "NUMBER":
"Required Space" "8.3MB" Left part can be set as a string. OK. Right part can be set only as a number. There are no way to change the format of the number. You cannot delete this number from the dialog and only left the label (wich can be edited as shown above). |
er? have you tried the above code? That should replace the label and number; which should be the exact same control. Perhaps you're using a different UI, though? my example uses MUI
|
deleted
|
Thanks. Now I got it. Yes, it works.
However, we decided to defer this issue for now, and wait for NSIS team fix, as it require to many code for such a small issue (we also need to show space available... bla-bla-bla). |
fair 'nuff :)
|
| All times are GMT. The time now is 17:59. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.