Commit b09b1e93 authored by Jonston Chan's avatar Jonston Chan Committed by Bob Van Landuyt

i18n for triggers

parent 3f139e5d
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
.col-lg-12 .col-lg-12
.card .card
.card-header .card-header
= s_("Manage your project's triggers") = _("Manage your project's triggers")
.card-body .card-body
= render "projects/triggers/form", btn_text: "Add trigger" = render 'projects/triggers/form', btn_text: _('Add trigger')
%hr %hr
- if Feature.enabled?(:ci_pipeline_triggers_settings_vue_ui, @project) - if Feature.enabled?(:ci_pipeline_triggers_settings_vue_ui, @project)
#js-ci-pipeline-triggers-list.triggers-list{ data: { triggers: @triggers_json } } #js-ci-pipeline-triggers-list.triggers-list{ data: { triggers: @triggers_json } }
...@@ -15,32 +15,32 @@ ...@@ -15,32 +15,32 @@
%thead %thead
%th %th
%strong %strong
= s_("Token") = _('Token')
%th %th
%strong %strong
= s_("Description") = _('Description')
%th %th
%strong %strong
= s_("Owner") = _('Owner')
%th %th
%strong %strong
= s_("Last used") = _('Last used')
%th %th
= render partial: 'projects/triggers/trigger', collection: @triggers, as: :trigger = render partial: 'projects/triggers/trigger', collection: @triggers, as: :trigger
- else - else
%p.settings-message.text-center.gl-mb-3{ data: { testid: 'no_triggers_content' } } %p.settings-message.text-center.gl-mb-3{ data: { testid: 'no_triggers_content' } }
= s_("No triggers exist yet. Use the form above to create one.") = _('No triggers exist yet. Use the form above to create one.')
.card-footer .card-footer
%p %p
= s_("These examples show how to trigger this project's pipeline for a branch or tag.") = _("These examples show how to trigger this project's pipeline for a branch or tag.")
%p.light %p.light
= s_("Triggers|In each example, replace %{code_start}TOKEN%{code_end} with the trigger token you generated and replace %{code_start}REF_NAME%{code_end} with the branch or tag name.").html_safe % { code_start: "<code>".html_safe, code_end: "</code>".html_safe } = _('In each example, replace %{code_start}TOKEN%{code_end} with the trigger token you generated and replace %{code_start}REF_NAME%{code_end} with the branch or tag name.').html_safe % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
%h5.gl-mt-3 %h5.gl-mt-3
= s_("Use cURL") = _('Use cURL')
%pre %pre
:plain :plain
...@@ -49,26 +49,26 @@ ...@@ -49,26 +49,26 @@
-F ref=REF_NAME \ -F ref=REF_NAME \
#{builds_trigger_url(@project.id)} #{builds_trigger_url(@project.id)}
%h5.gl-mt-3 %h5.gl-mt-3
= s_("Use .gitlab-ci.yml") = _('Use .gitlab-ci.yml')
%pre %pre
:plain :plain
script: script:
- "curl -X POST -F token=TOKEN -F ref=REF_NAME #{builds_trigger_url(@project.id)}" - "curl -X POST -F token=TOKEN -F ref=REF_NAME #{builds_trigger_url(@project.id)}"
%h5.gl-mt-3 %h5.gl-mt-3
= s_("Use webhook") = _('Use webhook')
%pre %pre
:plain :plain
#{builds_trigger_url(@project.id, ref: 'REF_NAME')}?token=TOKEN #{builds_trigger_url(@project.id, ref: 'REF_NAME')}?token=TOKEN
%h5.gl-mt-3 %h5.gl-mt-3
= s_("Pass job variables") = _('Pass job variables')
%p.light %p.light
= s_("Triggers|To pass variables to the triggered pipeline, add %{code_start}variables[VARIABLE]=VALUE%{code_end} to the API request.").html_safe % { code_start: "<code>".html_safe, code_end: "</code>".html_safe } = _('To pass variables to the triggered pipeline, add %{code_start}variables[VARIABLE]=VALUE%{code_end} to the API request.').html_safe % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
%p.light %p.light
= s_("cURL:") = _('cURL:')
%pre %pre
:plain :plain
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
-F "variables[RUN_NIGHTLY_BUILD]=true" \ -F "variables[RUN_NIGHTLY_BUILD]=true" \
#{builds_trigger_url(@project.id)} #{builds_trigger_url(@project.id)}
%p.light %p.light
= s_("Webhook:") = _('Webhook:')
%pre.gl-mb-0 %pre.gl-mb-0
:plain :plain
......
---
title: Fix triggers page externalization
merge_request: 57637
author: Jonston Chan @JonstonChan
type: other
...@@ -2019,6 +2019,9 @@ msgstr "" ...@@ -2019,6 +2019,9 @@ msgstr ""
msgid "Add to tree" msgid "Add to tree"
msgstr "" msgstr ""
msgid "Add trigger"
msgstr ""
msgid "Add user(s) to the group:" msgid "Add user(s) to the group:"
msgstr "" msgstr ""
...@@ -16155,6 +16158,9 @@ msgstr "" ...@@ -16155,6 +16158,9 @@ msgstr ""
msgid "In case of pull mirroring, your user will be the author of all events in the activity feed that are the result of an update, like new branches being created or new commits being pushed to existing branches." msgid "In case of pull mirroring, your user will be the author of all events in the activity feed that are the result of an update, like new branches being created or new commits being pushed to existing branches."
msgstr "" msgstr ""
msgid "In each example, replace %{code_start}TOKEN%{code_end} with the trigger token you generated and replace %{code_start}REF_NAME%{code_end} with the branch or tag name."
msgstr ""
msgid "In progress" msgid "In progress"
msgstr "" msgstr ""
...@@ -32384,6 +32390,9 @@ msgstr "" ...@@ -32384,6 +32390,9 @@ msgstr ""
msgid "To open Jaeger from GitLab to view tracing from the %{link} page, add a URL to your Jaeger server." msgid "To open Jaeger from GitLab to view tracing from the %{link} page, add a URL to your Jaeger server."
msgstr "" msgstr ""
msgid "To pass variables to the triggered pipeline, add %{code_start}variables[VARIABLE]=VALUE%{code_end} to the API request."
msgstr ""
msgid "To personalize your GitLab experience, we'd like to know a bit more about you. We won't share this information with anyone." msgid "To personalize your GitLab experience, we'd like to know a bit more about you. We won't share this information with anyone."
msgstr "" msgstr ""
...@@ -32770,12 +32779,6 @@ msgstr "" ...@@ -32770,12 +32779,6 @@ msgstr ""
msgid "Triggerer" msgid "Triggerer"
msgstr "" msgstr ""
msgid "Triggers|In each example, replace %{code_start}TOKEN%{code_end} with the trigger token you generated and replace %{code_start}REF_NAME%{code_end} with the branch or tag name."
msgstr ""
msgid "Triggers|To pass variables to the triggered pipeline, add %{code_start}variables[VARIABLE]=VALUE%{code_end} to the API request."
msgstr ""
msgid "Troubleshoot and monitor your application with tracing" msgid "Troubleshoot and monitor your application with tracing"
msgstr "" msgstr ""
......
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