diff options
author | Tao Wang <twang2218@gmail.com> | 2018-06-14 07:11:10 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-01-15 18:56:24 +0300 |
commit | 527ded1ee162d87f3af7fe2947c4c4aa9966bd1f (patch) | |
tree | c0cffa72fcbac9c01a9a71bb05fc4e34b6401bce /app/views/search/results/_note.html.haml | |
parent | f821a53b45d4b521ffb734b3b843f48e0d1ecfcd (diff) |
[i18n] Externalize strings from 'app/views/search'
Signed-off-by: Tao Wang <twang2218@gmail.com>
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/views/search/results/_note.html.haml')
-rw-r--r-- | app/views/search/results/_note.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/search/results/_note.html.haml b/app/views/search/results/_note.html.haml index e4ab7b0541f..6717939d034 100644 --- a/app/views/search/results/_note.html.haml +++ b/app/views/search/results/_note.html.haml @@ -6,14 +6,14 @@ %h5.note-search-caption.str-truncated %i.fa.fa-comment = link_to_member(project, note.author, avatar: false) - commented on - = link_to project.full_name, project + - link_to_project = link_to(project.full_name, project) + = _("commented on %{link_to_project}").html_safe % { link_to_project: link_to_project } · - if note.for_commit? - = link_to_if(noteable_identifier, "Commit #{truncate_sha(note.commit_id)}", note_url) do + = link_to_if(noteable_identifier, _("Commit %{commit_id}") % { commit_id: truncate_sha(note.commit_id) }, note_url) do = truncate_sha(note.commit_id) - %span.light Commit deleted + %span.light= _("Commit deleted") - else %span #{note.noteable_type.titleize} ##{noteable_identifier} |