Commit 18886a5d authored by Marcel Amirault's avatar Marcel Amirault Committed by Simon Knox

Improve UI text for initial branch name setting

parent 9208371e
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
= f.label :default_branch_name, _('Default initial branch name'), class: 'label-light' = f.label :default_branch_name, _('Default initial branch name'), class: 'label-light'
= f.text_field :default_branch_name, placeholder: Gitlab::DefaultBranch.value, class: 'form-control gl-form-input' = f.text_field :default_branch_name, placeholder: Gitlab::DefaultBranch.value, class: 'form-control gl-form-input'
%span.form-text.text-muted %span.form-text.text-muted
= (_("Changes affect new repositories only. If not specified, Git's default name %{branch_name_default} will be used.") % { branch_name_default: fallback_branch_name } ).html_safe = (s_("AdminSettings|If not specified at the group or instance level, the default is %{default_initial_branch_name}. Does not affect existing repositories.") % { default_initial_branch_name: fallback_branch_name } ).html_safe
= f.submit _('Save changes'), class: 'gl-button btn-confirm' = f.submit _('Save changes'), class: 'gl-button btn-confirm'
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Set the default name of the initial branch when creating new repositories through the user interface.') = s_('AdminSettings|The default name for the initial branch of new repositories created in the instance.')
.settings-content .settings-content
= render 'initial_branch_name' = render 'initial_branch_name'
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
%button.gl-button.js-settings-toggle{ type: 'button' } %button.gl-button.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Set the default name of the initial branch when creating new repositories through the user interface.') = s_('GroupSettings|The default name for the initial branch of new repositories created in the group.')
.settings-content .settings-content
= form_for @group, url: group_path(@group, anchor: 'js-default-branch-name'), html: { class: 'fieldset-form' } do |f| = form_for @group, url: group_path(@group, anchor: 'js-default-branch-name'), html: { class: 'fieldset-form' } do |f|
= form_errors(@group) = form_errors(@group)
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
= f.label :default_branch_name, _('Default initial branch name'), class: 'label-light' = f.label :default_branch_name, _('Default initial branch name'), class: 'label-light'
= f.text_field :default_branch_name, value: group.namespace_settings&.default_branch_name, placeholder: Gitlab::DefaultBranch.value(object: @group), class: 'form-control' = f.text_field :default_branch_name, value: group.namespace_settings&.default_branch_name, placeholder: Gitlab::DefaultBranch.value(object: @group), class: 'form-control'
%span.form-text.text-muted %span.form-text.text-muted
= (_("Changes affect new repositories only. If not specified, either the configured application-wide default or Git's default name %{branch_name_default} will be used.") % { branch_name_default: fallback_branch_name }).html_safe = (s_("GroupSettings|If not specified at the group or instance level, the default is %{default_initial_branch_name}. Does not affect existing repositories.") % { default_initial_branch_name: fallback_branch_name }).html_safe
= f.hidden_field :redirect_target, value: "repository_settings" = f.hidden_field :redirect_target, value: "repository_settings"
= f.submit _('Save changes'), class: 'btn gl-button btn-confirm' = f.submit _('Save changes'), class: 'btn gl-button btn-confirm'
...@@ -2365,6 +2365,9 @@ msgstr "" ...@@ -2365,6 +2365,9 @@ msgstr ""
msgid "AdminSettings|Feed token" msgid "AdminSettings|Feed token"
msgstr "" msgstr ""
msgid "AdminSettings|If not specified at the group or instance level, the default is %{default_initial_branch_name}. Does not affect existing repositories."
msgstr ""
msgid "AdminSettings|Keep the latest artifacts for all jobs in the latest successful pipelines" msgid "AdminSettings|Keep the latest artifacts for all jobs in the latest successful pipelines"
msgstr "" msgstr ""
...@@ -2407,6 +2410,9 @@ msgstr "" ...@@ -2407,6 +2410,9 @@ msgstr ""
msgid "AdminSettings|Specify a domain to use by default for every project's Auto Review Apps and Auto Deploy stages." msgid "AdminSettings|Specify a domain to use by default for every project's Auto Review Apps and Auto Deploy stages."
msgstr "" msgstr ""
msgid "AdminSettings|The default name for the initial branch of new repositories created in the instance."
msgstr ""
msgid "AdminSettings|The latest artifacts for all jobs in the most recent successful pipelines in each project are stored and do not expire." msgid "AdminSettings|The latest artifacts for all jobs in the most recent successful pipelines in each project are stored and do not expire."
msgstr "" msgstr ""
...@@ -6217,12 +6223,6 @@ msgstr "" ...@@ -6217,12 +6223,6 @@ msgstr ""
msgid "Changes" msgid "Changes"
msgstr "" msgstr ""
msgid "Changes affect new repositories only. If not specified, Git's default name %{branch_name_default} will be used."
msgstr ""
msgid "Changes affect new repositories only. If not specified, either the configured application-wide default or Git's default name %{branch_name_default} will be used."
msgstr ""
msgid "Changes are shown as if the %{b_open}source%{b_close} revision was being merged into the %{b_open}target%{b_close} revision." msgid "Changes are shown as if the %{b_open}source%{b_close} revision was being merged into the %{b_open}target%{b_close} revision."
msgstr "" msgstr ""
...@@ -15763,6 +15763,9 @@ msgstr "" ...@@ -15763,6 +15763,9 @@ msgstr ""
msgid "GroupSettings|Export group" msgid "GroupSettings|Export group"
msgstr "" msgstr ""
msgid "GroupSettings|If not specified at the group or instance level, the default is %{default_initial_branch_name}. Does not affect existing repositories."
msgstr ""
msgid "GroupSettings|If the parent group's visibility is lower than the group current visibility, visibility levels for subgroups and projects will be changed to match the new parent group's visibility." msgid "GroupSettings|If the parent group's visibility is lower than the group current visibility, visibility levels for subgroups and projects will be changed to match the new parent group's visibility."
msgstr "" msgstr ""
...@@ -15802,6 +15805,9 @@ msgstr "" ...@@ -15802,6 +15805,9 @@ msgstr ""
msgid "GroupSettings|The Auto DevOps pipeline runs if no alternative CI configuration file is found." msgid "GroupSettings|The Auto DevOps pipeline runs if no alternative CI configuration file is found."
msgstr "" msgstr ""
msgid "GroupSettings|The default name for the initial branch of new repositories created in the group."
msgstr ""
msgid "GroupSettings|There was a problem updating Auto DevOps pipeline: %{error_messages}." msgid "GroupSettings|There was a problem updating Auto DevOps pipeline: %{error_messages}."
msgstr "" msgstr ""
...@@ -29690,9 +29696,6 @@ msgstr "" ...@@ -29690,9 +29696,6 @@ msgstr ""
msgid "Set the default expiration time for each job's artifacts. 0 for unlimited. The default unit is in seconds, but you can define an alternative. For example: %{code_open}4 mins 2 sec%{code_close}, %{code_open}2h42min%{code_close}." msgid "Set the default expiration time for each job's artifacts. 0 for unlimited. The default unit is in seconds, but you can define an alternative. For example: %{code_open}4 mins 2 sec%{code_close}, %{code_open}2h42min%{code_close}."
msgstr "" msgstr ""
msgid "Set the default name of the initial branch when creating new repositories through the user interface."
msgstr ""
msgid "Set the due date to %{due_date}." msgid "Set the due date to %{due_date}."
msgstr "" msgstr ""
......
...@@ -38,7 +38,7 @@ RSpec.describe 'Group Repository settings' do ...@@ -38,7 +38,7 @@ RSpec.describe 'Group Repository settings' do
it 'renders the correct setting section content' do it 'renders the correct setting section content' do
within("#js-default-branch-name") do within("#js-default-branch-name") do
expect(page).to have_content("Default initial branch name") expect(page).to have_content("Default initial branch name")
expect(page).to have_content("Set the default name of the initial branch when creating new repositories through the user interface.") expect(page).to have_content("The default name for the initial branch of new repositories created in the group.")
end end
end end
end end
......
...@@ -22,7 +22,7 @@ RSpec.describe 'admin/application_settings/repository.html.haml' do ...@@ -22,7 +22,7 @@ RSpec.describe 'admin/application_settings/repository.html.haml' do
render render
expect(rendered).to have_content("Default initial branch name") expect(rendered).to have_content("Default initial branch name")
expect(rendered).to have_content("Set the default name of the initial branch when creating new repositories through the user interface.") expect(rendered).to have_content("The default name for the initial branch of new repositories created in the instance.")
end end
end end
end end
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