printer4lazarus: added resourcestrings for cups setup dlg

git-svn-id: trunk@49341 -
This commit is contained in:
mattias 2015-06-16 09:16:18 +00:00
parent da6e82de8f
commit fc378e05ef
7 changed files with 206 additions and 59 deletions

2
.gitattributes vendored
View File

@ -3255,9 +3255,11 @@ components/printers/images/printersdlgs.txt svneol=native#text/plain
components/printers/images/tpagesetupdialog.png -text svneol=unset#image/png
components/printers/images/tprintdialog.png -text svneol=unset#image/png
components/printers/images/tprintersetupdialog.png -text svneol=unset#image/png
components/printers/languages/printer4lazstrconst.po svneol=native#text/plain
components/printers/osprinters.pas svneol=native#text/pascal
components/printers/printer4lazarus.lpk svneol=native#text/pascal
components/printers/printer4lazarus.pas svneol=native#text/pascal
components/printers/printer4lazstrconst.pas svneol=native#text/plain
components/printers/printersdlgs.pp svneol=native#text/pascal
components/printers/printersdlgs.res -text
components/printers/qt/qtprinters.inc svneol=native#text/pascal

View File

@ -0,0 +1,75 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: printer4lazstrconst.p4lrsadvanced
msgid "Advanced"
msgstr ""
#: printer4lazstrconst.p4lrsbanners
msgid "Banners"
msgstr ""
#: printer4lazstrconst.p4lrscancel
msgid "Cancel"
msgstr ""
#: printer4lazstrconst.p4lrsend
msgid "End"
msgstr ""
#: printer4lazstrconst.p4lrsgeneral
msgid "General"
msgstr ""
#: printer4lazstrconst.p4lrslandscape
msgid "Landscape"
msgstr ""
#: printer4lazstrconst.p4lrsmargins
msgid "Margins"
msgstr ""
#: printer4lazstrconst.p4lrsok
msgid "Ok"
msgstr ""
#: printer4lazstrconst.p4lrsorientation
msgid "Orientation"
msgstr ""
#: printer4lazstrconst.p4lrspagespersheet
msgid "Pages per sheet"
msgstr ""
#: printer4lazstrconst.p4lrspapersize
msgid "Paper size"
msgstr ""
#: printer4lazstrconst.p4lrspapersource
msgid "Paper source"
msgstr ""
#: printer4lazstrconst.p4lrspapertype
msgid "Paper type"
msgstr ""
#: printer4lazstrconst.p4lrsportrait
msgid "Portrait"
msgstr ""
#: printer4lazstrconst.p4lrsresolution
msgid "Resolution"
msgstr ""
#: printer4lazstrconst.p4lrsreverselandscape
msgid "Reverse landscape"
msgstr ""
#: printer4lazstrconst.p4lrsreverseportrait
msgid "Reverse portrait"
msgstr ""
#: printer4lazstrconst.p4lrsstart
msgid "Start"
msgstr ""

View File

@ -30,7 +30,7 @@
<License Value="LGPL
"/>
<Version Minor="5"/>
<Files Count="38">
<Files Count="39">
<Item1>
<Filename Value="printersdlgs.pp"/>
<HasRegisterProc Value="True"/>
@ -196,7 +196,15 @@
<AddToUsesPkgSection Value="False"/>
<UnitName Value="cocoaprintcanvas"/>
</Item38>
<Item39>
<Filename Value="printer4lazstrconst.pas"/>
<UnitName Value="printer4lazstrconst"/>
</Item39>
</Files>
<i18n>
<EnableI18N Value="True"/>
<OutDir Value="languages"/>
</i18n>
<RequiredPkgs Count="1">
<Item1>
<PackageName Value="cairocanvas_pkg"/>

View File

@ -7,7 +7,7 @@ unit Printer4Lazarus;
interface
uses
PrintersDlgs, OSPrinters, LazarusPackageIntf;
PrintersDlgs, OSPrinters, Printer4LazStrConst, LazarusPackageIntf;
implementation

View File

@ -0,0 +1,40 @@
{
*****************************************************************************
This file is part of the Lazarus Component Library (LCL)
See the file COPYING.modifiedLGPL.txt, included in this distribution,
for details about the license.
*****************************************************************************
Abstract: Resourcestrings.
}
unit Printer4LazStrConst;
{$mode objfpc}{$H+}
interface
resourcestring
p4lrsCancel = 'Cancel';
p4lrsOk = 'Ok';
p4lrsGeneral = 'General';
p4lrsPaperSize = 'Paper size';
p4lrsPaperType = 'Paper type';
p4lrsPaperSource = 'Paper source';
p4lrsResolution = 'Resolution';
p4lrsOrientation = 'Orientation';
p4lrsPortrait = 'Portrait';
p4lrsLandscape = 'Landscape';
p4lrsReverseLandscape = 'Reverse landscape';
p4lrsReversePortrait = 'Reverse portrait';
p4lrsBanners = 'Banners';
p4lrsStart = 'Start';
p4lrsEnd = 'End';
p4lrsPagesPerSheet = 'Pages per sheet';
p4lrsMargins = 'Margins';
p4lrsAdvanced = 'Advanced';
implementation
end.

View File

@ -1,7 +1,7 @@
object dlgpropertiesprinter: Tdlgpropertiesprinter
Left = 379
Left = 363
Height = 464
Top = 53
Top = 180
Width = 457
ActiveControl = Notebook1
Caption = 'dlgpropertiesprinter'
@ -11,7 +11,7 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
OnDestroy = FormDestroy
OnShow = dlgpropertiesprinterSHOW
Position = poScreenCenter
LCLVersion = '0.9.31'
LCLVersion = '1.5'
object Panel1: TPanel
Left = 0
Height = 41
@ -61,67 +61,67 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
TabOrder = 1
object pgGeneral: TTabSheet
Caption = 'General'
ClientHeight = 397
ClientWidth = 449
ClientHeight = 394
ClientWidth = 453
object labPaperSize: TLabel
Left = 15
Height = 14
Height = 15
Top = 19
Width = 50
Width = 56
Caption = 'Paper size'
ParentColor = False
end
object labPaperType: TLabel
Left = 15
Height = 14
Height = 15
Top = 55
Width = 54
Width = 60
Caption = 'Paper type'
ParentColor = False
end
object labPaperSrc: TLabel
Left = 15
Height = 14
Height = 15
Top = 92
Width = 64
Width = 72
Caption = 'Paper source'
ParentColor = False
end
object labResolution: TLabel
Left = 15
Height = 14
Height = 15
Top = 125
Width = 51
Width = 59
Caption = 'Resolution'
ParentColor = False
end
object cbPaperSize: TComboBox
Left = 130
Height = 21
Height = 29
Top = 9
Width = 310
DropDownCount = 10
ItemHeight = 13
ItemHeight = 0
OnKeyPress = cbPaperSizeKEYPRESS
Style = csDropDownList
TabOrder = 0
end
object cbPaperType: TComboBox
Left = 130
Height = 21
Height = 29
Top = 45
Width = 310
ItemHeight = 13
ItemHeight = 0
OnKeyPress = cbPaperSizeKEYPRESS
Style = csDropDownList
TabOrder = 1
end
object cbPaperSrc: TComboBox
Left = 130
Height = 21
Height = 29
Top = 81
Width = 310
ItemHeight = 13
ItemHeight = 0
OnKeyPress = cbPaperSizeKEYPRESS
Style = csDropDownList
TabOrder = 3
@ -132,7 +132,7 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
Top = 162
Width = 233
Caption = ' Orientation '
ClientHeight = 101
ClientHeight = 102
ClientWidth = 229
TabOrder = 5
object imgOrientation: TImage
@ -143,9 +143,9 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object rbPortrait: TRadioButton
Left = 7
Height = 17
Height = 24
Top = 5
Width = 54
Width = 69
Caption = 'Portrait'
Checked = True
DragCursor = crDefault
@ -155,9 +155,9 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object rbLandscape: TRadioButton
Left = 7
Height = 17
Height = 24
Top = 29
Width = 69
Width = 83
Caption = 'Landscape'
DragCursor = crDefault
OnClick = rbPortraitCLICK
@ -165,9 +165,9 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object rbrev_Landscape: TRadioButton
Left = 7
Height = 17
Height = 24
Top = 53
Width = 109
Width = 128
Caption = 'Reverse landscape'
DragCursor = crDefault
OnClick = rbPortraitCLICK
@ -175,9 +175,9 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object rbrev_portrait: TRadioButton
Left = 7
Height = 17
Height = 24
Top = 77
Width = 97
Width = 117
Caption = 'Reverse portrait'
DragCursor = crDefault
OnClick = rbPortraitCLICK
@ -190,41 +190,41 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
Top = 290
Width = 427
Caption = ' Banners '
ClientHeight = 78
ClientHeight = 79
ClientWidth = 423
TabOrder = 2
object labBanStart: TLabel
Left = 6
Height = 14
Height = 15
Top = 9
Width = 25
Width = 27
Caption = 'Start'
ParentColor = False
end
object labBanEnd: TLabel
Left = 6
Height = 14
Height = 15
Top = 49
Width = 19
Width = 21
Caption = 'End'
ParentColor = False
end
object cbBanStart: TComboBox
Left = 94
Height = 21
Height = 29
Top = 1
Width = 317
ItemHeight = 13
ItemHeight = 0
OnKeyPress = cbPaperSizeKEYPRESS
Style = csDropDownList
TabOrder = 0
end
object cbBanEnd: TComboBox
Left = 94
Height = 21
Height = 29
Top = 41
Width = 317
ItemHeight = 13
ItemHeight = 0
OnKeyPress = cbPaperSizeKEYPRESS
Style = csDropDownList
TabOrder = 1
@ -236,7 +236,7 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
Top = 163
Width = 185
Caption = ' Pages per sheet '
ClientHeight = 100
ClientHeight = 101
ClientWidth = 181
TabOrder = 4
object imgPageSheet: TImage
@ -247,9 +247,9 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object rbSheet1: TRadioButton
Left = 6
Height = 17
Height = 24
Top = 5
Width = 24
Width = 33
Caption = '1'
Checked = True
DragCursor = crDefault
@ -259,9 +259,9 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object rbSheet2: TRadioButton
Left = 6
Height = 17
Height = 24
Top = 29
Width = 24
Width = 33
Caption = '2'
DragCursor = crDefault
OnClick = rbPortraitCLICK
@ -269,9 +269,9 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object rbSheet4: TRadioButton
Left = 6
Height = 17
Height = 24
Top = 53
Width = 24
Width = 33
Caption = '4'
DragCursor = crDefault
OnClick = rbPortraitCLICK
@ -280,10 +280,10 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object cbResolution: TComboBox
Left = 130
Height = 21
Height = 29
Top = 117
Width = 310
ItemHeight = 13
ItemHeight = 0
OnKeyPress = cbPaperSizeKEYPRESS
Style = csDropDownList
TabOrder = 6
@ -294,13 +294,15 @@ object dlgpropertiesprinter: Tdlgpropertiesprinter
end
object pgAdvanced: TTabSheet
Caption = 'Advanced'
ClientHeight = 397
ClientWidth = 449
ClientHeight = 394
ClientWidth = 453
object sb: TScrollBox
Left = 0
Height = 397
Top = 0
Width = 449
HorzScrollBar.Page = 1
VertScrollBar.Page = 1
Align = alClient
TabOrder = 0
end

View File

@ -30,7 +30,7 @@ interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ComCtrls, ExtCtrls,
StdCtrls, Buttons, Printers, CupsLCL, OsPrinters in '../osprinters.pas', LCLProc,
CupsDyn;
CupsDyn, Printer4LazStrConst;
type
@ -70,10 +70,10 @@ type
rbPortrait: TRADIOBUTTON;
sb: TScrollBox;
procedure FormDestroy(Sender: TObject);
procedure rbPortraitCLICK(Sender: TObject);
procedure cbPaperSizeKEYPRESS(Sender: TObject; var Key: Char);
procedure dlgpropertiesprinterCREATE(Sender: TObject);
procedure dlgpropertiesprinterSHOW(Sender: TObject);
procedure rbPortraitClick(Sender: TObject);
procedure cbPaperSizeKeypress(Sender: TObject; var Key: Char);
procedure dlgpropertiesprinterCreate(Sender: TObject);
procedure dlgpropertiesprinterShow(Sender: TObject);
private
{ private declarations }
procedure RefreshInfos;
@ -98,13 +98,13 @@ implementation
Type
THackCUPSPrinter=Class(TCUPSPrinter);
procedure Tdlgpropertiesprinter.dlgpropertiesprinterSHOW(Sender: TObject);
procedure Tdlgpropertiesprinter.dlgpropertiesprinterShow(Sender: TObject);
begin
if Sender=nil then ;
RefreshInfos;
end;
procedure Tdlgpropertiesprinter.cbPaperSizeKEYPRESS(Sender: TObject;
procedure Tdlgpropertiesprinter.cbPaperSizeKeypress(Sender: TObject;
var Key: Char);
begin
if Sender=nil then ;
@ -338,14 +338,34 @@ begin
end;
//Initialization
procedure Tdlgpropertiesprinter.dlgpropertiesprinterCREATE(Sender: TObject);
procedure Tdlgpropertiesprinter.dlgpropertiesprinterCreate(Sender: TObject);
begin
if Sender=nil then ;
Notebook1.PageIndex:=0;
btnCancel1.Caption := p4lrsCancel;
btnOk.Caption := p4lrsOk;
pgGeneral.Caption := p4lrsGeneral;
labPaperSize.Caption := p4lrsPaperSize;
labPaperType.Caption := p4lrsPaperType;
labPaperSrc.Caption := p4lrsPaperSource;
labResolution.Caption := p4lrsResolution;
gbOrientation.Caption := ' '+p4lrsOrientation+' ';
rbPortrait.Caption := p4lrsPortrait;
rbLandscape.Caption := p4lrsLandscape;
rbrev_Landscape.Caption := p4lrsReverseLandscape;
rbrev_portrait.Caption := p4lrsReversePortrait;
gbBanners.Caption := ' '+p4lrsBanners+' ';
labBanStart.Caption := p4lrsStart;
labBanEnd.Caption := p4lrsEnd;
gbPagesSheet.Caption := ' '+p4lrsPagesPerSheet+' ';
pgMargins.Caption := p4lrsMargins;
pgAdvanced.Caption := p4lrsAdvanced;
SetupOptions;
end;
procedure Tdlgpropertiesprinter.rbPortraitCLICK(Sender: TObject);
procedure Tdlgpropertiesprinter.rbPortraitClick(Sender: TObject);
begin
if Sender=nil then ;
RefreshInfos;