InstantFPC: added localization, patch by Marcelo B Paula with some changes, part of bug #22393

git-svn-id: trunk@37898 -
This commit is contained in:
maxim 2012-07-08 11:52:26 +00:00
parent 92ed0bbeed
commit a950a0f5a2
4 changed files with 43 additions and 9 deletions

1
.gitattributes vendored
View File

@ -1181,6 +1181,7 @@ components/instantfpc/Makefile.fpc svneol=native#text/plain
components/instantfpc/instantfpclaz.lpk svneol=native#text/plain components/instantfpc/instantfpclaz.lpk svneol=native#text/plain
components/instantfpc/instantfpclaz.pas svneol=native#text/plain components/instantfpc/instantfpclaz.pas svneol=native#text/plain
components/instantfpc/instantfpcregisterlaz.pas svneol=native#text/plain components/instantfpc/instantfpcregisterlaz.pas svneol=native#text/plain
components/instantfpc/languages/instantfpcregisterlaz.po svneol=native#text/plain
components/jcf2/CommandLine/CommandLineConstants.pas svneol=native#text/pascal components/jcf2/CommandLine/CommandLineConstants.pas svneol=native#text/pascal
components/jcf2/CommandLine/CommandLineReturnCode.pas svneol=native#text/pascal components/jcf2/CommandLine/CommandLineReturnCode.pas svneol=native#text/pascal
components/jcf2/CommandLine/D11/JCF.dpr svneol=native#text/plain components/jcf2/CommandLine/D11/JCF.dpr svneol=native#text/plain

View File

@ -30,6 +30,10 @@
<UnitName Value="InstantFPCRegisterLaz"/> <UnitName Value="InstantFPCRegisterLaz"/>
</Item1> </Item1>
</Files> </Files>
<i18n>
<EnableI18N Value="True"/>
<OutDir Value="languages"/>
</i18n>
<Type Value="DesignTime"/> <Type Value="DesignTime"/>
<RequiredPkgs Count="2"> <RequiredPkgs Count="2">
<Item1> <Item1>
@ -45,5 +49,8 @@
<PublishOptions> <PublishOptions>
<Version Value="2"/> <Version Value="2"/>
</PublishOptions> </PublishOptions>
<CustomOptions Items="ExternHelp" Version="2">
<_ExternHelp Items="Count"/>
</CustomOptions>
</Package> </Package>
</CONFIG> </CONFIG>

View File

@ -7,9 +7,6 @@ interface
uses uses
Classes, SysUtils, ProjectIntf, Forms, LazIDEIntf; Classes, SysUtils, ProjectIntf, Forms, LazIDEIntf;
const
FileDescNameInstantFPC = 'InstantFPC program';
ProjDescNameInstantFPCProject = 'InstantFPC project';
type type
{ TFileDescInstantFPCScript } { TFileDescInstantFPCScript }
@ -33,6 +30,18 @@ type
function CreateStartFiles(AProject: TLazProject): TModalResult; override; function CreateStartFiles(AProject: TLazProject): TModalResult; override;
end; end;
resourcestring
rsInstantFPCPr = 'InstantFPC program';
rsSingleFileFr = '%s%sSingle file Free Pascal program executed by InstantFPC';
rsInstantFPCSc = 'InstantFPC script';
rsSingleFilePr = '%s%sSingle file program using InstantFPC to compile and '
+'execute';
const
FileDescNameInstantFPC : string = rsInstantFPCPr;
ProjDescNameInstantFPCProject : string = 'InstantFPC project';
procedure Register; procedure Register;
implementation implementation
@ -55,13 +64,12 @@ end;
function TProjectInstantFPCDescriptor.GetLocalizedName: string; function TProjectInstantFPCDescriptor.GetLocalizedName: string;
begin begin
Result:='InstantFPC program'; Result:=rsInstantFPCPr;
end; end;
function TProjectInstantFPCDescriptor.GetLocalizedDescription: string; function TProjectInstantFPCDescriptor.GetLocalizedDescription: string;
begin begin
Result:=GetLocalizedName+#13 Result:=Format(rsSingleFileFr, [GetLocalizedName, #13]);
+'Single file Free Pascal program executed by instantfpc';
end; end;
function TProjectInstantFPCDescriptor.InitProject(AProject: TLazProject function TProjectInstantFPCDescriptor.InitProject(AProject: TLazProject
@ -123,13 +131,12 @@ end;
function TFileDescInstantFPCScript.GetLocalizedName: string; function TFileDescInstantFPCScript.GetLocalizedName: string;
begin begin
Result:='InstantFPC script'; Result:=rsInstantFPCSc;
end; end;
function TFileDescInstantFPCScript.GetLocalizedDescription: string; function TFileDescInstantFPCScript.GetLocalizedDescription: string;
begin begin
Result:=GetLocalizedName+#13 Result:=Format(rsSingleFilePr, [GetLocalizedName, #13]);
+'Single file program using instantfpc to compile and execute';
end; end;
function TFileDescInstantFPCScript.CreateSource(const Filename, SourceName, function TFileDescInstantFPCScript.CreateSource(const Filename, SourceName,

View File

@ -0,0 +1,19 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: instantfpcregisterlaz.rsinstantfpcpr
msgid "InstantFPC program"
msgstr ""
#: instantfpcregisterlaz.rsinstantfpcsc
msgid "InstantFPC script"
msgstr ""
#: instantfpcregisterlaz.rssinglefilefr
msgid "%s%sSingle file Free Pascal program executed by InstantFPC"
msgstr ""
#: instantfpcregisterlaz.rssinglefilepr
msgid "%s%sSingle file program using InstantFPC to compile and execute"
msgstr ""