Commit f08bb6b4 authored by George Tsiolis's avatar George Tsiolis

Externalize strings from `/app/views/projects/pages_domains`

parent 0752dd48
......@@ -6,25 +6,24 @@
.form-group.row
= f.label :domain, class: 'col-form-label col-sm-2' do
Domain
= _("Domain")
.col-sm-10
= f.text_field :domain, required: true, autocomplete: 'off', class: 'form-control', disabled: @domain.persisted?
- if Gitlab.config.pages.external_https
.form-group.row
= f.label :certificate, class: 'col-form-label col-sm-2' do
Certificate (PEM)
= _("Certificate (PEM)")
.col-sm-10
= f.text_area :certificate, rows: 5, class: 'form-control'
%span.help-inline Upload a certificate for your domain with all intermediates
%span.help-inline= _("Upload a certificate for your domain with all intermediates")
.form-group.row
= f.label :key, class: 'col-form-label col-sm-2' do
Key (PEM)
= _("Key (PEM)")
.col-sm-10
= f.text_area :key, rows: 5, class: 'form-control'
%span.help-inline Upload a private key for your certificate
%span.help-inline= _("Upload a private key for your certificate")
- else
.nothing-here-block
Support for custom certificates is disabled.
Ask your system's administrator to enable it.
= _("Support for custom certificates is disabled. Ask your system's administrator to enable it.")
- add_to_breadcrumbs "Pages", project_pages_path(@project)
- add_to_breadcrumbs _("Pages"), project_pages_path(@project)
- breadcrumb_title @domain.domain
- page_title @domain.domain
%h3.page-title
......@@ -8,4 +8,4 @@
= form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'fieldset-form' } do |f|
= render 'form', { f: f }
.form-actions
= f.submit 'Save Changes', class: "btn btn-success"
= f.submit _('Save Changes'), class: "btn btn-success"
- add_to_breadcrumbs "Pages", project_pages_path(@project)
- page_title 'New Pages Domain'
- add_to_breadcrumbs _("Pages"), project_pages_path(@project)
- page_title _('New Pages Domain')
%h3.page-title
New Pages Domain
= _("New Pages Domain")
%hr.clearfix
%div
= form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'fieldset-form' } do |f|
= render 'form', { f: f }
.form-actions
= f.submit 'Create New Domain', class: "btn btn-success"
= f.submit _('Create New Domain'), class: "btn btn-success"
.float-right
= link_to _('Cancel'), project_pages_path(@project), class: 'btn btn-cancel'
- add_to_breadcrumbs "Pages", project_pages_path(@project)
- add_to_breadcrumbs _("Pages"), project_pages_path(@project)
- breadcrumb_title @domain.domain
- page_title "#{@domain.domain}", 'Pages Domains'
- page_title "#{@domain.domain}", _('Pages Domains')
- dns_record = "#{@domain.domain} CNAME #{@domain.project.pages_subdomain}.#{Settings.pages.host}."
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
......@@ -9,37 +9,37 @@
= content_for :flash_message do
.alert.alert-warning
.container-fluid.container-limited
This domain is not verified. You will need to verify ownership before access is enabled.
= _("This domain is not verified. You will need to verify ownership before access is enabled.")
%h3.page-title.with-button
= link_to 'Edit', edit_project_pages_domain_path(@project, @domain), class: 'btn btn-success float-right'
Pages Domain
= link_to _('Edit'), edit_project_pages_domain_path(@project, @domain), class: 'btn btn-success float-right'
= _("Pages Domain")
.table-holder
%table.table
%tr
%td
Domain
= _("Domain")
%td
= link_to @domain.url do
= @domain.url
= icon('external-link')
%tr
%td
DNS
= _("DNS")
%td
.input-group
= text_field_tag :domain_dns, dns_record , class: "monospace js-select-on-focus form-control", readonly: true
.input-group-append
= clipboard_button(target: '#domain_dns', class: 'btn-default input-group-text d-none d-sm-block')
%p.form-text.text-muted
To access this domain create a new DNS record
= _("To access this domain create a new DNS record")
- if verification_enabled
- verification_record = "#{@domain.verification_domain} TXT #{@domain.keyed_verification_code}"
%tr
%td
Verification status
= _("Verification status")
%td
= form_tag verify_project_pages_domain_path(@project, @domain) do
.status-badge
......@@ -53,17 +53,16 @@
.input-group-append
= clipboard_button(target: '#domain_verification', class: 'btn-default d-none d-sm-block')
%p.form-text.text-muted
- help_link = help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record')
To #{link_to 'verify ownership', help_link} of your domain,
add the above key to a TXT record within to your DNS configuration.
- link_to_help = link_to(_('verify ownership'), help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record'))
= _("To %{link_to_help} of your domain, add the above key to a TXT record within to your DNS configuration.").html_safe % { link_to_help: link_to_help }
%tr
%td
Certificate
= _("Certificate")
%td
- if @domain.certificate_text
%pre
= @domain.certificate_text
- else
.light
missing
= _("missing")
---
title: Externalize strings from `/app/views/projects/pages_domains`
merge_request: 24723
author: George Tsiolis
type: other
......@@ -1594,6 +1594,12 @@ msgstr ""
msgid "Cannot modify managed Kubernetes cluster"
msgstr ""
msgid "Certificate"
msgstr ""
msgid "Certificate (PEM)"
msgstr ""
msgid "Certificate fingerprint"
msgstr ""
......@@ -2676,6 +2682,9 @@ msgstr ""
msgid "Create New Directory"
msgstr ""
msgid "Create New Domain"
msgstr ""
msgid "Create a new branch"
msgstr ""
......@@ -2853,6 +2862,9 @@ msgstr ""
msgid "CycleAnalyticsStage|Test"
msgstr ""
msgid "DNS"
msgstr ""
msgid "Dashboard"
msgstr ""
......@@ -5184,6 +5196,9 @@ msgstr ""
msgid "June"
msgstr ""
msgid "Key (PEM)"
msgstr ""
msgid "Kubernetes"
msgstr ""
......@@ -6018,6 +6033,9 @@ msgstr[1] ""
msgid "New Label"
msgstr ""
msgid "New Pages Domain"
msgstr ""
msgid "New Pipeline Schedule"
msgstr ""
......@@ -6470,6 +6488,12 @@ msgstr ""
msgid "Pages"
msgstr ""
msgid "Pages Domain"
msgstr ""
msgid "Pages Domains"
msgstr ""
msgid "Pagination|Last »"
msgstr ""
......@@ -7881,6 +7905,9 @@ msgstr ""
msgid "Save"
msgstr ""
msgid "Save Changes"
msgstr ""
msgid "Save application"
msgstr ""
......@@ -8855,6 +8882,9 @@ msgstr ""
msgid "Suggested change"
msgstr ""
msgid "Support for custom certificates is disabled. Ask your system's administrator to enable it."
msgstr ""
msgid "Switch branch/tag"
msgstr ""
......@@ -9233,6 +9263,9 @@ msgstr ""
msgid "This directory"
msgstr ""
msgid "This domain is not verified. You will need to verify ownership before access is enabled."
msgstr ""
msgid "This group"
msgstr ""
......@@ -9573,9 +9606,15 @@ msgstr ""
msgid "Titles and Filenames"
msgstr ""
msgid "To %{link_to_help} of your domain, add the above key to a TXT record within to your DNS configuration."
msgstr ""
msgid "To GitLab"
msgstr ""
msgid "To access this domain create a new DNS record"
msgstr ""
msgid "To add an SSH key you need to %{generate_link_start}generate one%{link_end} or use an %{existing_link_start}existing key%{link_end}."
msgstr ""
......@@ -9894,6 +9933,12 @@ msgstr ""
msgid "Upload New File"
msgstr ""
msgid "Upload a certificate for your domain with all intermediates"
msgstr ""
msgid "Upload a private key for your certificate"
msgstr ""
msgid "Upload file"
msgstr ""
......@@ -10026,6 +10071,9 @@ msgstr ""
msgid "Verification information"
msgstr ""
msgid "Verification status"
msgstr ""
msgid "Verified"
msgstr ""
......@@ -10995,6 +11043,9 @@ msgid_plural "merge requests"
msgstr[0] ""
msgstr[1] ""
msgid "missing"
msgstr ""
msgid "mrWidget| Please restore it or use a different %{missingBranchName} branch"
msgstr ""
......@@ -11352,6 +11403,9 @@ msgstr ""
msgid "uses Kubernetes clusters to deploy your code!"
msgstr ""
msgid "verify ownership"
msgstr ""
msgid "view it on GitLab"
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