Commit 5e065738 authored by Scott Hampton's avatar Scott Hampton

Merge branch 'Externalise-strings-in-appearances_form.html.haml' into 'master'

Externalise strings in appearances/_form.html.haml

See merge request gitlab-org/gitlab!58135
parents 1785ee84 6e029740
- parsed_with_gfm = "Content parsed with #{link_to('GitLab Flavored Markdown', help_page_path('user/markdown'), target: '_blank')}.".html_safe - parsed_with_gfm = (_("Content parsed with %{link}.") % { link: link_to('GitLab Flavored Markdown', help_page_path('user/markdown'), target: '_blank') }).html_safe
= form_for @appearance, url: admin_appearances_path, html: { class: 'gl-mt-3' } do |f| = form_for @appearance, url: admin_appearances_path, html: { class: 'gl-mt-3' } do |f|
= form_errors(@appearance) = form_errors(@appearance)
...@@ -6,22 +6,22 @@ ...@@ -6,22 +6,22 @@
.row .row
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
%h4.gl-mt-0 Navigation bar %h4.gl-mt-0= _('Navigation bar')
.col-lg-8 .col-lg-8
.form-group .form-group
= f.label :header_logo, 'Header logo', class: 'col-form-label label-bold pt-0' = f.label :header_logo, _('Header logo'), class: 'col-form-label label-bold pt-0'
%p %p
- if @appearance.header_logo? - if @appearance.header_logo?
= image_tag @appearance.header_logo_path, class: 'appearance-light-logo-preview' = image_tag @appearance.header_logo_path, class: 'appearance-light-logo-preview'
- if @appearance.persisted? - if @appearance.persisted?
%br %br
= link_to 'Remove header logo', header_logos_admin_appearances_path, data: { confirm: "Header logo will be removed. Are you sure?"}, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm" = link_to _('Remove header logo'), header_logos_admin_appearances_path, data: { confirm: _("Header logo will be removed. Are you sure?") }, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm"
%hr %hr
= f.hidden_field :header_logo_cache = f.hidden_field :header_logo_cache
= f.file_field :header_logo, class: "", accept: 'image/*' = f.file_field :header_logo, class: "", accept: 'image/*'
.hint .hint
Maximum file size is 1MB. Pages are optimized for a 28px tall header logo = _('Maximum file size is 1MB. Pages are optimized for a 28px tall header logo')
%hr %hr
.row .row
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
...@@ -29,27 +29,27 @@ ...@@ -29,27 +29,27 @@
.col-lg-8 .col-lg-8
.form-group .form-group
= f.label :favicon, 'Favicon', class: 'col-form-label label-bold pt-0' = f.label :favicon, _('Favicon'), class: 'col-form-label label-bold pt-0'
%p %p
- if @appearance.favicon? - if @appearance.favicon?
= image_tag @appearance.favicon_path, class: 'appearance-light-logo-preview' = image_tag @appearance.favicon_path, class: 'appearance-light-logo-preview'
- if @appearance.persisted? - if @appearance.persisted?
%br %br
= link_to 'Remove favicon', favicon_admin_appearances_path, data: { confirm: "Favicon will be removed. Are you sure?"}, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm" = link_to _('Remove favicon'), favicon_admin_appearances_path, data: { confirm: _("Favicon will be removed. Are you sure?") }, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm"
%hr %hr
= f.hidden_field :favicon_cache = f.hidden_field :favicon_cache
= f.file_field :favicon, class: '', accept: 'image/*' = f.file_field :favicon, class: '', accept: 'image/*'
.hint .hint
Maximum file size is 1MB. Image size must be 32x32px. Allowed image formats are #{favicon_extension_whitelist}. = _("Maximum file size is 1MB. Image size must be 32x32px. Allowed image formats are %{favicon_extension_whitelist}.") % { favicon_extension_whitelist: favicon_extension_whitelist }
%br %br
Images with incorrect dimensions are not resized automatically, and may result in unexpected behavior. = _("Images with incorrect dimensions are not resized automatically, and may result in unexpected behavior.")
= render partial: 'admin/appearances/system_header_footer_form', locals: { form: f } = render partial: 'admin/appearances/system_header_footer_form', locals: { form: f }
%hr %hr
.row .row
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
%h4.gl-mt-0 Sign in/Sign up pages %h4.gl-mt-0= _('Sign in/Sign up pages')
.col-lg-8 .col-lg-8
.form-group .form-group
...@@ -67,17 +67,17 @@ ...@@ -67,17 +67,17 @@
= image_tag @appearance.logo_path, class: 'appearance-logo-preview' = image_tag @appearance.logo_path, class: 'appearance-logo-preview'
- if @appearance.persisted? - if @appearance.persisted?
%br %br
= link_to 'Remove logo', logo_admin_appearances_path, data: { confirm: "Logo will be removed. Are you sure?"}, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm remove-logo" = link_to _('Remove logo'), logo_admin_appearances_path, data: { confirm: _("Logo will be removed. Are you sure?") }, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm remove-logo"
%hr %hr
= f.hidden_field :logo_cache = f.hidden_field :logo_cache
= f.file_field :logo, class: "", accept: 'image/*' = f.file_field :logo, class: "", accept: 'image/*'
.hint .hint
Maximum file size is 1MB. Pages are optimized for a 640x360 px logo. = _('Maximum file size is 1MB. Pages are optimized for a 640x360 px logo.')
%hr %hr
.row .row
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
%h4.gl-mt-0 New project pages %h4.gl-mt-0= _('New project pages')
.col-lg-8 .col-lg-8
.form-group .form-group
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
%hr %hr
.row .row
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
%h4.gl-mt-0 Profile image guideline %h4.gl-mt-0= _('Profile image guideline')
.col-lg-8 .col-lg-8
.form-group .form-group
...@@ -101,13 +101,13 @@ ...@@ -101,13 +101,13 @@
= parsed_with_gfm = parsed_with_gfm
.gl-mt-3.gl-mb-3 .gl-mt-3.gl-mb-3
= f.submit 'Update appearance settings', class: 'btn gl-button btn-confirm' = f.submit _('Update appearance settings'), class: 'btn gl-button btn-confirm'
- if @appearance.persisted? || @appearance.updated_at - if @appearance.persisted? || @appearance.updated_at
.mt-4 .mt-4
- if @appearance.persisted? - if @appearance.persisted?
Preview last save: Preview last save:
= link_to 'Sign-in page', preview_sign_in_admin_appearances_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer' = link_to _('Sign-in page'), preview_sign_in_admin_appearances_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer'
= link_to 'New project page', new_project_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer' = link_to _('New project page'), new_project_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer'
- if @appearance.updated_at - if @appearance.updated_at
%span.float-right %span.float-right
......
---
title: Externalize strings in appearances/_form.html.haml
merge_request: 58135
author: nuwe1
type: other
...@@ -8791,6 +8791,9 @@ msgstr "" ...@@ -8791,6 +8791,9 @@ msgstr ""
msgid "Contains %{count} blobs of images (%{size})" msgid "Contains %{count} blobs of images (%{size})"
msgstr "" msgstr ""
msgid "Content parsed with %{link}."
msgstr ""
msgid "ContentEditor|You have to provide a renderMarkdown function or a custom serializer" msgid "ContentEditor|You have to provide a renderMarkdown function or a custom serializer"
msgstr "" msgstr ""
...@@ -13478,9 +13481,15 @@ msgstr "" ...@@ -13478,9 +13481,15 @@ msgstr ""
msgid "Faster releases. Better code. Less pain." msgid "Faster releases. Better code. Less pain."
msgstr "" msgstr ""
msgid "Favicon"
msgstr ""
msgid "Favicon was successfully removed." msgid "Favicon was successfully removed."
msgstr "" msgstr ""
msgid "Favicon will be removed. Are you sure?"
msgstr ""
msgid "Feature Flags" msgid "Feature Flags"
msgstr "" msgstr ""
...@@ -15931,9 +15940,15 @@ msgstr "" ...@@ -15931,9 +15940,15 @@ msgstr ""
msgid "Hashed storage can't be disabled anymore for new projects" msgid "Hashed storage can't be disabled anymore for new projects"
msgstr "" msgstr ""
msgid "Header logo"
msgstr ""
msgid "Header logo was successfully removed." msgid "Header logo was successfully removed."
msgstr "" msgstr ""
msgid "Header logo will be removed. Are you sure?"
msgstr ""
msgid "Header message" msgid "Header message"
msgstr "" msgstr ""
...@@ -16373,6 +16388,9 @@ msgstr "" ...@@ -16373,6 +16388,9 @@ msgstr ""
msgid "ImageViewerDimensions|W" msgid "ImageViewerDimensions|W"
msgstr "" msgstr ""
msgid "Images with incorrect dimensions are not resized automatically, and may result in unexpected behavior."
msgstr ""
msgid "Impersonate" msgid "Impersonate"
msgstr "" msgstr ""
...@@ -19409,6 +19427,9 @@ msgstr "" ...@@ -19409,6 +19427,9 @@ msgstr ""
msgid "Logo was successfully removed." msgid "Logo was successfully removed."
msgstr "" msgstr ""
msgid "Logo will be removed. Are you sure?"
msgstr ""
msgid "Logs" msgid "Logs"
msgstr "" msgstr ""
...@@ -19784,6 +19805,15 @@ msgstr "" ...@@ -19784,6 +19805,15 @@ msgstr ""
msgid "Maximum file size indexed (KiB)" msgid "Maximum file size indexed (KiB)"
msgstr "" msgstr ""
msgid "Maximum file size is 1MB. Image size must be 32x32px. Allowed image formats are %{favicon_extension_whitelist}."
msgstr ""
msgid "Maximum file size is 1MB. Pages are optimized for a 28px tall header logo"
msgstr ""
msgid "Maximum file size is 1MB. Pages are optimized for a 640x360 px logo."
msgstr ""
msgid "Maximum file size is 2MB. Please select a smaller file." msgid "Maximum file size is 2MB. Please select a smaller file."
msgstr "" msgstr ""
...@@ -21116,6 +21146,9 @@ msgstr "" ...@@ -21116,6 +21146,9 @@ msgstr ""
msgid "Navigate to the project to close the milestone." msgid "Navigate to the project to close the milestone."
msgstr "" msgstr ""
msgid "Navigation bar"
msgstr ""
msgid "Nav|Help" msgid "Nav|Help"
msgstr "" msgstr ""
...@@ -21538,6 +21571,12 @@ msgstr "" ...@@ -21538,6 +21571,12 @@ msgstr ""
msgid "New project" msgid "New project"
msgstr "" msgstr ""
msgid "New project page"
msgstr ""
msgid "New project pages"
msgstr ""
msgid "New project/repository" msgid "New project/repository"
msgstr "" msgstr ""
...@@ -24347,6 +24386,9 @@ msgstr "" ...@@ -24347,6 +24386,9 @@ msgstr ""
msgid "Profile Settings" msgid "Profile Settings"
msgstr "" msgstr ""
msgid "Profile image guideline"
msgstr ""
msgid "ProfileSession|on" msgid "ProfileSession|on"
msgstr "" msgstr ""
...@@ -26574,6 +26616,9 @@ msgstr "" ...@@ -26574,6 +26616,9 @@ msgstr ""
msgid "Remove due date" msgid "Remove due date"
msgstr "" msgstr ""
msgid "Remove favicon"
msgstr ""
msgid "Remove file" msgid "Remove file"
msgstr "" msgstr ""
...@@ -26589,6 +26634,9 @@ msgstr "" ...@@ -26589,6 +26634,9 @@ msgstr ""
msgid "Remove group" msgid "Remove group"
msgstr "" msgstr ""
msgid "Remove header logo"
msgstr ""
msgid "Remove iteration" msgid "Remove iteration"
msgstr "" msgstr ""
...@@ -26604,6 +26652,9 @@ msgstr "" ...@@ -26604,6 +26652,9 @@ msgstr ""
msgid "Remove log" msgid "Remove log"
msgstr "" msgstr ""
msgid "Remove logo"
msgstr ""
msgid "Remove member" msgid "Remove member"
msgstr "" msgstr ""
...@@ -29394,6 +29445,9 @@ msgstr "" ...@@ -29394,6 +29445,9 @@ msgstr ""
msgid "Sign in with smart card" msgid "Sign in with smart card"
msgstr "" msgstr ""
msgid "Sign in/Sign up pages"
msgstr ""
msgid "Sign out" msgid "Sign out"
msgstr "" msgstr ""
...@@ -29406,6 +29460,9 @@ msgstr "" ...@@ -29406,6 +29460,9 @@ msgstr ""
msgid "Sign up was successful! Please confirm your email to sign in." msgid "Sign up was successful! Please confirm your email to sign in."
msgstr "" msgstr ""
msgid "Sign-in page"
msgstr ""
msgid "Sign-in restrictions" msgid "Sign-in restrictions"
msgstr "" msgstr ""
...@@ -34020,6 +34077,9 @@ msgstr "" ...@@ -34020,6 +34077,9 @@ msgstr ""
msgid "Update all" msgid "Update all"
msgstr "" msgstr ""
msgid "Update appearance settings"
msgstr ""
msgid "Update approval rule" msgid "Update approval rule"
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