Commit 52db1ada authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch 'eread/improve-repo-maintenance-ui-strings' into 'master'

Avoid splitting strings in repository maintenance UI

See merge request gitlab-org/gitlab!65717
parents db02b0c0 9991ad6b
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
= f.label :repository_checks_enabled, class: 'form-check-label' do = f.label :repository_checks_enabled, class: 'form-check-label' do
= _("Enable repository checks") = _("Enable repository checks")
.form-text.text-muted .form-text.text-muted
= _("Run") = html_escape(s_('Run %{code_start}git fsck%{code_end} periodically in all project and wiki repositories to look for silent disk corruption issues.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
%code= _("git fsck")
= _("periodically in all project and wiki repositories to look for silent disk corruption issues.")
.form-group .form-group
.form-text.text-muted .form-text.text-muted
= _("If you get a lot of false alarms from repository checks, you can clear all repository check information from the database.") = _("If you get a lot of false alarms from repository checks, you can clear all repository check information from the database.")
...@@ -41,22 +39,16 @@ ...@@ -41,22 +39,16 @@
= f.label :housekeeping_incremental_repack_period, 'Incremental repack period', class: 'label-bold' = f.label :housekeeping_incremental_repack_period, 'Incremental repack period', class: 'label-bold'
= f.number_field :housekeeping_incremental_repack_period, class: 'form-control gl-form-input' = f.number_field :housekeeping_incremental_repack_period, class: 'form-control gl-form-input'
.form-text.text-muted .form-text.text-muted
= _("Number of Git pushes after which an incremental") = html_escape(s_('Number of Git pushes after which an incremental %{code_start}git repack%{code_end} is run.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
%code= _("git repack")
= _("is run.")
.form-group .form-group
= f.label :housekeeping_full_repack_period, 'Full repack period', class: 'label-bold' = f.label :housekeeping_full_repack_period, 'Full repack period', class: 'label-bold'
= f.number_field :housekeeping_full_repack_period, class: 'form-control gl-form-input' = f.number_field :housekeeping_full_repack_period, class: 'form-control gl-form-input'
.form-text.text-muted .form-text.text-muted
= _("Number of Git pushes after which a full") = html_escape(s_('Number of Git pushes after which a full %{code_start}git repack%{code_end} is run.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
%code= _("git repack")
= _("is run.")
.form-group .form-group
= f.label :housekeeping_gc_period, _('Git GC period'), class: 'label-bold' = f.label :housekeeping_gc_period, _('Git GC period'), class: 'label-bold'
= f.number_field :housekeeping_gc_period, class: 'form-control gl-form-input' = f.number_field :housekeeping_gc_period, class: 'form-control gl-form-input'
.form-text.text-muted .form-text.text-muted
= _("Number of Git pushes after which") = html_escape(s_('Number of Git pushes after which %{code_start}git gc%{code_end} is run.')) % { code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
%code= _("git gc")
= _("is run.")
= f.submit _('Save changes'), class: "gl-button btn btn-confirm" = f.submit _('Save changes'), class: "gl-button btn btn-confirm"
...@@ -43,11 +43,11 @@ ...@@ -43,11 +43,11 @@
%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
= _('Configure') - repository_checks_link_url = help_page_path('administration/repository_checks.md')
= link_to s_('repository checks'), help_page_path('administration/repository_checks.md'), target: '_blank', rel: 'noopener noreferrer' - repository_checks_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: repository_checks_link_url }
= _('and') - housekeeping_link_url = help_page_path('administration/housekeeping.md')
= link_to s_('housekeeping'), help_page_path('administration/housekeeping.md'), target: '_blank', rel: 'noopener noreferrer' - housekeeping_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: housekeeping_link_url }
= _('on repositories.') = html_escape(s_('Configure %{repository_checks_link_start}repository checks%{link_end} and %{housekeeping_link_start}housekeeping%{link_end} on repositories.')) % { repository_checks_link_start: repository_checks_link_start, housekeeping_link_start: housekeeping_link_start, link_end: '</a>'.html_safe }
.settings-content .settings-content
= render 'repository_check' = render 'repository_check'
......
...@@ -8237,15 +8237,15 @@ msgstr "" ...@@ -8237,15 +8237,15 @@ msgstr ""
msgid "Configuration help" msgid "Configuration help"
msgstr "" msgstr ""
msgid "Configure"
msgstr ""
msgid "Configure %{italic_start}What's new%{italic_end} drawer and content." msgid "Configure %{italic_start}What's new%{italic_end} drawer and content."
msgstr "" msgstr ""
msgid "Configure %{link} to track events. %{link_start}Learn more.%{link_end}" msgid "Configure %{link} to track events. %{link_start}Learn more.%{link_end}"
msgstr "" msgstr ""
msgid "Configure %{repository_checks_link_start}repository checks%{link_end} and %{housekeeping_link_start}housekeeping%{link_end} on repositories."
msgstr ""
msgid "Configure GitLab runners to start using the Web Terminal. %{helpStart}Learn more.%{helpEnd}" msgid "Configure GitLab runners to start using the Web Terminal. %{helpStart}Learn more.%{helpEnd}"
msgstr "" msgstr ""
...@@ -22622,13 +22622,13 @@ msgstr "" ...@@ -22622,13 +22622,13 @@ msgstr ""
msgid "Number of Elasticsearch shards and replicas (per index)" msgid "Number of Elasticsearch shards and replicas (per index)"
msgstr "" msgstr ""
msgid "Number of Git pushes after which" msgid "Number of Git pushes after which %{code_start}git gc%{code_end} is run."
msgstr "" msgstr ""
msgid "Number of Git pushes after which a full" msgid "Number of Git pushes after which a full %{code_start}git repack%{code_end} is run."
msgstr "" msgstr ""
msgid "Number of Git pushes after which an incremental" msgid "Number of Git pushes after which an incremental %{code_start}git repack%{code_end} is run."
msgstr "" msgstr ""
msgid "Number of LOCs per commit" msgid "Number of LOCs per commit"
...@@ -28140,7 +28140,7 @@ msgstr "" ...@@ -28140,7 +28140,7 @@ msgstr ""
msgid "Rules that define what git pushes are accepted for a project. All newly created projects will use these settings." msgid "Rules that define what git pushes are accepted for a project. All newly created projects will use these settings."
msgstr "" msgstr ""
msgid "Run" msgid "Run %{code_start}git fsck%{code_end} periodically in all project and wiki repositories to look for silent disk corruption issues."
msgstr "" msgstr ""
msgid "Run CI/CD pipelines for external repositories" msgid "Run CI/CD pipelines for external repositories"
...@@ -38758,15 +38758,6 @@ msgid_plural "from %d jobs" ...@@ -38758,15 +38758,6 @@ msgid_plural "from %d jobs"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "git fsck"
msgstr ""
msgid "git gc"
msgstr ""
msgid "git repack"
msgstr ""
msgid "group" msgid "group"
msgstr "" msgstr ""
...@@ -38800,9 +38791,6 @@ msgstr "" ...@@ -38800,9 +38791,6 @@ msgstr ""
msgid "here" msgid "here"
msgstr "" msgstr ""
msgid "housekeeping"
msgstr ""
msgid "http:" msgid "http:"
msgstr "" msgstr ""
...@@ -38898,9 +38886,6 @@ msgstr "" ...@@ -38898,9 +38886,6 @@ msgstr ""
msgid "is read-only" msgid "is read-only"
msgstr "" msgstr ""
msgid "is run."
msgstr ""
msgid "is too long (%{current_value}). The maximum size is %{max_size}." msgid "is too long (%{current_value}). The maximum size is %{max_size}."
msgstr "" msgstr ""
...@@ -39401,9 +39386,6 @@ msgstr "" ...@@ -39401,9 +39386,6 @@ msgstr ""
msgid "nounSeries|%{item}, and %{lastItem}" msgid "nounSeries|%{item}, and %{lastItem}"
msgstr "" msgstr ""
msgid "on repositories."
msgstr ""
msgid "on track" msgid "on track"
msgstr "" msgstr ""
...@@ -39447,9 +39429,6 @@ msgstr "" ...@@ -39447,9 +39429,6 @@ msgstr ""
msgid "per day" msgid "per day"
msgstr "" msgstr ""
msgid "periodically in all project and wiki repositories to look for silent disk corruption issues."
msgstr ""
msgid "personal access token" msgid "personal access token"
msgstr "" msgstr ""
...@@ -39555,9 +39534,6 @@ msgid_plural "replies" ...@@ -39555,9 +39534,6 @@ msgid_plural "replies"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "repository checks"
msgstr ""
msgid "repository:" msgid "repository:"
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