Follow-up from "(EE port) Externalize strings in projects controllers"
The following discussion from !10351 (merged) should be addressed:
-
@rymai started a discussion: (+5 comments) I'm wondering if maybe that would make more sense to translate separately
Pipelines page
, and then use a single variable for the whole translated link, e.g.link_to_pipelines = link_to(_('Pipelines page'), project_pipelines_path(@project)) message = _("Successfully scheduled a pipeline to run. Go to the %{link_to_pipelines} for details.").html_safe % { link_to_pipelines: link_to_pipelines }
That's how we usually do, e.g. https://gitlab.com/gitlab-org/gitlab-ee/blob/1ad166dc28d781bbbb2ee2e3d06ff50f542f4867/app/views/doorkeeper/authorizations/new.html.haml#L6-7.