Skip to content
Snippets Groups Projects
Commit a8dcc181 authored by Constance Okoghenun's avatar Constance Okoghenun
Browse files

Updated i18n format for note header commit link

Unified commit link in note header action text
parent 83224950
No related branches found
No related tags found
2 merge requests!24427Resolve "Commit comments displayed on a merge request that contains that commit no longer specify which commit they come from",!24018Fix `import_github_repo_spec.rb`
Pipeline #44691912 passed with warnings
......@@ -90,17 +90,10 @@ export default {
// language to the next. See:
// https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24427#note_133713771
const { id, url } = this.commit;
const linkStart = `<a class="commit-sha monospace" href="${escape(url)}">`;
const linkEnd = '</a>';
return sprintf(
s__('MergeRequests|commented on commit %{linkStart}%{commitId}%{linkEnd}'),
{
commitId: truncateSha(id),
linkStart,
linkEnd,
},
false,
);
const commitLink = `<a class="commit-sha monospace" href="${escape(url)}">${truncateSha(
id,
)}</a>`;
return sprintf(s__('MergeRequests|commented on commit %{commitLink}'), { commitLink }, false);
},
},
......
......@@ -4294,7 +4294,7 @@ msgstr ""
msgid "MergeRequests|View replaced file @ %{commitId}"
msgstr ""
msgid "MergeRequests|commented on commit %{linkStart}%{commitId}%{linkEnd}"
msgid "MergeRequests|commented on commit %{commitLink}"
msgstr ""
msgid "MergeRequests|started a discussion"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment