From 22775e5058dc2a2ba65946967aa850d203d07588 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Tue, 26 Apr 2022 17:26:39 +0200 Subject: [PATCH] SONAR-16313 Updating tag descriptions for issues --- .../src/main/js/components/issue/components/IssueMessage.tsx | 2 +- .../__tests__/__snapshots__/IssueMessage-test.tsx.snap | 2 +- sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx index 2d2cb80c068..33d4e8316b7 100644 --- a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx +++ b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx @@ -88,7 +88,7 @@ export default function IssueMessage(props: IssueMessageProps) { ]}> {ruleStatus === RuleStatus.Deprecated - ? translate('rules.status.DEPRECATED') + ? translate('issue.resolution.DEPRECATED.rule_deprecated') : translate('issue.resolution.REMOVED.rule_removed')} diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap index 178a1810306..ad368c1d951 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap @@ -46,7 +46,7 @@ exports[`should render correctly: is deprecated rule 1`] = ` - rules.status.DEPRECATED + issue.resolution.DEPRECATED.rule_deprecated diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 2391219ad1a..c699a344f70 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -890,6 +890,7 @@ issue.resolution.WONTFIX.description=Issues that are accepted in this context. T issue.resolution.REMOVED=Removed issue.resolution.REMOVED.description=Either the rule or the resource was changed (removed, relocated, parameters changed, etc.) so that analysis no longer finds these issues. issue.resolution.REMOVED.rule_removed=Rule removed +issue.resolution.DEPRECATED.rule_deprecated=Rule deprecated issue.unresolved.description=Unresolved issues have not been addressed in any way. issue.effort=Effort: -- 2.39.5