Commit a8dcc181 authored by Constance Okoghenun's avatar Constance Okoghenun

Updated i18n format for note header commit link

Unified commit link in note header action text
parent 83224950
...@@ -90,17 +90,10 @@ export default { ...@@ -90,17 +90,10 @@ export default {
// language to the next. See: // language to the next. See:
// https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24427#note_133713771 // https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24427#note_133713771
const { id, url } = this.commit; const { id, url } = this.commit;
const linkStart = `<a class="commit-sha monospace" href="${escape(url)}">`; const commitLink = `<a class="commit-sha monospace" href="${escape(url)}">${truncateSha(
const linkEnd = '</a>'; id,
return sprintf( )}</a>`;
s__('MergeRequests|commented on commit %{linkStart}%{commitId}%{linkEnd}'), return sprintf(s__('MergeRequests|commented on commit %{commitLink}'), { commitLink }, false);
{
commitId: truncateSha(id),
linkStart,
linkEnd,
},
false,
);
}, },
}, },
......
...@@ -4294,7 +4294,7 @@ msgstr "" ...@@ -4294,7 +4294,7 @@ msgstr ""
msgid "MergeRequests|View replaced file @ %{commitId}" msgid "MergeRequests|View replaced file @ %{commitId}"
msgstr "" msgstr ""
msgid "MergeRequests|commented on commit %{linkStart}%{commitId}%{linkEnd}" msgid "MergeRequests|commented on commit %{commitLink}"
msgstr "" msgstr ""
msgid "MergeRequests|started a discussion" msgid "MergeRequests|started a discussion"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment