From 56bbb57b31fd451f6ecb1ef82799f946ab4014da Mon Sep 17 00:00:00 2001 From: maxim Date: Fri, 2 Apr 2010 22:05:01 +0000 Subject: [PATCH] JCF2: localized Comments tab git-svn-id: trunk@24372 - --- components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas | 4 ++++ components/jcf2/Ui/Settings/frComments.pas | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas b/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas index 38d880aa73..d6d624850d 100644 --- a/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas +++ b/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas @@ -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. diff --git a/components/jcf2/Ui/Settings/frComments.pas b/components/jcf2/Ui/Settings/frComments.pas index f347169f5f..d194f1faa7 100644 --- a/components/jcf2/Ui/Settings/frComments.pas +++ b/components/jcf2/Ui/Settings/frComments.pas @@ -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);