View Single Post
  #1145  
Old 31-05-2022, 19:04
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
I really think ASIS needs a little fix in the source code.
The label "MB" in Inno Setup languages is not constant in all languages.
Edit ASIS "Script.iss" and add the lines highlighted in RED (Place the lines in the same order as below).
Code:
function FormatDiskSpaceLabel(Labl: String; Size: Extended): String;
begin
  Result := Labl;
  StringChangeEx(Result, '[mb] MBs', '[size]', True);
  StringChangeEx(Result, '[mb] Мб', '[size]', True);
  StringChangeEx(Result, '[mb] Mo', '[size]', True);
  StringChangeEx(Result, '[mb] MB', '[size]', True);
  StringChangeEx(Result, '[size]', FormatBytes(Size, 2, False), True);
end;
Reply With Quote
The Following 5 Users Say Thank You to Cesar82 For This Useful Post:
fabrieunko (31-05-2022), Gehrman (01-06-2022), KaktoR (01-06-2022), mausschieber (01-06-2022), Titeuf (08-06-2022)