Commit 2d31e3cb authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'i18n-extract-app-views-projects-services' into 'master'

Externalize strings from 'app/views/projects/services'

See merge request gitlab-org/gitlab-ce!32402
parents 92c15ec2 5ac5108d
......@@ -15,7 +15,7 @@
.footer-block.row-content-block
= service_save_button(@service)
 
= link_to 'Cancel', project_settings_integrations_path(@project), class: 'btn btn-cancel'
= link_to _('Cancel'), project_settings_integrations_path(@project), class: 'btn btn-cancel'
- if lookup_context.template_exists?('show', "projects/services/#{@service.to_param}", true)
%hr
......
.row.prepend-top-default.append-bottom-default
.col-lg-4
%h4.prepend-top-0
Project services
%p Project services allow you to integrate GitLab with other applications
= s_("ProjectService|Project services")
%p= s_("ProjectService|Project services allow you to integrate GitLab with other applications")
.col-lg-8
%table.table
%colgroup
......@@ -13,12 +13,12 @@
%thead
%tr
%th
%th Service
%th.d-none.d-sm-block Description
%th Last edit
%th= s_("ProjectService|Service")
%th.d-none.d-sm-block= _("Description")
%th= s_("ProjectService|Last edit")
- @services.sort_by(&:title).each do |service|
%tr
%td{ "aria-label" => "#{service.title}: status " + (service.activated? ? "on" : "off") }
%td{ "aria-label" => (service.activated? ? s_("ProjectService|%{service_title}: status on") : s_("ProjectService|%{service_title}: status off")) % { service_title: service.title } }
= boolean_to_icon service.activated?
%td
= link_to edit_project_service_path(@project, service.to_param) do
......
- breadcrumb_title "Integrations"
- page_title @service.title, "Services"
- add_to_breadcrumbs("Settings", edit_project_path(@project))
- breadcrumb_title s_("ProjectService|Integrations")
- page_title @service.title, s_("ProjectService|Services")
- add_to_breadcrumbs(s_("ProjectService|Settings"), edit_project_path(@project))
= render 'deprecated_message' if @service.deprecation_message
......
- run_actions_text = "Perform common operations on GitLab project: #{@project.full_name}"
- run_actions_text = s_("ProjectService|Perform common operations on GitLab project: %{project_name}") % { project_name: @project.full_name }
%p To set up this service:
%p= s_("ProjectService|To set up this service:")
%ul.list-unstyled.indent-list
%li
1.
......@@ -18,67 +18,67 @@
.help-form
.form-group
= label_tag :display_name, 'Display name', class: 'col-12 col-form-label label-bold'
= label_tag :display_name, _('Display name'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :display_name, "GitLab / #{@project.full_name}", class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#display_name', class: 'input-group-text')
.form-group
= label_tag :description, 'Description', class: 'col-12 col-form-label label-bold'
= label_tag :description, _('Description'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :description, run_actions_text, class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#description', class: 'input-group-text')
.form-group
= label_tag nil, 'Command trigger word', class: 'col-12 col-form-label label-bold'
= label_tag nil, s_('MattermostService|Command trigger word'), class: 'col-12 col-form-label label-bold'
.col-12
%p Fill in the word that works best for your team.
%p= s_('MattermostService|Fill in the word that works best for your team.')
%p
Suggestions:
= s_('MattermostService|Suggestions:')
%code= 'gitlab'
%code= @project.path # Path contains no spaces, but dashes
%code= @project.full_path
.form-group
= label_tag :request_url, 'Request URL', class: 'col-12 col-form-label label-bold'
= label_tag :request_url, s_('MattermostService|Request URL'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :request_url, service_trigger_url(subject), class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#request_url', class: 'input-group-text')
.form-group
= label_tag nil, 'Request method', class: 'col-12 col-form-label label-bold'
= label_tag nil, s_('MattermostService|Request method'), class: 'col-12 col-form-label label-bold'
.col-12 POST
.form-group
= label_tag :response_username, 'Response username', class: 'col-12 col-form-label label-bold'
= label_tag :response_username, s_('MattermostService|Response username'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :response_username, 'GitLab', class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#response_username', class: 'input-group-text')
.form-group
= label_tag :response_icon, 'Response icon', class: 'col-12 col-form-label label-bold'
= label_tag :response_icon, s_('MattermostService|Response icon'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :response_icon, asset_url('gitlab_logo.png'), class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#response_icon', class: 'input-group-text')
.form-group
= label_tag nil, 'Autocomplete', class: 'col-12 col-form-label label-bold'
= label_tag nil, _('Autocomplete'), class: 'col-12 col-form-label label-bold'
.col-12 Yes
.form-group
= label_tag :autocomplete_hint, 'Autocomplete hint', class: 'col-12 col-12 col-form-label label-bold'
= label_tag :autocomplete_hint, _('Autocomplete hint'), class: 'col-12 col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :autocomplete_hint, '[help]', class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#autocomplete_hint', class: 'input-group-text')
.form-group
= label_tag :autocomplete_description, 'Autocomplete description', class: 'col-12 col-form-label label-bold'
= label_tag :autocomplete_description, _('Autocomplete description'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :autocomplete_description, run_actions_text, class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
......
......@@ -3,14 +3,12 @@
.info-well
.well-segment
%p
This service allows users to perform common operations on this
project by entering slash commands in Mattermost.
= s_("MattermostService|This service allows users to perform common operations on this project by entering slash commands in Mattermost.")
= link_to help_page_path('user/project/integrations/mattermost_slash_commands.md'), target: '_blank' do
View documentation
= _("View documentation")
= sprite_icon('external-link', size: 16)
%p.inline
See list of available commands in Mattermost after setting up this service,
by entering
= s_("MattermostService|See list of available commands in Mattermost after setting up this service, by entering")
%kbd.inline /<trigger> help
- unless enabled || @service.template?
= render 'projects/services/mattermost_slash_commands/detailed_help', subject: @service
......
......@@ -4,4 +4,4 @@
.col-sm-9.offset-sm-3
= link_to new_project_mattermost_path(@project), class: 'btn btn-lg' do
= custom_icon('mattermost_logo', size: 15)
Add to Mattermost
= s_("MattermostService|Add to Mattermost")
......@@ -4,17 +4,15 @@
.info-well
.well-segment
%p
This service allows users to perform common operations on this
project by entering slash commands in Slack.
= s_("SlackService|This service allows users to perform common operations on this project by entering slash commands in Slack.")
= link_to help_page_path('user/project/integrations/slack_slash_commands.md'), target: '_blank' do
View documentation
= _("View documentation")
= sprite_icon('external-link', size: 16)
%p.inline
See list of available commands in Slack after setting up this service,
by entering
= s_("SlackService|See list of available commands in Slack after setting up this service, by entering")
%kbd.inline /<command> help
- unless @service.template?
%p To set up this service:
%p= _("To set up this service:")
%ul.list-unstyled.indent-list
%li
1.
......@@ -27,11 +25,11 @@
.help-form
.form-group
= label_tag nil, 'Command', class: 'col-12 col-form-label label-bold'
= label_tag nil, _('Command'), class: 'col-12 col-form-label label-bold'
.col-12
%p Fill in the word that works best for your team.
%p= s_('SlackService|Fill in the word that works best for your team.')
%p
Suggestions:
= _("Suggestions:")
%code= 'gitlab'
%code= @project.path # Path contains no spaces, but dashes
%code= @project.full_path
......@@ -44,44 +42,44 @@
= clipboard_button(target: '#url', class: 'input-group-text')
.form-group
= label_tag nil, 'Method', class: 'col-12 col-form-label label-bold'
= label_tag nil, _('Method'), class: 'col-12 col-form-label label-bold'
.col-12 POST
.form-group
= label_tag :customize_name, 'Customize name', class: 'col-12 col-form-label label-bold'
= label_tag :customize_name, _('Customize name'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :customize_name, 'GitLab', class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#customize_name', class: 'input-group-text')
.form-group
= label_tag nil, 'Customize icon', class: 'col-12 col-form-label label-bold'
= label_tag nil, _('Customize icon'), class: 'col-12 col-form-label label-bold'
.col-12
= image_tag(asset_url('slash-command-logo.png'), width: 36, height: 36, class: 'mr-3')
= link_to('Download image', asset_url('gitlab_logo.png'), class: 'btn btn-sm', target: '_blank', rel: 'noopener noreferrer')
= link_to(_('Download image'), asset_url('gitlab_logo.png'), class: 'btn btn-sm', target: '_blank', rel: 'noopener noreferrer')
.form-group
= label_tag nil, 'Autocomplete', class: 'col-12 col-form-label label-bold'
= label_tag nil, _('Autocomplete'), class: 'col-12 col-form-label label-bold'
.col-12 Show this command in the autocomplete list
.form-group
= label_tag :autocomplete_description, 'Autocomplete description', class: 'col-12 col-form-label label-bold'
= label_tag :autocomplete_description, _('Autocomplete description'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :autocomplete_description, run_actions_text, class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#autocomplete_description', class: 'input-group-text')
.form-group
= label_tag :autocomplete_usage_hint, 'Autocomplete usage hint', class: 'col-12 col-form-label label-bold'
= label_tag :autocomplete_usage_hint, _('Autocomplete usage hint'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :autocomplete_usage_hint, '[help]', class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#autocomplete_usage_hint', class: 'input-group-text')
.form-group
= label_tag :descriptive_label, 'Descriptive label', class: 'col-12 col-form-label label-bold'
= label_tag :descriptive_label, _('Descriptive label'), class: 'col-12 col-form-label label-bold'
.col-12.input-group
= text_field_tag :descriptive_label, 'Perform common operations on GitLab project', class: 'form-control form-control-sm', readonly: 'readonly'
= text_field_tag :descriptive_label, _('Perform common operations on GitLab project'), class: 'form-control form-control-sm', readonly: 'readonly'
.input-group-append
= clipboard_button(target: '#descriptive_label', class: 'input-group-text')
......@@ -89,12 +87,6 @@
%ul.list-unstyled.indent-list
%li
2. Paste the
%strong Token
into the field below
= s_("SlackService|2. Paste the <strong>Token</strong> into the field below").html_safe
%li
3. Select the
%strong Active
checkbox, press
%strong Save changes
and start using GitLab inside Slack!
= s_("SlackService|3. Select the <strong>Active</strong> checkbox, press <strong>Save changes</strong> and start using GitLab inside Slack!").html_safe
......@@ -1516,6 +1516,18 @@ msgstr ""
msgid "AutoDevOps|The Auto DevOps pipeline has been enabled and will be used if no alternative CI configuration file is found. %{more_information_link}"
msgstr ""
msgid "Autocomplete"
msgstr ""
msgid "Autocomplete description"
msgstr ""
msgid "Autocomplete hint"
msgstr ""
msgid "Autocomplete usage hint"
msgstr ""
msgid "Automatic certificate management using %{lets_encrypt_link_start}Let's Encrypt%{lets_encrypt_link_end}"
msgstr ""
......@@ -2974,6 +2986,9 @@ msgstr ""
msgid "ComboSearch is not defined"
msgstr ""
msgid "Command"
msgstr ""
msgid "Command line instructions"
msgstr ""
......@@ -3611,9 +3626,15 @@ msgstr ""
msgid "Customize how Google Code email addresses and usernames are imported into GitLab. In the next step, you'll be able to select the projects you want to import."
msgstr ""
msgid "Customize icon"
msgstr ""
msgid "Customize language and region related settings."
msgstr ""
msgid "Customize name"
msgstr ""
msgid "Customize your pipeline configuration, view your pipeline status and coverage report."
msgstr ""
......@@ -3964,6 +3985,9 @@ msgstr ""
msgid "Description:"
msgstr ""
msgid "Descriptive label"
msgstr ""
msgid "Deselect all"
msgstr ""
......@@ -4075,6 +4099,9 @@ msgstr ""
msgid "Dismiss Cycle Analytics introduction box"
msgstr ""
msgid "Display name"
msgstr ""
msgid "Do you want to customize how Google Code email addresses and usernames are imported into GitLab?"
msgstr ""
......@@ -4120,6 +4147,9 @@ msgstr ""
msgid "Download export"
msgstr ""
msgid "Download image"
msgstr ""
msgid "Download source code"
msgstr ""
......@@ -6837,6 +6867,36 @@ msgstr ""
msgid "Marks this issue as a duplicate of %{duplicate_reference}."
msgstr ""
msgid "MattermostService|Add to Mattermost"
msgstr ""
msgid "MattermostService|Command trigger word"
msgstr ""
msgid "MattermostService|Fill in the word that works best for your team."
msgstr ""
msgid "MattermostService|Request URL"
msgstr ""
msgid "MattermostService|Request method"
msgstr ""
msgid "MattermostService|Response icon"
msgstr ""
msgid "MattermostService|Response username"
msgstr ""
msgid "MattermostService|See list of available commands in Mattermost after setting up this service, by entering"
msgstr ""
msgid "MattermostService|Suggestions:"
msgstr ""
msgid "MattermostService|This service allows users to perform common operations on this project by entering slash commands in Mattermost."
msgstr ""
msgid "Max access level"
msgstr ""
......@@ -7014,6 +7074,9 @@ msgstr ""
msgid "Messages"
msgstr ""
msgid "Method"
msgstr ""
msgid "Metrics"
msgstr ""
......@@ -7933,6 +7996,9 @@ msgstr ""
msgid "Perform advanced options such as changing path, transferring, or removing the group."
msgstr ""
msgid "Perform common operations on GitLab project"
msgstr ""
msgid "Performance optimization"
msgstr ""
......@@ -8890,6 +8956,39 @@ msgstr ""
msgid "ProjectSelect|Search for project"
msgstr ""
msgid "ProjectService|%{service_title}: status off"
msgstr ""
msgid "ProjectService|%{service_title}: status on"
msgstr ""
msgid "ProjectService|Integrations"
msgstr ""
msgid "ProjectService|Last edit"
msgstr ""
msgid "ProjectService|Perform common operations on GitLab project: %{project_name}"
msgstr ""
msgid "ProjectService|Project services"
msgstr ""
msgid "ProjectService|Project services allow you to integrate GitLab with other applications"
msgstr ""
msgid "ProjectService|Service"
msgstr ""
msgid "ProjectService|Services"
msgstr ""
msgid "ProjectService|Settings"
msgstr ""
msgid "ProjectService|To set up this service:"
msgstr ""
msgid "ProjectSettings|Additional merge request capabilities that influence how and when merges will be performed"
msgstr ""
......@@ -10417,6 +10516,21 @@ msgstr ""
msgid "Size and domain settings for static websites"
msgstr ""
msgid "SlackService|2. Paste the <strong>Token</strong> into the field below"
msgstr ""
msgid "SlackService|3. Select the <strong>Active</strong> checkbox, press <strong>Save changes</strong> and start using GitLab inside Slack!"
msgstr ""
msgid "SlackService|Fill in the word that works best for your team."
msgstr ""
msgid "SlackService|See list of available commands in Slack after setting up this service, by entering"
msgstr ""
msgid "SlackService|This service allows users to perform common operations on this project by entering slash commands in Slack."
msgstr ""
msgid "Slower but makes sure the project workspace is pristine as it clones the repository from scratch for every job"
msgstr ""
......@@ -10990,6 +11104,9 @@ msgstr ""
msgid "SuggestedColors|Very pale orange"
msgstr ""
msgid "Suggestions:"
msgstr ""
msgid "Sunday"
msgstr ""
......@@ -12046,6 +12163,9 @@ msgstr ""
msgid "To see all the user's personal access tokens you must impersonate them first."
msgstr ""
msgid "To set up this service:"
msgstr ""
msgid "To specify the notification level per project of a group you belong to, you need to visit project page and change notification level there."
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