IDE: improved 'Insert CodeTools define template' localization

git-svn-id: trunk@30894 -
This commit is contained in:
maxim 2011-05-24 23:12:03 +00:00
parent bba64bdf3c
commit c45d08be88
3 changed files with 13 additions and 10 deletions

View File

@ -657,7 +657,7 @@ begin
Caption:=lisCodeToolsDefsCreateDefinesForFreePascalCompiler; Caption:=lisCodeToolsDefsCreateDefinesForFreePascalCompiler;
FileCount:=1; FileCount:=1;
FileTitles[0]:='compiler path'; FileTitles[0]:=lisCodeToolsDefscompilerPath;
FileDescs[0]:=Format( FileDescs[0]:=Format(
lisCodeToolsDefsThePathToTheFreePascalCompilerForExample, [#13, lisCodeToolsDefsThePathToTheFreePascalCompilerForExample, [#13,
'"', GetDefaultCompilerFilename, '"', '"', '"']); '"', GetDefaultCompilerFilename, '"', '"', '"']);
@ -706,9 +706,9 @@ begin
FileNames[0]:='~/fpc_sources/2.4.1/fpc'; FileNames[0]:='~/fpc_sources/2.4.1/fpc';
FileFlags[0]:=[iftDirectory,iftNotEmpty,iftMustExist]; FileFlags[0]:=[iftDirectory,iftNotEmpty,iftMustExist];
FileTitles[1]:=lisCodeToolsDefscompilerPath; FileTitles[1]:=lisCodeToolsDefsCompilerPath;
FileDescs[1]:='The path to the free pascal compiler for this source.'#13 FileDescs[1]:=Format(
+'Used to autocreate macros.'; lisCodeToolsDefsThePathToTheFreePascalCompilerForThisSourceUsedToA, [#13]);
FileNames[1]:=DefaultCompiler; FileNames[1]:=DefaultCompiler;
FileFlags[1]:=[iftFilename]; FileFlags[1]:=[iftFilename];

View File

@ -12,7 +12,7 @@
***************************************************************************** *****************************************************************************
* * * *
* See the file COPYING.modifiedLGPL.txt, included in this distribution, * * See the file COPYING.modifiedLGPL.txt, included in this distribution, *
* for details about the copyright. * * for details about the copyright. *
* * * *
* This program is distributed in the hope that it will be useful, * * This program is distributed in the hope that it will be useful, *
@ -135,9 +135,9 @@ begin
CurEdit:=GetInputEdit(i); CurEdit:=GetInputEdit(i);
CurEdit.Text:=CurEdit.Text; CurEdit.Text:=CurEdit.Text;
if not FilenameIsValidForFileIndex(CurEdit.Text,i) then begin if not FilenameIsValidForFileIndex(CurEdit.Text,i) then begin
if MessageDlg('Invalid file', if MessageDlg(lisA2PInvalidFile,
'The file "'+CurEdit.Text+'"'#13 Format(lisCodeToolsDefsValueIsInvalid, [GetGroupBox(i).Caption, #13,
+'is invalid for the '+GetGroupBox(i).Caption,mtInformation, CurEdit.Text]), mtInformation,
[mbCancel,mbAbort],0)=mrAbort [mbCancel,mbAbort],0)=mrAbort
then then
ModalResult:=mrCancel ModalResult:=mrCancel
@ -169,7 +169,7 @@ begin
if OpenDialog=nil then OpenDialog:=TOpenDialog.Create(Self); if OpenDialog=nil then OpenDialog:=TOpenDialog.Create(Self);
with OpenDialog do begin with OpenDialog do begin
InputHistories.ApplyFileDialogSettings(OpenDialog); InputHistories.ApplyFileDialogSettings(OpenDialog);
Title:='Select '+GetGroupBox(FileIndex).Caption; Title:=GetGroupBox(FileIndex).Caption;
if (not Execute) then exit; if (not Execute) then exit;
InputHistories.StoreFileDialogSettings(OpenDialog); InputHistories.StoreFileDialogSettings(OpenDialog);
AFilename:=Filename; AFilename:=Filename;

View File

@ -3000,7 +3000,7 @@ resourcestring
lisCodeToolsDefsProjectDirectory = 'Project directory'; lisCodeToolsDefsProjectDirectory = 'Project directory';
lisCodeToolsDefsTheFreePascalProjectDirectory = 'The Free Pascal project ' lisCodeToolsDefsTheFreePascalProjectDirectory = 'The Free Pascal project '
+'directory.'; +'directory.';
lisCodeToolsDefscompilerPath = 'compiler path'; lisCodeToolsDefscompilerPath = 'Compiler path';
lisCodeToolsDefsThePathToTheFreePascalCompilerForThisProject = 'The path to ' lisCodeToolsDefsThePathToTheFreePascalCompilerForThisProject = 'The path to '
+'the free pascal compiler for this project. Only required if you set the ' +'the free pascal compiler for this project. Only required if you set the '
+'FPC SVN source below. Used to autocreate macros.'; +'FPC SVN source below. Used to autocreate macros.';
@ -3010,6 +3010,9 @@ resourcestring
+'debugging.'; +'debugging.';
lisCodeToolsDefsCreateDefinesForFreePascalCompiler = 'Create Defines for ' lisCodeToolsDefsCreateDefinesForFreePascalCompiler = 'Create Defines for '
+'Free Pascal Compiler'; +'Free Pascal Compiler';
lisCodeToolsDefsThePathToTheFreePascalCompilerForThisSourceUsedToA = 'The path to '
+'the free pascal compiler for this source.%sUsed to autocreate macros.';
lisCodeToolsDefsValueIsInvalid = '%s:%svalue "%s" is invalid.';
lisCodeToolsDefsThePathToTheFreePascalCompilerForExample = 'The ' lisCodeToolsDefsThePathToTheFreePascalCompilerForExample = 'The '
+'path to the free pascal compiler.%s For example %s/usr/bin/%s -n%s ' +'path to the free pascal compiler.%s For example %s/usr/bin/%s -n%s '
+'or %s/usr/local/bin/fpc @/etc/fpc.cfg%s.'; +'or %s/usr/local/bin/fpc @/etc/fpc.cfg%s.';