Commit 629dda38 authored by Mike Greiling's avatar Mike Greiling

Merge branch '33548-misleading-title-for-pages-access-control-on-pages-settings-2' into 'master'

Use translations on project settings page

See merge request gitlab-org/gitlab!19062
parents 95fb6865 5897e06d
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */
import settingsMixin from 'ee_else_ce/pages/projects/shared/permissions/mixins/settings_pannel_mixin'; import settingsMixin from 'ee_else_ce/pages/projects/shared/permissions/mixins/settings_pannel_mixin';
import { __ } from '~/locale'; import { s__ } from '~/locale';
import projectFeatureSetting from './project_feature_setting.vue'; import projectFeatureSetting from './project_feature_setting.vue';
import projectFeatureToggle from '~/vue_shared/components/toggle_button.vue'; import projectFeatureToggle from '~/vue_shared/components/toggle_button.vue';
import projectSettingRow from './project_setting_row.vue'; import projectSettingRow from './project_setting_row.vue';
...@@ -13,7 +12,7 @@ import { ...@@ -13,7 +12,7 @@ import {
} from '../constants'; } from '../constants';
import { toggleHiddenClassBySelector } from '../external'; import { toggleHiddenClassBySelector } from '../external';
const PAGE_FEATURE_ACCESS_LEVEL = __('Everyone'); const PAGE_FEATURE_ACCESS_LEVEL = s__('ProjectSettings|Everyone');
export default { export default {
components: { components: {
...@@ -207,7 +206,10 @@ export default { ...@@ -207,7 +206,10 @@ export default {
<template> <template>
<div> <div>
<div class="project-visibility-setting"> <div class="project-visibility-setting">
<project-setting-row :help-path="visibilityHelpPath" label="Project visibility"> <project-setting-row
:help-path="visibilityHelpPath"
:label="s__('ProjectSettings|Project visibility')"
>
<div class="project-feature-controls"> <div class="project-feature-controls">
<div class="select-wrapper"> <div class="select-wrapper">
<select <select
...@@ -220,17 +222,17 @@ export default { ...@@ -220,17 +222,17 @@ export default {
<option <option
:value="visibilityOptions.PRIVATE" :value="visibilityOptions.PRIVATE"
:disabled="!visibilityAllowed(visibilityOptions.PRIVATE)" :disabled="!visibilityAllowed(visibilityOptions.PRIVATE)"
>{{ __('Private') }}</option >{{ s__('ProjectSettings|Private') }}</option
> >
<option <option
:value="visibilityOptions.INTERNAL" :value="visibilityOptions.INTERNAL"
:disabled="!visibilityAllowed(visibilityOptions.INTERNAL)" :disabled="!visibilityAllowed(visibilityOptions.INTERNAL)"
>{{ __('Internal') }}</option >{{ s__('ProjectSettings|Internal') }}</option
> >
<option <option
:value="visibilityOptions.PUBLIC" :value="visibilityOptions.PUBLIC"
:disabled="!visibilityAllowed(visibilityOptions.PUBLIC)" :disabled="!visibilityAllowed(visibilityOptions.PUBLIC)"
>{{ __('Public') }}</option >{{ s__('ProjectSettings|Public') }}</option
> >
</select> </select>
<i aria-hidden="true" data-hidden="true" class="fa fa-chevron-down"></i> <i aria-hidden="true" data-hidden="true" class="fa fa-chevron-down"></i>
...@@ -243,14 +245,15 @@ export default { ...@@ -243,14 +245,15 @@ export default {
type="hidden" type="hidden"
name="project[request_access_enabled]" name="project[request_access_enabled]"
/> />
<input v-model="requestAccessEnabled" type="checkbox" /> Allow users to request access <input v-model="requestAccessEnabled" type="checkbox" />
{{ s__('ProjectSettings|Allow users to request access') }}
</label> </label>
</project-setting-row> </project-setting-row>
</div> </div>
<div :class="{ 'highlight-changes': highlightChangesClass }" class="project-feature-settings"> <div :class="{ 'highlight-changes': highlightChangesClass }" class="project-feature-settings">
<project-setting-row <project-setting-row
label="Issues" :label="s__('ProjectSettings|Issues')"
help-text="Lightweight issue tracking system for this project" :help-text="s__('ProjectSettings|Lightweight issue tracking system for this project')"
> >
<project-feature-setting <project-feature-setting
v-model="issuesAccessLevel" v-model="issuesAccessLevel"
...@@ -258,7 +261,10 @@ export default { ...@@ -258,7 +261,10 @@ export default {
name="project[project_feature_attributes][issues_access_level]" name="project[project_feature_attributes][issues_access_level]"
/> />
</project-setting-row> </project-setting-row>
<project-setting-row label="Repository" help-text="View and edit files in this project"> <project-setting-row
:label="s__('ProjectSettings|Repository')"
:help-text="s__('ProjectSettings|View and edit files in this project')"
>
<project-feature-setting <project-feature-setting
v-model="repositoryAccessLevel" v-model="repositoryAccessLevel"
:options="featureAccessLevelOptions" :options="featureAccessLevelOptions"
...@@ -267,8 +273,8 @@ export default { ...@@ -267,8 +273,8 @@ export default {
</project-setting-row> </project-setting-row>
<div class="project-feature-setting-group"> <div class="project-feature-setting-group">
<project-setting-row <project-setting-row
label="Merge requests" :label="s__('ProjectSettings|Merge requests')"
help-text="Submit changes to be merged upstream" :help-text="s__('ProjectSettings|Submit changes to be merged upstream')"
> >
<project-feature-setting <project-feature-setting
v-model="mergeRequestsAccessLevel" v-model="mergeRequestsAccessLevel"
...@@ -277,7 +283,10 @@ export default { ...@@ -277,7 +283,10 @@ export default {
name="project[project_feature_attributes][merge_requests_access_level]" name="project[project_feature_attributes][merge_requests_access_level]"
/> />
</project-setting-row> </project-setting-row>
<project-setting-row label="Pipelines" help-text="Build, test, and deploy your changes"> <project-setting-row
:label="s__('ProjectSettings|Pipelines')"
:help-text="s__('ProjectSettings|Build, test, and deploy your changes')"
>
<project-feature-setting <project-feature-setting
v-model="buildsAccessLevel" v-model="buildsAccessLevel"
:options="repoFeatureAccessLevelOptions" :options="repoFeatureAccessLevelOptions"
...@@ -288,11 +297,17 @@ export default { ...@@ -288,11 +297,17 @@ export default {
<project-setting-row <project-setting-row
v-if="registryAvailable" v-if="registryAvailable"
:help-path="registryHelpPath" :help-path="registryHelpPath"
label="Container registry" :label="s__('ProjectSettings|Container registry')"
help-text="Every project can have its own space to store its Docker images" :help-text="
s__('ProjectSettings|Every project can have its own space to store its Docker images')
"
> >
<div v-if="showContainerRegistryPublicNote" class="text-muted"> <div v-if="showContainerRegistryPublicNote" class="text-muted">
{{ __('Note: the container registry is always visible when a project is public') }} {{
s__(
'ProjectSettings|Note: the container registry is always visible when a project is public',
)
}}
</div> </div>
<project-feature-toggle <project-feature-toggle
v-model="containerRegistryEnabled" v-model="containerRegistryEnabled"
...@@ -303,8 +318,10 @@ export default { ...@@ -303,8 +318,10 @@ export default {
<project-setting-row <project-setting-row
v-if="lfsAvailable" v-if="lfsAvailable"
:help-path="lfsHelpPath" :help-path="lfsHelpPath"
label="Git Large File Storage" :label="s__('ProjectSettings|Git Large File Storage')"
help-text="Manages large files such as audio, video, and graphics files" :help-text="
s__('ProjectSettings|Manages large files such as audio, video, and graphics files')
"
> >
<project-feature-toggle <project-feature-toggle
v-model="lfsEnabled" v-model="lfsEnabled"
...@@ -315,8 +332,10 @@ export default { ...@@ -315,8 +332,10 @@ export default {
<project-setting-row <project-setting-row
v-if="packagesAvailable" v-if="packagesAvailable"
:help-path="packagesHelpPath" :help-path="packagesHelpPath"
label="Packages" :label="s__('ProjectSettings|Packages')"
help-text="Every project can have its own space to store its packages" :help-text="
s__('ProjectSettings|Every project can have its own space to store its packages')
"
> >
<project-feature-toggle <project-feature-toggle
v-model="packagesEnabled" v-model="packagesEnabled"
...@@ -325,7 +344,10 @@ export default { ...@@ -325,7 +344,10 @@ export default {
/> />
</project-setting-row> </project-setting-row>
</div> </div>
<project-setting-row label="Wiki" help-text="Pages for project documentation"> <project-setting-row
:label="s__('ProjectSettings|Wiki')"
:help-text="s__('ProjectSettings|Pages for project documentation')"
>
<project-feature-setting <project-feature-setting
v-model="wikiAccessLevel" v-model="wikiAccessLevel"
:options="featureAccessLevelOptions" :options="featureAccessLevelOptions"
...@@ -333,8 +355,8 @@ export default { ...@@ -333,8 +355,8 @@ export default {
/> />
</project-setting-row> </project-setting-row>
<project-setting-row <project-setting-row
label="Snippets" :label="s__('ProjectSettings|Snippets')"
help-text="Share code pastes with others out of Git repository" :help-text="s__('ProjectSettings|Share code pastes with others out of Git repository')"
> >
<project-feature-setting <project-feature-setting
v-model="snippetsAccessLevel" v-model="snippetsAccessLevel"
...@@ -346,7 +368,9 @@ export default { ...@@ -346,7 +368,9 @@ export default {
v-if="pagesAvailable && pagesAccessControlEnabled" v-if="pagesAvailable && pagesAccessControlEnabled"
:help-path="pagesHelpPath" :help-path="pagesHelpPath"
:label="s__('ProjectSettings|Pages')" :label="s__('ProjectSettings|Pages')"
:help-text="__('With GitLab Pages you can host your static websites on GitLab')" :help-text="
s__('ProjectSettings|With GitLab Pages you can host your static websites on GitLab')
"
> >
<project-feature-setting <project-feature-setting
v-model="pagesAccessLevel" v-model="pagesAccessLevel"
...@@ -358,10 +382,13 @@ export default { ...@@ -358,10 +382,13 @@ export default {
<project-setting-row v-if="canDisableEmails" class="mb-3"> <project-setting-row v-if="canDisableEmails" class="mb-3">
<label class="js-emails-disabled"> <label class="js-emails-disabled">
<input :value="emailsDisabled" type="hidden" name="project[emails_disabled]" /> <input :value="emailsDisabled" type="hidden" name="project[emails_disabled]" />
<input v-model="emailsDisabled" type="checkbox" /> {{ __('Disable email notifications') }} <input v-model="emailsDisabled" type="checkbox" />
{{ s__('ProjectSettings|Disable email notifications') }}
</label> </label>
<span class="form-text text-muted">{{ <span class="form-text text-muted">{{
__('This setting will override user notification preferences for all project members.') s__(
'ProjectSettings|This setting will override user notification preferences for all project members.',
)
}}</span> }}</span>
</project-setting-row> </project-setting-row>
</div> </div>
......
...@@ -5628,9 +5628,6 @@ msgstr "" ...@@ -5628,9 +5628,6 @@ msgstr ""
msgid "Disable" msgid "Disable"
msgstr "" msgstr ""
msgid "Disable email notifications"
msgstr ""
msgid "Disable for this project" msgid "Disable for this project"
msgstr "" msgstr ""
...@@ -11202,9 +11199,6 @@ msgstr "" ...@@ -11202,9 +11199,6 @@ msgstr ""
msgid "Note: Consider asking your GitLab administrator to configure %{github_integration_link}, which will allow login via GitHub and allow importing repositories without generating a Personal Access Token." msgid "Note: Consider asking your GitLab administrator to configure %{github_integration_link}, which will allow login via GitHub and allow importing repositories without generating a Personal Access Token."
msgstr "" msgstr ""
msgid "Note: the container registry is always visible when a project is public"
msgstr ""
msgid "NoteForm|Note" msgid "NoteForm|Note"
msgstr "" msgstr ""
...@@ -12869,12 +12863,18 @@ msgstr "" ...@@ -12869,12 +12863,18 @@ msgstr ""
msgid "ProjectSettings|All discussions must be resolved" msgid "ProjectSettings|All discussions must be resolved"
msgstr "" msgstr ""
msgid "ProjectSettings|Allow users to request access"
msgstr ""
msgid "ProjectSettings|Automatically resolve merge request diff discussions when they become outdated" msgid "ProjectSettings|Automatically resolve merge request diff discussions when they become outdated"
msgstr "" msgstr ""
msgid "ProjectSettings|Badges" msgid "ProjectSettings|Badges"
msgstr "" msgstr ""
msgid "ProjectSettings|Build, test, and deploy your changes"
msgstr ""
msgid "ProjectSettings|Choose your merge method, merge options, and merge checks." msgid "ProjectSettings|Choose your merge method, merge options, and merge checks."
msgstr "" msgstr ""
...@@ -12884,15 +12884,30 @@ msgstr "" ...@@ -12884,15 +12884,30 @@ msgstr ""
msgid "ProjectSettings|Contact an admin to change this setting." msgid "ProjectSettings|Contact an admin to change this setting."
msgstr "" msgstr ""
msgid "ProjectSettings|Container registry"
msgstr ""
msgid "ProjectSettings|Customize your project badges." msgid "ProjectSettings|Customize your project badges."
msgstr "" msgstr ""
msgid "ProjectSettings|Disable email notifications"
msgstr ""
msgid "ProjectSettings|Enable 'Delete source branch' option by default" msgid "ProjectSettings|Enable 'Delete source branch' option by default"
msgstr "" msgstr ""
msgid "ProjectSettings|Every merge creates a merge commit" msgid "ProjectSettings|Every merge creates a merge commit"
msgstr "" msgstr ""
msgid "ProjectSettings|Every project can have its own space to store its Docker images"
msgstr ""
msgid "ProjectSettings|Every project can have its own space to store its packages"
msgstr ""
msgid "ProjectSettings|Everyone"
msgstr ""
msgid "ProjectSettings|Existing merge requests and protected branches are not affected" msgid "ProjectSettings|Existing merge requests and protected branches are not affected"
msgstr "" msgstr ""
...@@ -12908,9 +12923,24 @@ msgstr "" ...@@ -12908,9 +12923,24 @@ msgstr ""
msgid "ProjectSettings|Fast-forward merges only" msgid "ProjectSettings|Fast-forward merges only"
msgstr "" msgstr ""
msgid "ProjectSettings|Git Large File Storage"
msgstr ""
msgid "ProjectSettings|Internal"
msgstr ""
msgid "ProjectSettings|Issues"
msgstr ""
msgid "ProjectSettings|Learn more about badges." msgid "ProjectSettings|Learn more about badges."
msgstr "" msgstr ""
msgid "ProjectSettings|Lightweight issue tracking system for this project"
msgstr ""
msgid "ProjectSettings|Manages large files such as audio, video, and graphics files"
msgstr ""
msgid "ProjectSettings|Merge checks" msgid "ProjectSettings|Merge checks"
msgstr "" msgstr ""
...@@ -12929,24 +12959,60 @@ msgstr "" ...@@ -12929,24 +12959,60 @@ msgstr ""
msgid "ProjectSettings|Merge pipelines will try to validate the post-merge result prior to merging" msgid "ProjectSettings|Merge pipelines will try to validate the post-merge result prior to merging"
msgstr "" msgstr ""
msgid "ProjectSettings|Merge requests"
msgstr ""
msgid "ProjectSettings|No merge commits are created" msgid "ProjectSettings|No merge commits are created"
msgstr "" msgstr ""
msgid "ProjectSettings|Note: the container registry is always visible when a project is public"
msgstr ""
msgid "ProjectSettings|Only signed commits can be pushed to this repository." msgid "ProjectSettings|Only signed commits can be pushed to this repository."
msgstr "" msgstr ""
msgid "ProjectSettings|Packages"
msgstr ""
msgid "ProjectSettings|Pages" msgid "ProjectSettings|Pages"
msgstr "" msgstr ""
msgid "ProjectSettings|Pages for project documentation"
msgstr ""
msgid "ProjectSettings|Pipelines"
msgstr ""
msgid "ProjectSettings|Pipelines must succeed" msgid "ProjectSettings|Pipelines must succeed"
msgstr "" msgstr ""
msgid "ProjectSettings|Pipelines need to be configured to enable this feature." msgid "ProjectSettings|Pipelines need to be configured to enable this feature."
msgstr "" msgstr ""
msgid "ProjectSettings|Private"
msgstr ""
msgid "ProjectSettings|Project visibility"
msgstr ""
msgid "ProjectSettings|Public"
msgstr ""
msgid "ProjectSettings|Repository"
msgstr ""
msgid "ProjectSettings|Share code pastes with others out of Git repository"
msgstr ""
msgid "ProjectSettings|Show link to create/view merge request when pushing from the command line" msgid "ProjectSettings|Show link to create/view merge request when pushing from the command line"
msgstr "" msgstr ""
msgid "ProjectSettings|Snippets"
msgstr ""
msgid "ProjectSettings|Submit changes to be merged upstream"
msgstr ""
msgid "ProjectSettings|These checks must pass before merge requests can be merged" msgid "ProjectSettings|These checks must pass before merge requests can be merged"
msgstr "" msgstr ""
...@@ -12959,15 +13025,27 @@ msgstr "" ...@@ -12959,15 +13025,27 @@ msgstr ""
msgid "ProjectSettings|This setting will be applied to all projects unless overridden by an admin." msgid "ProjectSettings|This setting will be applied to all projects unless overridden by an admin."
msgstr "" msgstr ""
msgid "ProjectSettings|This setting will override user notification preferences for all project members."
msgstr ""
msgid "ProjectSettings|This will dictate the commit history when you merge a merge request" msgid "ProjectSettings|This will dictate the commit history when you merge a merge request"
msgstr "" msgstr ""
msgid "ProjectSettings|Users can only push commits to this repository that were committed with one of their own verified emails." msgid "ProjectSettings|Users can only push commits to this repository that were committed with one of their own verified emails."
msgstr "" msgstr ""
msgid "ProjectSettings|View and edit files in this project"
msgstr ""
msgid "ProjectSettings|When conflicts arise the user is given the option to rebase" msgid "ProjectSettings|When conflicts arise the user is given the option to rebase"
msgstr "" msgstr ""
msgid "ProjectSettings|Wiki"
msgstr ""
msgid "ProjectSettings|With GitLab Pages you can host your static websites on GitLab"
msgstr ""
msgid "ProjectTemplates|.NET Core" msgid "ProjectTemplates|.NET Core"
msgstr "" msgstr ""
...@@ -17034,9 +17112,6 @@ msgstr "" ...@@ -17034,9 +17112,6 @@ msgstr ""
msgid "This setting can be overridden in each project." msgid "This setting can be overridden in each project."
msgstr "" msgstr ""
msgid "This setting will override user notification preferences for all project members."
msgstr ""
msgid "This setting will update the hostname that is used to generate private commit emails. %{learn_more}" msgid "This setting will update the hostname that is used to generate private commit emails. %{learn_more}"
msgstr "" msgstr ""
...@@ -18932,9 +19007,6 @@ msgstr "" ...@@ -18932,9 +19007,6 @@ msgstr ""
msgid "Will deploy to" msgid "Will deploy to"
msgstr "" msgstr ""
msgid "With GitLab Pages you can host your static websites on GitLab"
msgstr ""
msgid "With contribution analytics you can have an overview for the activity of issues, merge requests and push events of your organization and its members." msgid "With contribution analytics you can have an overview for the activity of issues, merge requests and push events of your organization and its members."
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