Components, Pas2JS: improved/simplified layout of 'Pas2JS webservers' dialog, cleaned up duplicate file from LPK, regenerated translations and updated Russian translation

git-svn-id: trunk@60026 -
This commit is contained in:
maxim 2019-01-07 16:37:00 +00:00
parent 6f819f1f40
commit 45498478c5
11 changed files with 48 additions and 52 deletions

View File

@ -10,26 +10,17 @@ object PasJSWebserverProcessesForm: TPasJSWebserverProcessesForm
OnCreate = FormCreate OnCreate = FormCreate
OnDestroy = FormDestroy OnDestroy = FormDestroy
OnShow = FormShow OnShow = FormShow
LCLVersion = '1.9.0.0' LCLVersion = '2.1.0.0'
object LLCount: TLabel
Left = 16
Height = 17
Top = 8
Width = 185
AutoSize = False
Caption = 'Number of webserver processes:'
ParentColor = False
end
object LCount: TLabel object LCount: TLabel
AnchorSideLeft.Control = LLCount AnchorSideLeft.Control = Owner
AnchorSideLeft.Side = asrBottom AnchorSideTop.Control = Owner
AnchorSideTop.Control = LLCount Left = 6
Left = 209 Height = 15
Height = 17 Top = 6
Top = 8 Width = 171
Width = 39 BorderSpacing.Left = 6
BorderSpacing.Left = 8 BorderSpacing.Top = 6
Caption = 'LCount' Caption = 'Number of webserver processes:'
ParentColor = False ParentColor = False
end end
object LVProcesses: TListView object LVProcesses: TListView
@ -40,15 +31,12 @@ object PasJSWebserverProcessesForm: TPasJSWebserverProcessesForm
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = Owner AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 8 Left = 6
Height = 189 Height = 195
Top = 48 Top = 44
Width = 628 Width = 632
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Left = 8 BorderSpacing.Around = 6
BorderSpacing.Top = 8
BorderSpacing.Right = 8
BorderSpacing.Bottom = 8
Columns = < Columns = <
item item
Caption = 'Port' Caption = 'Port'
@ -68,7 +56,7 @@ object PasJSWebserverProcessesForm: TPasJSWebserverProcessesForm
item item
AutoSize = True AutoSize = True
Caption = 'Additional info' Caption = 'Additional info'
Width = 88 Width = 94
end> end>
SmallImages = ILProcesses SmallImages = ILProcesses
StateImages = ILProcesses StateImages = ILProcesses
@ -76,15 +64,18 @@ object PasJSWebserverProcessesForm: TPasJSWebserverProcessesForm
ViewStyle = vsReport ViewStyle = vsReport
end end
object SBrefresh: TSpeedButton object SBrefresh: TSpeedButton
AnchorSideTop.Control = LLCount AnchorSideTop.Control = Owner
AnchorSideRight.Control = Owner AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 598 Left = 606
Height = 32 Height = 32
Top = 8 Top = 6
Width = 38 Width = 32
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
BorderSpacing.Right = 8 AutoSize = True
BorderSpacing.Around = 6
Constraints.MinHeight = 32
Constraints.MinWidth = 32
Glyph.Data = { Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100 36040000424D3604000000000000360000002800000010000000100000000100
2000000000000004000064000000640000000000000000000000FFFFFF00A465 2000000000000004000064000000640000000000000000000000FFFFFF00A465

View File

@ -14,7 +14,6 @@ type
TPasJSWebserverProcessesForm = class(TForm) TPasJSWebserverProcessesForm = class(TForm)
ILProcesses: TImageList; ILProcesses: TImageList;
LLCount: TLabel;
LCount: TLabel; LCount: TLabel;
LVProcesses: TListView; LVProcesses: TListView;
SBrefresh: TSpeedButton; SBrefresh: TSpeedButton;
@ -72,7 +71,7 @@ end;
procedure TPasJSWebserverProcessesForm.Localize; procedure TPasJSWebserverProcessesForm.Localize;
begin begin
LLCount.Caption:= SWebserversCount; LCount.Caption:=Format(SWebserversCount, ['0']);
Caption:=SWebserversCaption; Caption:=SWebserversCaption;
With LVProcesses do With LVProcesses do
begin begin
@ -145,10 +144,10 @@ begin
if (C=Nil) or (C.ServerInstances=Nil) or (C.ServerInstances.Count=0) then if (C=Nil) or (C.ServerInstances=Nil) or (C.ServerInstances.Count=0) then
begin begin
LVProcesses.Items.Clear; LVProcesses.Items.Clear;
LCount.Caption:='0'; LCount.Caption:=Format(SWebserversCount, ['0']);
exit; exit;
end; end;
LCount.Caption:=IntToStr(C.ServerInstances.Count); LCount.Caption:=Format(SWebserversCount, [IntToStr(C.ServerInstances.Count)]);
With LVProcesses.Items do With LVProcesses.Items do
try try
BeginUpdate; BeginUpdate;

View File

@ -52,7 +52,9 @@ msgid "Web server processes"
msgstr "Processus serveur Web" msgstr "Processus serveur Web"
#: strpas2jsdesign.swebserverscount #: strpas2jsdesign.swebserverscount
msgid "Number of webserver processes:" #, fuzzy,badformat
#| msgid "Number of webserver processes:"
msgid "Number of webserver processes: %s"
msgstr "Nombre de processus serveur Web :" msgstr "Nombre de processus serveur Web :"
#: strpas2jsdesign.swebserversextra #: strpas2jsdesign.swebserversextra

View File

@ -52,7 +52,9 @@ msgid "Web server processes"
msgstr "Webkiszolgáló folyamatai" msgstr "Webkiszolgáló folyamatai"
#: strpas2jsdesign.swebserverscount #: strpas2jsdesign.swebserverscount
msgid "Number of webserver processes:" #, fuzzy,badformat
#| msgid "Number of webserver processes:"
msgid "Number of webserver processes: %s"
msgstr "Webkiszolgáló folyamatainak száma:" msgstr "Webkiszolgáló folyamatainak száma:"
#: strpas2jsdesign.swebserversextra #: strpas2jsdesign.swebserversextra

View File

@ -42,7 +42,7 @@ msgid "Web server processes"
msgstr "" msgstr ""
#: strpas2jsdesign.swebserverscount #: strpas2jsdesign.swebserverscount
msgid "Number of webserver processes:" msgid "Number of webserver processes: %s"
msgstr "" msgstr ""
#: strpas2jsdesign.swebserversextra #: strpas2jsdesign.swebserversextra

View File

@ -56,7 +56,9 @@ msgid "Web server processes"
msgstr "Processos servidores web" msgstr "Processos servidores web"
#: strpas2jsdesign.swebserverscount #: strpas2jsdesign.swebserverscount
msgid "Number of webserver processes:" #, fuzzy,badformat
#| msgid "Number of webserver processes:"
msgid "Number of webserver processes: %s"
msgstr "Número de processos servidores web:" msgstr "Número de processos servidores web:"
#: strpas2jsdesign.swebserversextra #: strpas2jsdesign.swebserversextra

View File

@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Language: ru\n" "Language: ru\n"
"X-Generator: Poedit 1.8.5\n" "X-Generator: Poedit 1.7.7\n"
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
msgid "A pas2js program running in node.js" msgid "A pas2js program running in node.js"
@ -52,8 +52,8 @@ msgid "Web server processes"
msgstr "Процессы веб-серверов" msgstr "Процессы веб-серверов"
#: strpas2jsdesign.swebserverscount #: strpas2jsdesign.swebserverscount
msgid "Number of webserver processes:" msgid "Number of webserver processes: %s"
msgstr "Количество процессов веб-серверов:" msgstr "Количество процессов веб-серверов: %s"
#: strpas2jsdesign.swebserversextra #: strpas2jsdesign.swebserversextra
msgid "Additional info" msgid "Additional info"

View File

@ -54,7 +54,9 @@ msgid "Web server processes"
msgstr "Процеси веб-серверів" msgstr "Процеси веб-серверів"
#: strpas2jsdesign.swebserverscount #: strpas2jsdesign.swebserverscount
msgid "Number of webserver processes:" #, fuzzy,badformat
#| msgid "Number of webserver processes:"
msgid "Number of webserver processes: %s"
msgstr "Кількість процесів веб-серверів:" msgstr "Кількість процесів веб-серверів:"
#: strpas2jsdesign.swebserversextra #: strpas2jsdesign.swebserversextra

View File

@ -53,7 +53,9 @@ msgid "Web server processes"
msgstr "Web服务器进程(server processes)" msgstr "Web服务器进程(server processes)"
#: strpas2jsdesign.swebserverscount #: strpas2jsdesign.swebserverscount
msgid "Number of webserver processes:" #, fuzzy,badformat
#| msgid "Number of webserver processes:"
msgid "Number of webserver processes: %s"
msgstr "Web服务器进程(server processes)的数量" msgstr "Web服务器进程(server processes)的数量"
#: strpas2jsdesign.swebserversextra #: strpas2jsdesign.swebserversextra

View File

@ -18,7 +18,7 @@
<Description Value="Adds a Lazarus project for pas2js browser applications."/> <Description Value="Adds a Lazarus project for pas2js browser applications."/>
<License Value="GPL-2"/> <License Value="GPL-2"/>
<Version Major="1" Release="1"/> <Version Major="1" Release="1"/>
<Files Count="10"> <Files Count="9">
<Item1> <Item1>
<Filename Value="pjsdsgnregister.pas"/> <Filename Value="pjsdsgnregister.pas"/>
<HasRegisterProc Value="True"/> <HasRegisterProc Value="True"/>
@ -56,10 +56,6 @@
<Filename Value="pjsprojectoptions.pp"/> <Filename Value="pjsprojectoptions.pp"/>
<UnitName Value="pjsprojectoptions"/> <UnitName Value="pjsprojectoptions"/>
</Item9> </Item9>
<Item10>
<Filename Value="pjsprojectoptions.pp"/>
<UnitName Value="pjsprojectoptions"/>
</Item10>
</Files> </Files>
<i18n> <i18n>
<EnableI18N Value="True"/> <EnableI18N Value="True"/>

View File

@ -20,7 +20,7 @@ Resourcestring
SWebserversBaseDir = 'Root directory'; SWebserversBaseDir = 'Root directory';
SWebserversProject = 'Project'; SWebserversProject = 'Project';
SWebserversExtra = 'Additional info'; SWebserversExtra = 'Additional info';
SWebserversCount = 'Number of webserver processes:'; SWebserversCount = 'Number of webserver processes: %s';
SWebserversCaption = 'Web server processes'; SWebserversCaption = 'Web server processes';
// Dynamic texts webservers form // Dynamic texts webservers form