JCF2: localized Comments tab

git-svn-id: trunk@24372 -
This commit is contained in:
maxim 2010-04-02 22:05:01 +00:00
parent 201ab0682a
commit 56bbb57b31
2 changed files with 10 additions and 2 deletions

View File

@ -190,6 +190,10 @@ resourcestring
lisCDUseANewLineAfterCompilerDirectives = 'Use a new line after compiler '
+'directives:';
//Comments tab
lisCommentsRemoveEmptySlashComments = 'Remove empty ''//'' comments';
lisCommentsRemoveEmptyCurlyBracesComments = 'Remove empty ''{ }'' comments';
implementation
end.

View File

@ -57,7 +57,7 @@ implementation
{$R *.lfm}
uses
JcfHelp, JcfSettings, SetComments;
JcfHelp, JcfSettings, SetComments, jcfuiconsts;
constructor TfComments.Create(AOwner: TComponent);
begin
@ -67,12 +67,16 @@ end;
function TfComments.GetTitle: String;
begin
Result := 'Comments';
Result := lisAlignComments;
end;
procedure TfComments.Setup(ADialog: TAbstractOptionsEditorDialog);
begin
inherited Setup(ADialog);
cbRemoveEmptyDoubleSlashComments.Caption :=
lisCommentsRemoveEmptySlashComments;
cbRemoveEmptyCurlyBraceComments.Caption :=
lisCommentsRemoveEmptyCurlyBracesComments;
end;
procedure TfComments.ReadSettings(AOptions: TAbstractIDEOptions);