diff --git a/lcl/printers.pas b/lcl/printers.pas index b9cb33e5e7..0688c6c222 100644 --- a/lcl/printers.pas +++ b/lcl/printers.pas @@ -465,7 +465,7 @@ begin begin i:=DoSetPrinter(aName); if i<0 then - raise EPrinter.Create(Format('Printer "%s" does''t exists.',[aName])); + raise EPrinter.Create(Format('Printer "%s" doesn''t exist.',[aName])); fPrinterIndex:=i; end; end; @@ -502,9 +502,9 @@ begin if Printing<>Value then begin if Value then - raise EPrinter.Create('Printer not printing') + raise EPrinter.Create('Printer is not printing') else - raise Eprinter.Create('Printer print'); + raise Eprinter.Create('Printer is printing'); end; end; @@ -641,7 +641,7 @@ begin Result:=1; end; -//Set the copies numbers +//Set copies number procedure TPrinter.SetCopies(AValue: Integer); begin CheckPrinting(False); @@ -649,7 +649,7 @@ begin if Printers.Count>0 then DoSetCopies(aValue) else - raise EPrinter.Create('No printer found.'); + raise EPrinter.Create('No printers found.'); end; procedure TPrinter.SetOrientation(const AValue: TPrinterOrientation); @@ -658,7 +658,7 @@ begin DoSetOrientation(aValue); end; -//Set the selected printer +//Set selected printer procedure TPrinter.SetPrinterIndex(AValue: integer); Var aName : String; begin @@ -672,11 +672,11 @@ begin if (AValue>=0) and (AValue=0 then Result := TmpPaperRect else - raise EPrinter.Create(Format('The paper "%s" has no defined rectangle ! ',[aName])); + raise EPrinter.Create(Format('The paper "%s" has no defined rectangle!',[aName])); end - else raise EPrinter.Create(Format('Paper "%s" not supported !',[aName])); + else raise EPrinter.Create(Format('Paper "%s" not supported!',[aName])); end; procedure TPaperSize.CheckSupportedPapers; @@ -1030,7 +1030,7 @@ end; constructor TPaperSize.Create(aOwner: TPrinter); begin if not assigned(aOwner) then - raise Exception.Create('TMediaSize.Create, aOwner must be defined !'); + raise Exception.Create('TMediaSize.Create, aOwner must be defined!'); Inherited Create; fLastPrinterIndex:=-2;