From: Stas Vilchik Date: Mon, 19 Dec 2016 12:44:27 +0000 (+0100) Subject: SONAR-7729 Improve display of issue changelog entries of type 'FILE' X-Git-Tag: 6.3-RC1~715 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=81b5eb8f1e76a1e791dcc3cdfd10260e73692cb8;p=sonarqube.git SONAR-7729 Improve display of issue changelog entries of type 'FILE' --- diff --git a/server/sonar-web/src/main/js/helpers/handlebars/changelog.js b/server/sonar-web/src/main/js/helpers/handlebars/changelog.js index ab583714f33..0bda7b82214 100644 --- a/server/sonar-web/src/main/js/helpers/handlebars/changelog.js +++ b/server/sonar-web/src/main/js/helpers/handlebars/changelog.js @@ -23,7 +23,7 @@ module.exports = function (diff) { let message; if (diff.key === 'file') { - return translate('issue.change.issue_was_moved'); + return translateWithParameters('issue.change.file_move', diff.oldValue, diff.newValue); } if (diff.newValue != null) { 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 928258d86ba..67b93b050ea 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -681,7 +681,7 @@ issues.issues=issues #------------------------------------------------------------------------------ issue.changelog.changed_to={0} changed to {1} issue.changelog.was=was {0} -issue.change.issue_was_moved=The issue was moved +issue.change.file_move=The file has been moved from {0} to {1} issue.changelog.removed={0} removed issue.changelog.field.severity=Severity issue.changelog.field.actionPlan=Action Plan