mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 15:49:10 +02:00
FPCUnit:
1) improved localization of FPCUnitIDE. Patch from Marcelo B Paula. Part of bug #16484. 2) Added FPCUnitIDE translations: Portuguese (from Marcelo B Paula) and Russian. git-svn-id: trunk@25468 -
This commit is contained in:
parent
01193ff9e0
commit
8f220d96bc
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -784,7 +784,11 @@ components/fpcunit/ide/fpcunitproject1.pas svneol=native#text/plain
|
|||||||
components/fpcunit/ide/languages/fpcunitlazideintf.pb.po svneol=native#text/plain
|
components/fpcunit/ide/languages/fpcunitlazideintf.pb.po svneol=native#text/plain
|
||||||
components/fpcunit/ide/languages/fpcunitlazideintf.po svneol=native#text/plain
|
components/fpcunit/ide/languages/fpcunitlazideintf.po svneol=native#text/plain
|
||||||
components/fpcunit/ide/languages/fpcunitlazideintf.ru.po svneol=native#text/plain
|
components/fpcunit/ide/languages/fpcunitlazideintf.ru.po svneol=native#text/plain
|
||||||
|
components/fpcunit/ide/languages/strtestcaseopts.pb.po svneol=native#text/plain
|
||||||
|
components/fpcunit/ide/languages/strtestcaseopts.po svneol=native#text/plain
|
||||||
|
components/fpcunit/ide/languages/strtestcaseopts.ru.po svneol=native#text/plain
|
||||||
components/fpcunit/ide/lib/README.txt svneol=native#text/plain
|
components/fpcunit/ide/lib/README.txt svneol=native#text/plain
|
||||||
|
components/fpcunit/ide/strtestcaseopts.pas svneol=native#text/pascal
|
||||||
components/fpcunit/ide/testcaseopts.lfm svneol=native#text/plain
|
components/fpcunit/ide/testcaseopts.lfm svneol=native#text/plain
|
||||||
components/fpcunit/ide/testcaseopts.pas svneol=native#text/pascal
|
components/fpcunit/ide/testcaseopts.pas svneol=native#text/pascal
|
||||||
components/fpcunit/languages/guitestrunner.pb.po svneol=native#text/plain
|
components/fpcunit/languages/guitestrunner.pb.po svneol=native#text/plain
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
</Other>
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
<Version Minor="1"/>
|
<Version Minor="1"/>
|
||||||
<Files Count="2">
|
<Files Count="3">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="fpcunitlazideintf.pas"/>
|
<Filename Value="fpcunitlazideintf.pas"/>
|
||||||
<HasRegisterProc Value="True"/>
|
<HasRegisterProc Value="True"/>
|
||||||
@ -26,6 +26,10 @@
|
|||||||
<Filename Value="fpcunitproject1.inc"/>
|
<Filename Value="fpcunitproject1.inc"/>
|
||||||
<Type Value="Include"/>
|
<Type Value="Include"/>
|
||||||
</Item2>
|
</Item2>
|
||||||
|
<Item3>
|
||||||
|
<Filename Value="strtestcaseopts.pas"/>
|
||||||
|
<UnitName Value="strtestcaseopts"/>
|
||||||
|
</Item3>
|
||||||
</Files>
|
</Files>
|
||||||
<i18n>
|
<i18n>
|
||||||
<EnableI18N Value="True"/>
|
<EnableI18N Value="True"/>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ This file was automatically created by Lazarus. Do not edit!
|
{ Este arquivo foi automaticamente criado pelo Lazarus. Não edite!
|
||||||
This source is only used to compile and install the package.
|
Este fonte é usado apenas para compilar e instalar o pacote.
|
||||||
}
|
}
|
||||||
|
|
||||||
unit fpcunitide;
|
unit fpcunitide;
|
||||||
@ -7,15 +7,15 @@ unit fpcunitide;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
FPCUnitLazIDEIntf, LazarusPackageIntf;
|
FPCUnitLazIDEIntf, strtestcaseopts, LazarusPackageIntf;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
procedure Register;
|
procedure Register;
|
||||||
begin
|
begin
|
||||||
RegisterUnit('FPCUnitLazIDEIntf',@FPCUnitLazIDEIntf.Register);
|
RegisterUnit('FPCUnitLazIDEIntf', @FPCUnitLazIDEIntf.Register);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
RegisterPackage('fpcunitide',@Register);
|
RegisterPackage('fpcunitide', @Register);
|
||||||
end.
|
end.
|
||||||
|
@ -32,7 +32,7 @@ unit FPCUnitLazIDEIntf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LazIDEIntf, ProjectIntf, Controls, Forms,testcaseopts;
|
Classes, SysUtils, LazIDEIntf, ProjectIntf, Controls, Forms, testcaseopts;
|
||||||
|
|
||||||
type
|
type
|
||||||
{ TFPCUnitApplicationDescriptor }
|
{ TFPCUnitApplicationDescriptor }
|
||||||
@ -298,7 +298,7 @@ begin
|
|||||||
+'end;'+le;
|
+'end;'+le;
|
||||||
Result:='procedure '+TestCaseName+'.TestHookUp;'+le
|
Result:='procedure '+TestCaseName+'.TestHookUp;'+le
|
||||||
+'begin'+le
|
+'begin'+le
|
||||||
+' Fail('+sWriteYourOwnTest+');'+le
|
+' Fail('+QuotedStr(sWriteYourOwnTest)+');'+le
|
||||||
+'end;'+le
|
+'end;'+le
|
||||||
+le
|
+le
|
||||||
+setupMethod
|
+setupMethod
|
||||||
|
41
components/fpcunit/ide/languages/strtestcaseopts.pb.po
Normal file
41
components/fpcunit/ide/languages/strtestcaseopts.pb.po
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"POT-Creation-Date: \n"
|
||||||
|
"PO-Revision-Date: \n"
|
||||||
|
"Last-Translator: Marcelo Borges de Paula\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sbtncreate
|
||||||
|
msgid "Create unit"
|
||||||
|
msgstr "Criar unidade"
|
||||||
|
|
||||||
|
#: strtestcaseopts.schksetup
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Create Setup Menthod"
|
||||||
|
msgid "Create Setup Method"
|
||||||
|
msgstr "Criar Método Configuração"
|
||||||
|
|
||||||
|
#: strtestcaseopts.schktear
|
||||||
|
msgid "Create TearDown method"
|
||||||
|
msgstr "Criar Método \"TearDown\""
|
||||||
|
|
||||||
|
#: strtestcaseopts.sfrmtest
|
||||||
|
msgid "TestCase Options"
|
||||||
|
msgstr "Opções Testes Unitários"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sgrpfixture
|
||||||
|
msgid "Fixture"
|
||||||
|
msgstr "Combinações"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sgrpnames
|
||||||
|
msgid "Names"
|
||||||
|
msgstr "Nomes"
|
||||||
|
|
||||||
|
#: strtestcaseopts.slbldefault
|
||||||
|
msgid "Default Test Name"
|
||||||
|
msgstr "Nome Padrão do Teste"
|
||||||
|
|
31
components/fpcunit/ide/languages/strtestcaseopts.po
Normal file
31
components/fpcunit/ide/languages/strtestcaseopts.po
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sbtncreate
|
||||||
|
msgid "Create unit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: strtestcaseopts.schksetup
|
||||||
|
msgid "Create Setup Method"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: strtestcaseopts.schktear
|
||||||
|
msgid "Create TearDown method"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: strtestcaseopts.sfrmtest
|
||||||
|
msgid "TestCase Options"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: strtestcaseopts.sgrpfixture
|
||||||
|
msgid "Fixture"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: strtestcaseopts.sgrpnames
|
||||||
|
msgid "Names"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: strtestcaseopts.slbldefault
|
||||||
|
msgid "Default Test Name"
|
||||||
|
msgstr ""
|
||||||
|
|
39
components/fpcunit/ide/languages/strtestcaseopts.ru.po
Normal file
39
components/fpcunit/ide/languages/strtestcaseopts.ru.po
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"POT-Creation-Date: \n"
|
||||||
|
"PO-Revision-Date: \n"
|
||||||
|
"Last-Translator: Maxim Ganetsky <maxkill@mail.ru>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sbtncreate
|
||||||
|
msgid "Create unit"
|
||||||
|
msgstr "Создать модуль"
|
||||||
|
|
||||||
|
#: strtestcaseopts.schksetup
|
||||||
|
msgid "Create Setup Method"
|
||||||
|
msgstr "Создать настраивающий метод"
|
||||||
|
|
||||||
|
#: strtestcaseopts.schktear
|
||||||
|
msgid "Create TearDown method"
|
||||||
|
msgstr "Создать завершающий метод"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sfrmtest
|
||||||
|
msgid "TestCase Options"
|
||||||
|
msgstr "Параметры теста"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sgrpfixture
|
||||||
|
msgid "Fixture"
|
||||||
|
msgstr "Общие методы"
|
||||||
|
|
||||||
|
#: strtestcaseopts.sgrpnames
|
||||||
|
msgid "Names"
|
||||||
|
msgstr "Имена"
|
||||||
|
|
||||||
|
#: strtestcaseopts.slbldefault
|
||||||
|
msgid "Default Test Name"
|
||||||
|
msgstr "Имя теста по умолчанию"
|
||||||
|
|
39
components/fpcunit/ide/strtestcaseopts.pas
Normal file
39
components/fpcunit/ide/strtestcaseopts.pas
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ TestCase Opions Resource Strings
|
||||||
|
|
||||||
|
Copyright (C) 2010 Marcelo Borges de Paula
|
||||||
|
|
||||||
|
Estes fontes são software livre; você pode redistribuir e/ou modificá-los
|
||||||
|
sob os termos da GNU Library General Public License como publicada pela Free
|
||||||
|
Software Foundation; ou a versão 2 da Licença, ou (a sua escolha) qualquer
|
||||||
|
versão posterior.
|
||||||
|
|
||||||
|
Este código é distribuído na esperança de que seja útil, mas SEM
|
||||||
|
QUALQUER GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE ou
|
||||||
|
ADEQUAÇÃO A UMA FINALIDADE PARTICULAR. Veja a licença GNU General Public
|
||||||
|
License para maiores detalhes.
|
||||||
|
|
||||||
|
Você deve ter recebido uma cópia da licença GNU Library General Public
|
||||||
|
License juntamente com esta biblioteca; senão, escreva a Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
}
|
||||||
|
unit strtestcaseopts;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
resourcestring
|
||||||
|
//visual components captions
|
||||||
|
sfrmTest = 'TestCase Options';
|
||||||
|
sgrpNames = 'Names';
|
||||||
|
slblDefault = 'Default Test Name';
|
||||||
|
sgrpFixture = 'Fixture';
|
||||||
|
schkSetup = 'Create Setup Method';
|
||||||
|
schkTear = 'Create TearDown method';
|
||||||
|
sbtnCreate = 'Create unit';
|
||||||
|
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
@ -1,93 +1,92 @@
|
|||||||
object TestCaseOptionsForm: TTestCaseOptionsForm
|
object TestCaseOptionsForm: TTestCaseOptionsForm
|
||||||
BorderStyle = bsDialog
|
Left = 1218
|
||||||
Caption = 'TestCase Options'
|
Height = 243
|
||||||
ClientHeight = 248
|
Top = 523
|
||||||
ClientWidth = 266
|
Width = 266
|
||||||
PixelsPerInch = 95
|
|
||||||
Position = poScreenCenter
|
|
||||||
HorzScrollBar.Page = 265
|
HorzScrollBar.Page = 265
|
||||||
VertScrollBar.Page = 247
|
VertScrollBar.Page = 247
|
||||||
Left = 464
|
BorderStyle = bsDialog
|
||||||
Height = 248
|
Caption = 'TestCase Options'
|
||||||
Top = 464
|
ClientHeight = 243
|
||||||
Width = 266
|
ClientWidth = 266
|
||||||
|
OnCreate = FormCreate
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '0.9.29'
|
||||||
object gbNames: TGroupBox
|
object gbNames: TGroupBox
|
||||||
Align = alTop
|
Left = 0
|
||||||
BorderSpacing.OnChange = nil
|
|
||||||
Caption = 'Names'
|
|
||||||
ClientHeight = 72
|
|
||||||
ClientWidth = 262
|
|
||||||
ParentColor = True
|
|
||||||
TabOrder = 0
|
|
||||||
Height = 89
|
Height = 89
|
||||||
|
Top = 0
|
||||||
Width = 266
|
Width = 266
|
||||||
|
Align = alTop
|
||||||
|
Caption = 'Names'
|
||||||
|
ClientHeight = 67
|
||||||
|
ClientWidth = 262
|
||||||
|
TabOrder = 0
|
||||||
object Label1: TLabel
|
object Label1: TLabel
|
||||||
BorderSpacing.OnChange = nil
|
|
||||||
Caption = 'Default Test Name'
|
|
||||||
Color = clNone
|
|
||||||
FocusControl = edDefaultName
|
|
||||||
Left = 16
|
Left = 16
|
||||||
Height = 12
|
Height = 18
|
||||||
Top = 9
|
Top = 9
|
||||||
Width = 102
|
Width = 113
|
||||||
|
Caption = 'Default Test Name'
|
||||||
|
FocusControl = edDefaultName
|
||||||
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object edDefaultName: TEdit
|
object edDefaultName: TEdit
|
||||||
BorderSpacing.OnChange = nil
|
Left = 16
|
||||||
|
Height = 25
|
||||||
|
Top = 25
|
||||||
|
Width = 232
|
||||||
MaxLength = 30
|
MaxLength = 30
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
Text = 'TTestCase1'
|
Text = 'TTestCase1'
|
||||||
Left = 16
|
|
||||||
Height = 23
|
|
||||||
Top = 25
|
|
||||||
Width = 232
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
|
Left = 0
|
||||||
|
Height = 42
|
||||||
|
Top = 201
|
||||||
|
Width = 266
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
BorderSpacing.OnChange = nil
|
|
||||||
BevelOuter = bvNone
|
BevelOuter = bvNone
|
||||||
ClientHeight = 42
|
ClientHeight = 42
|
||||||
ClientWidth = 266
|
ClientWidth = 266
|
||||||
FullRepaint = False
|
FullRepaint = False
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
Height = 42
|
|
||||||
Top = 206
|
|
||||||
Width = 266
|
|
||||||
object btnAccept: TButton
|
object btnAccept: TButton
|
||||||
Caption = 'Create unit'
|
|
||||||
OnClick = btnAcceptClick
|
|
||||||
TabOrder = 0
|
|
||||||
Left = 64
|
Left = 64
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 10
|
Top = 10
|
||||||
Width = 120
|
Width = 120
|
||||||
|
Caption = 'Create unit'
|
||||||
|
OnClick = btnAcceptClick
|
||||||
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object gbFixture: TGroupBox
|
object gbFixture: TGroupBox
|
||||||
Align = alClient
|
Left = 0
|
||||||
Caption = 'Fixture'
|
Height = 112
|
||||||
ClientHeight = 100
|
|
||||||
ClientWidth = 262
|
|
||||||
ParentColor = True
|
|
||||||
TabOrder = 2
|
|
||||||
Height = 117
|
|
||||||
Top = 89
|
Top = 89
|
||||||
Width = 266
|
Width = 266
|
||||||
|
Align = alClient
|
||||||
|
Caption = 'Fixture'
|
||||||
|
ClientHeight = 90
|
||||||
|
ClientWidth = 262
|
||||||
|
TabOrder = 2
|
||||||
object cbSetup: TCheckBox
|
object cbSetup: TCheckBox
|
||||||
|
Left = 22
|
||||||
|
Height = 21
|
||||||
|
Top = 11
|
||||||
|
Width = 152
|
||||||
Caption = 'Create Setup Method'
|
Caption = 'Create Setup Method'
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
Left = 22
|
|
||||||
Height = 23
|
|
||||||
Top = 11
|
|
||||||
Width = 216
|
|
||||||
end
|
end
|
||||||
object cbTeardown: TCheckBox
|
object cbTeardown: TCheckBox
|
||||||
|
Left = 22
|
||||||
|
Height = 21
|
||||||
|
Top = 59
|
||||||
|
Width = 181
|
||||||
Caption = 'Create TearDown method'
|
Caption = 'Create TearDown method'
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
Left = 22
|
|
||||||
Height = 23
|
|
||||||
Top = 59
|
|
||||||
Width = 216
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
||||||
ExtCtrls, Buttons;
|
ExtCtrls, Buttons, strtestcaseopts;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -22,6 +22,7 @@ type
|
|||||||
Label1: TLabel;
|
Label1: TLabel;
|
||||||
Panel1: TPanel;
|
Panel1: TPanel;
|
||||||
procedure btnAcceptClick(Sender: TObject);
|
procedure btnAcceptClick(Sender: TObject);
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
{ private declarations }
|
{ private declarations }
|
||||||
public
|
public
|
||||||
@ -40,5 +41,17 @@ begin
|
|||||||
Close;
|
Close;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TTestCaseOptionsForm.FormCreate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
//
|
||||||
|
Caption := sfrmTest;
|
||||||
|
gbNames.Caption:= sgrpNames;
|
||||||
|
gbFixture.Caption:= sgrpFixture;
|
||||||
|
label1.Caption:= slblDefault;
|
||||||
|
cbSetup.Caption:= schkSetup;
|
||||||
|
cbTeardown.Caption:= schkTear;
|
||||||
|
btnAccept.Caption:= sbtnCreate;
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user