From ddaf9ff104f285bad5b347302ab44636bfe71444 Mon Sep 17 00:00:00 2001 From: maxim Date: Fri, 2 Apr 2010 22:20:02 +0000 Subject: [PATCH] JCF2: localized Warnings tab git-svn-id: trunk@24374 - --- components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas | 6 ++++++ components/jcf2/Ui/Settings/frWarnings.pas | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas b/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas index d6d624850d..12c77b460d 100644 --- a/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas +++ b/components/jcf2/IdePlugin/lazarus/jcfuiconsts.pas @@ -194,6 +194,12 @@ resourcestring lisCommentsRemoveEmptySlashComments = 'Remove empty ''//'' comments'; lisCommentsRemoveEmptyCurlyBracesComments = 'Remove empty ''{ }'' comments'; + //Warnings tab + lisWarningsWarnings = 'Warnings'; + lisWarningsWarningsOn = '&Warnings On'; + lisWarningsWarnAboutUnusedParameters = 'Warn about &unused parameters'; + lisWarningsIgnoreUnusedParametersNamed = '&Ignore unused parameters named:'; + implementation end. diff --git a/components/jcf2/Ui/Settings/frWarnings.pas b/components/jcf2/Ui/Settings/frWarnings.pas index 7de40b576f..373acea47e 100644 --- a/components/jcf2/Ui/Settings/frWarnings.pas +++ b/components/jcf2/Ui/Settings/frWarnings.pas @@ -60,7 +60,7 @@ implementation {$R *.lfm} uses - JcfHelp, JcfSettings; + JcfHelp, JcfSettings, jcfuiconsts; constructor TfWarnings.Create(AOwner: TComponent); begin @@ -70,12 +70,15 @@ end; function TfWarnings.GetTitle: String; begin - Result := 'Warnings'; + Result := lisWarningsWarnings; end; procedure TfWarnings.Setup(ADialog: TAbstractOptionsEditorDialog); begin inherited Setup(ADialog); + cbWarningsOn.Caption := lisWarningsWarningsOn; + cbWarnUnusedParams.Caption := lisWarningsWarnAboutUnusedParameters; + Label1.Caption := lisWarningsIgnoreUnusedParametersNamed; end; procedure TfWarnings.ReadSettings(AOptions: TAbstractIDEOptions);