Commit e8bbb804 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '337622-add-translation-scopes-to-trial-form' into 'master'

Add translation scopes to trial form

See merge request gitlab-org/gitlab!67678
parents c2c72f44 ffcf8c28
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
%p.gl-text-center %p.gl-text-center
- if remove_known_trial_form_fields_variant == :welcoming - if remove_known_trial_form_fields_variant == :welcoming
- salutation = current_user.first_name.present? ? " #{current_user.first_name}" : '' - salutation = current_user.first_name.present? ? " #{current_user.first_name}" : ''
- company = current_user.organization.present? ? current_user.organization : _('your company') - company = current_user.organization.present? ? current_user.organization : s_('Trial|your company')
= _("Hi%{salutation}, your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information about %{company} to activate your trial.") % { salutation: salutation, company: company } = s_("Trial|Hi%{salutation}, your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information about %{company} to activate your trial.") % { salutation: salutation, company: company }
- else - else
= _('Your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information to activate your trial.') = s_('Trial|Your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information to activate your trial.')
= render 'errors' = render 'errors'
...@@ -21,36 +21,36 @@ ...@@ -21,36 +21,36 @@
= hidden_field_tag :first_name, current_user.first_name = hidden_field_tag :first_name, current_user.first_name
- else - else
.form-group .form-group
= label_tag :first_name, _('First name'), for: :first_name, class: 'col-form-label' = label_tag :first_name, s_('Trial|First name'), for: :first_name, class: 'col-form-label'
- readonly = remove_known_trial_form_fields_variant == :noneditable && current_user.first_name.present? - readonly = remove_known_trial_form_fields_variant == :noneditable && current_user.first_name.present?
= text_field_tag :first_name, params[:first_name] || current_user.first_name, class: 'form-control gl-form-input', required: true, data: { qa_selector: 'first_name' }, readonly: readonly = text_field_tag :first_name, params[:first_name] || current_user.first_name, class: 'form-control gl-form-input', required: true, data: { qa_selector: 'first_name' }, readonly: readonly
- if remove_known_trial_form_fields_variant == :welcoming && current_user.last_name.present? - if remove_known_trial_form_fields_variant == :welcoming && current_user.last_name.present?
= hidden_field_tag :last_name, current_user.last_name = hidden_field_tag :last_name, current_user.last_name
- else - else
.form-group .form-group
= label_tag :last_name, _('Last name'), for: :last_name, class: 'col-form-label' = label_tag :last_name, s_('Trial|Last name'), for: :last_name, class: 'col-form-label'
- readonly = remove_known_trial_form_fields_variant == :noneditable && current_user.last_name.present? - readonly = remove_known_trial_form_fields_variant == :noneditable && current_user.last_name.present?
= text_field_tag :last_name, params[:last_name] || current_user.last_name, class: 'form-control gl-form-input', required: true, data: { qa_selector: 'last_name' }, readonly: readonly = text_field_tag :last_name, params[:last_name] || current_user.last_name, class: 'form-control gl-form-input', required: true, data: { qa_selector: 'last_name' }, readonly: readonly
- if remove_known_trial_form_fields_variant == :welcoming && current_user.organization.present? - if remove_known_trial_form_fields_variant == :welcoming && current_user.organization.present?
= hidden_field_tag :company_name, current_user.organization = hidden_field_tag :company_name, current_user.organization
- else - else
.form-group .form-group
= label_tag :company_name, _('Company name'), for: :company_name, class: 'col-form-label' = label_tag :company_name, s_('Trial|Company name'), for: :company_name, class: 'col-form-label'
- readonly = remove_known_trial_form_fields_variant == :noneditable && current_user.organization.present? - readonly = remove_known_trial_form_fields_variant == :noneditable && current_user.organization.present?
= text_field_tag :company_name, params[:company_name] || current_user.organization, class: 'form-control gl-form-input', required: true, data: { qa_selector: 'company_name' }, readonly: readonly = text_field_tag :company_name, params[:company_name] || current_user.organization, class: 'form-control gl-form-input', required: true, data: { qa_selector: 'company_name' }, readonly: readonly
.form-group.gl-select2-html5-required-fix .form-group.gl-select2-html5-required-fix
= label_tag :company_size, _('Number of employees'), for: :company_size, class: 'col-form-label' = label_tag :company_size, s_('Trial|Number of employees'), for: :company_size, class: 'col-form-label'
= select_tag :company_size, company_size_options_for_select(params[:company_size]), class: 'select2', required: true, data: { qa_selector: 'number_of_employees' } = select_tag :company_size, company_size_options_for_select(params[:company_size]), class: 'select2', required: true, data: { qa_selector: 'number_of_employees' }
.form-group .form-group
= label_tag :phone_number, _('Telephone number'), for: :phone_number, class: 'col-form-label' = label_tag :phone_number, s_('Trial|Telephone number'), for: :phone_number, class: 'col-form-label'
= telephone_field_tag :phone_number, params[:phone_number], pattern: '^(\+)*[0-9-\s]+$', class: 'form-control gl-form-input', required: true, data: { qa_selector: 'telephone_number' } = telephone_field_tag :phone_number, params[:phone_number], pattern: '^(\+)*[0-9-\s]+$', class: 'form-control gl-form-input', required: true, data: { qa_selector: 'telephone_number' }
%p.gl-text-gray-500= _('Allowed characters: +, 0-9, -, and spaces.') %p.gl-text-gray-500= _('Allowed characters: +, 0-9, -, and spaces.')
.form-group .form-group
= label_tag :number_of_users, _('How many users will be evaluating the trial?'), for: :number_of_users, class: 'col-form-label' = label_tag :number_of_users, s_('Trial|How many users will be evaluating the trial?'), for: :number_of_users, class: 'col-form-label'
= number_field_tag :number_of_users, params[:number_of_users], class: 'form-control gl-form-input', required: true, min: 1, data: { qa_selector: 'number_of_users' } = number_field_tag :number_of_users, params[:number_of_users], class: 'form-control gl-form-input', required: true, min: 1, data: { qa_selector: 'number_of_users' }
.form-group.gl-select2-html5-required-fix .form-group.gl-select2-html5-required-fix
= label_tag :country, _('Country'), class: 'col-form-label' = label_tag :country, s_('Trial|Country'), class: 'col-form-label'
= select_tag :country, options_for_select([[_('Please select a country'), '']]), class: 'select2 gl-transparent-pixel', required: true, id: 'country_select', data: { countries_end_point: countries_path, selected_option: params[:country], qa_selector: 'country' } = select_tag :country, options_for_select([[s_('Trial|Please select a country'), '']]), class: 'select2 gl-transparent-pixel', required: true, id: 'country_select', data: { countries_end_point: countries_path, selected_option: params[:country], qa_selector: 'country' }
= submit_tag _('Continue'), class: 'btn gl-button btn-confirm btn-block', data: { qa_selector: 'continue' } = submit_tag s_('Trial|Continue'), class: 'btn gl-button btn-confirm btn-block', data: { qa_selector: 'continue' }
= render 'skip_trial' = render 'skip_trial'
...@@ -8209,9 +8209,6 @@ msgstr "" ...@@ -8209,9 +8209,6 @@ msgstr ""
msgid "Company" msgid "Company"
msgstr "" msgstr ""
msgid "Company name"
msgstr ""
msgid "Compare" msgid "Compare"
msgstr "" msgstr ""
...@@ -9289,9 +9286,6 @@ msgstr "" ...@@ -9289,9 +9286,6 @@ msgstr ""
msgid "Couldn't assign policy to project" msgid "Couldn't assign policy to project"
msgstr "" msgstr ""
msgid "Country"
msgstr ""
msgid "Coverage" msgid "Coverage"
msgstr "" msgstr ""
...@@ -16370,9 +16364,6 @@ msgstr "" ...@@ -16370,9 +16364,6 @@ msgstr ""
msgid "Hi %{username}!" msgid "Hi %{username}!"
msgstr "" msgstr ""
msgid "Hi%{salutation}, your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information about %{company} to activate your trial."
msgstr ""
msgid "Hide" msgid "Hide"
msgstr "" msgstr ""
...@@ -16509,9 +16500,6 @@ msgstr "" ...@@ -16509,9 +16500,6 @@ msgstr ""
msgid "How many seconds an IP will be counted towards the limit" msgid "How many seconds an IP will be counted towards the limit"
msgstr "" msgstr ""
msgid "How many users will be evaluating the trial?"
msgstr ""
msgid "I accept the %{terms_link}" msgid "I accept the %{terms_link}"
msgstr "" msgstr ""
...@@ -22918,9 +22906,6 @@ msgstr "" ...@@ -22918,9 +22906,6 @@ msgstr ""
msgid "Number of commits per MR" msgid "Number of commits per MR"
msgstr "" msgstr ""
msgid "Number of employees"
msgstr ""
msgid "Number of events" msgid "Number of events"
msgstr "" msgstr ""
...@@ -32449,9 +32434,6 @@ msgstr "" ...@@ -32449,9 +32434,6 @@ msgstr ""
msgid "TeamcityIntegration|Trigger TeamCity CI after every push to the repository, except branch delete" msgid "TeamcityIntegration|Trigger TeamCity CI after every push to the repository, except branch delete"
msgstr "" msgstr ""
msgid "Telephone number"
msgstr ""
msgid "Tell us your experiences with the new Markdown editor %{linkStart}in this feedback issue%{linkEnd}." msgid "Tell us your experiences with the new Markdown editor %{linkStart}in this feedback issue%{linkEnd}."
msgstr "" msgstr ""
...@@ -35011,6 +34993,9 @@ msgstr "" ...@@ -35011,6 +34993,9 @@ msgstr ""
msgid "Trial|Company name" msgid "Trial|Company name"
msgstr "" msgstr ""
msgid "Trial|Continue"
msgstr ""
msgid "Trial|Continue using the basic features of GitLab for free." msgid "Trial|Continue using the basic features of GitLab for free."
msgstr "" msgstr ""
...@@ -35020,15 +35005,30 @@ msgstr "" ...@@ -35020,15 +35005,30 @@ msgstr ""
msgid "Trial|Dismiss" msgid "Trial|Dismiss"
msgstr "" msgstr ""
msgid "Trial|First name"
msgstr ""
msgid "Trial|GitLab Ultimate trial (optional)" msgid "Trial|GitLab Ultimate trial (optional)"
msgstr "" msgstr ""
msgid "Trial|Hi%{salutation}, your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information about %{company} to activate your trial."
msgstr ""
msgid "Trial|How many employees will use Gitlab?" msgid "Trial|How many employees will use Gitlab?"
msgstr "" msgstr ""
msgid "Trial|How many users will be evaluating the trial?"
msgstr ""
msgid "Trial|Last name"
msgstr ""
msgid "Trial|Number of employees" msgid "Trial|Number of employees"
msgstr "" msgstr ""
msgid "Trial|Please select a country"
msgstr ""
msgid "Trial|Successful trial activation image" msgid "Trial|Successful trial activation image"
msgstr "" msgstr ""
...@@ -35041,6 +35041,12 @@ msgstr "" ...@@ -35041,6 +35041,12 @@ msgstr ""
msgid "Trial|We will activate your trial on your group after you complete this step. After 30 days, you can:" msgid "Trial|We will activate your trial on your group after you complete this step. After 30 days, you can:"
msgstr "" msgstr ""
msgid "Trial|Your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information to activate your trial."
msgstr ""
msgid "Trial|your company"
msgstr ""
msgid "Trigger" msgid "Trigger"
msgstr "" msgstr ""
...@@ -38233,9 +38239,6 @@ msgstr "" ...@@ -38233,9 +38239,6 @@ msgstr ""
msgid "Your GPG keys (%{count})" msgid "Your GPG keys (%{count})"
msgstr "" msgstr ""
msgid "Your GitLab Ultimate trial lasts for 30 days, but you can keep your free GitLab account forever. We just need some additional information to activate your trial."
msgstr ""
msgid "Your GitLab account has been locked due to an excessive amount of unsuccessful sign in attempts. Your account will automatically unlock in %{duration} or you may click the link below to unlock now." msgid "Your GitLab account has been locked due to an excessive amount of unsuccessful sign in attempts. Your account will automatically unlock in %{duration} or you may click the link below to unlock now."
msgstr "" msgstr ""
...@@ -40180,8 +40183,5 @@ msgstr "" ...@@ -40180,8 +40183,5 @@ msgstr ""
msgid "yaml invalid" msgid "yaml invalid"
msgstr "" msgstr ""
msgid "your company"
msgstr ""
msgid "your settings" msgid "your settings"
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