mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 08:51:17 +02:00
IDE: Make resourcestring: fixed prefix
git-svn-id: trunk@30438 -
This commit is contained in:
parent
7461ab9b58
commit
04e3416580
@ -3746,7 +3746,7 @@ end;
|
|||||||
procedure TCompilationToolOptions.LoadFromXMLConfig(XMLConfig: TXMLConfig;
|
procedure TCompilationToolOptions.LoadFromXMLConfig(XMLConfig: TXMLConfig;
|
||||||
const Path: string; DoSwitchPathDelims: boolean);
|
const Path: string; DoSwitchPathDelims: boolean);
|
||||||
begin
|
begin
|
||||||
//debugln(['TCompilationToolOptions.LoadFromXMLConfig ',Command,' Path=',Path]);
|
//debugln(['TCompilationToolOptions.LoadFromXMLConfig ',Command,' Path=',Path,' DoSwitchPathDelims=',DoSwitchPathDelims]);
|
||||||
Command:=SwitchPathDelims(XMLConfig.GetValue(Path+'Command/Value',''),
|
Command:=SwitchPathDelims(XMLConfig.GetValue(Path+'Command/Value',''),
|
||||||
DoSwitchPathDelims);
|
DoSwitchPathDelims);
|
||||||
ScanForFPCMessages:=XMLConfig.GetValue(Path+'ScanForFPCMsgs/Value',false);
|
ScanForFPCMessages:=XMLConfig.GetValue(Path+'ScanForFPCMsgs/Value',false);
|
||||||
|
@ -159,4 +159,44 @@ inherited ProjectMiscOptionsFrame: TProjectMiscOptionsFrame
|
|||||||
Caption = 'UseDesignTimePkgsCheckBox'
|
Caption = 'UseDesignTimePkgsCheckBox'
|
||||||
TabOrder = 8
|
TabOrder = 8
|
||||||
end
|
end
|
||||||
|
object PathDelimLabel: TLabel[10]
|
||||||
|
AnchorSideLeft.Control = Owner
|
||||||
|
AnchorSideTop.Control = PathDelimComboBox
|
||||||
|
AnchorSideTop.Side = asrCenter
|
||||||
|
Left = 0
|
||||||
|
Height = 18
|
||||||
|
Top = 330
|
||||||
|
Width = 110
|
||||||
|
Caption = 'PathDelimLabel'
|
||||||
|
ParentColor = False
|
||||||
|
end
|
||||||
|
object Bevel2: TBevel[11]
|
||||||
|
AnchorSideLeft.Control = Owner
|
||||||
|
AnchorSideTop.Control = ResourceGroupBox
|
||||||
|
AnchorSideTop.Side = asrBottom
|
||||||
|
AnchorSideRight.Control = Owner
|
||||||
|
AnchorSideRight.Side = asrBottom
|
||||||
|
Left = 0
|
||||||
|
Height = 3
|
||||||
|
Top = 317
|
||||||
|
Width = 536
|
||||||
|
Anchors = [akTop, akLeft, akRight]
|
||||||
|
BorderSpacing.Top = 6
|
||||||
|
end
|
||||||
|
object PathDelimComboBox: TComboBox[12]
|
||||||
|
AnchorSideLeft.Control = PathDelimLabel
|
||||||
|
AnchorSideLeft.Side = asrBottom
|
||||||
|
AnchorSideTop.Control = Bevel2
|
||||||
|
AnchorSideTop.Side = asrBottom
|
||||||
|
Left = 116
|
||||||
|
Height = 27
|
||||||
|
Top = 326
|
||||||
|
Width = 119
|
||||||
|
BorderSpacing.Left = 6
|
||||||
|
BorderSpacing.Top = 6
|
||||||
|
Enabled = False
|
||||||
|
ItemHeight = 0
|
||||||
|
TabOrder = 9
|
||||||
|
Text = 'PathDelimComboBox'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -15,11 +15,14 @@ type
|
|||||||
TProjectMiscOptionsFrame = class(TAbstractIDEOptionsEditor)
|
TProjectMiscOptionsFrame = class(TAbstractIDEOptionsEditor)
|
||||||
AlwaysBuildCheckBox: TCheckBox;
|
AlwaysBuildCheckBox: TCheckBox;
|
||||||
Bevel1: TBevel;
|
Bevel1: TBevel;
|
||||||
|
Bevel2: TBevel;
|
||||||
LRSInOutputDirCheckBox: TCheckBox;
|
LRSInOutputDirCheckBox: TCheckBox;
|
||||||
MainUnitHasCreateFormStatementsCheckBox: TCheckBox;
|
MainUnitHasCreateFormStatementsCheckBox: TCheckBox;
|
||||||
MainUnitHasTitleStatementCheckBox: TCheckBox;
|
MainUnitHasTitleStatementCheckBox: TCheckBox;
|
||||||
MainUnitHasUsesSectionForAllUnitsCheckBox: TCheckBox;
|
MainUnitHasUsesSectionForAllUnitsCheckBox: TCheckBox;
|
||||||
MainUnitIsPascalSourceCheckBox: TCheckBox;
|
MainUnitIsPascalSourceCheckBox: TCheckBox;
|
||||||
|
PathDelimComboBox: TComboBox;
|
||||||
|
PathDelimLabel: TLabel;
|
||||||
ResourceGroupBox: TGroupBox;
|
ResourceGroupBox: TGroupBox;
|
||||||
RunnableCheckBox: TCheckBox;
|
RunnableCheckBox: TCheckBox;
|
||||||
UseDesignTimePkgsCheckBox: TCheckBox;
|
UseDesignTimePkgsCheckBox: TCheckBox;
|
||||||
@ -61,6 +64,7 @@ begin
|
|||||||
UseLRSFilesRadioButton.Hint := lisAutomaticallyConvertLfmFilesToLrsIncludeFiles;
|
UseLRSFilesRadioButton.Hint := lisAutomaticallyConvertLfmFilesToLrsIncludeFiles;
|
||||||
UseFPCResourcesRadioButton.Caption := lisFPCResources;
|
UseFPCResourcesRadioButton.Caption := lisFPCResources;
|
||||||
UseFPCResourcesRadioButton.Hint := lisRequiresFPC24OrAboveLikeDelphiResources;
|
UseFPCResourcesRadioButton.Hint := lisRequiresFPC24OrAboveLikeDelphiResources;
|
||||||
|
PathDelimLabel.Caption:=lisStorePathDelimitersAndAs;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TProjectMiscOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);
|
procedure TProjectMiscOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);
|
||||||
|
@ -4807,6 +4807,7 @@ resourcestring
|
|||||||
lisFPCResources = 'FPC resources';
|
lisFPCResources = 'FPC resources';
|
||||||
lisRequiresFPC24OrAboveLikeDelphiResources = 'Requires FPC 2.4 or above. '
|
lisRequiresFPC24OrAboveLikeDelphiResources = 'Requires FPC 2.4 or above. '
|
||||||
+'Like Delphi resources';
|
+'Like Delphi resources';
|
||||||
|
lisStorePathDelimitersAndAs = 'Store path delimiters \ and / as';
|
||||||
dlgCOCreateNodeAbove = 'Create node above';
|
dlgCOCreateNodeAbove = 'Create node above';
|
||||||
dlgCOCreateNodeBelow = 'Create node below';
|
dlgCOCreateNodeBelow = 'Create node below';
|
||||||
dlgCOCreateChildNode = 'Create child node';
|
dlgCOCreateChildNode = 'Create child node';
|
||||||
|
@ -560,10 +560,9 @@ begin
|
|||||||
LastLine:=StringConstSynEdit.Lines[EndPos.Y-StartPos.Y];
|
LastLine:=StringConstSynEdit.Lines[EndPos.Y-StartPos.Y];
|
||||||
RightSide:=copy(LastLine,EndPos.X,length(LastLine)-EndPos.X+1);
|
RightSide:=copy(LastLine,EndPos.X,length(LastLine)-EndPos.X+1);
|
||||||
|
|
||||||
NewSource:=LeftSide+NewString;
|
NewSource:=LeftSide+NewString+RightSide;
|
||||||
with CodeToolBoss.SourceChangeCache.BeautifyCodeOptions do
|
with CodeToolBoss.SourceChangeCache.BeautifyCodeOptions do
|
||||||
NewSource:=BeautifyStatement(NewSource,0);
|
NewSource:=BeautifyStatement(NewSource,0);
|
||||||
NewSource:=NewString+RightSide;
|
|
||||||
|
|
||||||
ResourceStringValue:=FormatStringConstant;
|
ResourceStringValue:=FormatStringConstant;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user