Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b315af80
Commit
b315af80
authored
May 17, 2019
by
antonyliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Externalize strings of preferences page in user profile
parent
1ae718f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
13 deletions
+43
-13
app/views/profiles/preferences/show.html.haml
app/views/profiles/preferences/show.html.haml
+13
-13
locale/gitlab.pot
locale/gitlab.pot
+30
-0
No files found.
app/views/profiles/preferences/show.html.haml
View file @
b315af80
-
page_title
'Preferences'
-
page_title
_
(
'Preferences'
)
-
@content_class
=
"limit-container-width"
unless
fluid_layout
=
form_for
@user
,
url:
profile_preferences_path
,
remote:
true
,
method: :put
,
html:
{
class:
'row prepend-top-default js-preferences-form'
}
do
|
f
|
.col-lg-4.application-theme
%h4
.prepend-top-0
=
s_
(
'Preferences|Navigation theme'
)
%p
Customize the appearance of the application header and navigation sidebar.
%p
=
_
(
'Customize the appearance of the application header and navigation sidebar.'
)
.col-lg-8.application-theme
-
Gitlab
::
Themes
.
each
do
|
theme
|
=
label_tag
do
...
...
@@ -18,11 +18,11 @@
.col-lg-4.profile-settings-sidebar
%h4
.prepend-top-0
Syntax highlighting theme
=
_
(
'Syntax highlighting theme'
)
%p
This setting allows you to customize the appearance of the syntax.
=
_
(
'This setting allows you to customize the appearance of the syntax.'
)
=
succeed
'.'
do
=
link_to
'Learn more'
,
help_page_path
(
'user/profile/preferences'
,
anchor:
'syntax-highlighting-theme'
),
target:
'_blank'
=
link_to
_
(
'Learn more'
)
,
help_page_path
(
'user/profile/preferences'
,
anchor:
'syntax-highlighting-theme'
),
target:
'_blank'
.col-lg-8.syntax-theme
-
Gitlab
::
ColorSchemes
.
each
do
|
scheme
|
=
label_tag
do
...
...
@@ -35,31 +35,31 @@
.col-lg-4.profile-settings-sidebar
%h4
.prepend-top-0
Behavior
=
_
(
'Behavior'
)
%p
This setting allows you to customize the behavior of the system layout and default views.
=
_
(
'This setting allows you to customize the behavior of the system layout and default views.'
)
=
succeed
'.'
do
=
link_to
'Learn more'
,
help_page_path
(
'user/profile/preferences'
,
anchor:
'behavior'
),
target:
'_blank'
=
link_to
_
(
'Learn more'
)
,
help_page_path
(
'user/profile/preferences'
,
anchor:
'behavior'
),
target:
'_blank'
.col-lg-8
.form-group
=
f
.
label
:layout
,
class:
'label-bold'
do
Layout width
=
_
(
'Layout width'
)
=
f
.
select
:layout
,
layout_choices
,
{},
class:
'form-control'
.form-text.text-muted
Choose between fixed (max. 1280px) and fluid (100%) application layout.
=
_
(
'Choose between fixed (max. 1280px) and fluid (100%%) application layout.'
)
.form-group
=
f
.
label
:dashboard
,
class:
'label-bold'
do
Default dashboard
=
_
(
'Default dashboard'
)
=
f
.
select
:dashboard
,
dashboard_choices
,
{},
class:
'form-control'
=
render_if_exists
'profiles/preferences/group_overview_selector'
,
f:
f
# EE-specific
.form-group
=
f
.
label
:project_view
,
class:
'label-bold'
do
Project overview content
=
_
(
'Project overview content'
)
=
f
.
select
:project_view
,
project_view_choices
,
{},
class:
'form-control'
.form-text.text-muted
Choose what content you want to see on a project’s overview page.
=
_
(
'Choose what content you want to see on a project’s overview page.'
)
.col-sm-12
%hr
...
...
locale/gitlab.pot
View file @
b315af80
...
...
@@ -1443,6 +1443,9 @@ msgstr ""
msgid "Begin with the selected commit"
msgstr ""
msgid "Behavior"
msgstr ""
msgid "Below are examples of regex for existing tools:"
msgstr ""
...
...
@@ -1848,6 +1851,9 @@ msgstr ""
msgid "Choose between <code>clone</code> or <code>fetch</code> to get the recent application code"
msgstr ""
msgid "Choose between fixed (max. 1280px) and fluid (100%%) application layout."
msgstr ""
msgid "Choose file…"
msgstr ""
...
...
@@ -1857,6 +1863,9 @@ msgstr ""
msgid "Choose visibility level, enable/disable project features (issues, repository, wiki, snippets) and set permissions."
msgstr ""
msgid "Choose what content you want to see on a project’s overview page."
msgstr ""
msgid "Choose your merge method, options, checks, and set up a default merge request description template."
msgstr ""
...
...
@@ -3110,6 +3119,9 @@ msgstr ""
msgid "Customize language and region related settings."
msgstr ""
msgid "Customize the appearance of the application header and navigation sidebar."
msgstr ""
msgid "Customize your pipeline configuration, view your pipeline status and coverage report."
msgstr ""
...
...
@@ -3197,6 +3209,9 @@ msgstr ""
msgid "Default classification label"
msgstr ""
msgid "Default dashboard"
msgstr ""
msgid "Default first day of the week"
msgstr ""
...
...
@@ -5623,6 +5638,9 @@ msgstr ""
msgid "Latest pipeline for this branch"
msgstr ""
msgid "Layout width"
msgstr ""
msgid "Lead"
msgstr ""
...
...
@@ -7534,6 +7552,9 @@ msgstr ""
msgid "Project name"
msgstr ""
msgid "Project overview content"
msgstr ""
msgid "Project slug"
msgstr ""
...
...
@@ -9316,6 +9337,9 @@ msgstr ""
msgid "Switch to the source to copy it to the clipboard"
msgstr ""
msgid "Syntax highlighting theme"
msgstr ""
msgid "System Hooks"
msgstr ""
...
...
@@ -9996,6 +10020,12 @@ msgstr ""
msgid "This runner will only run on pipelines triggered on protected branches"
msgstr ""
msgid "This setting allows you to customize the appearance of the syntax."
msgstr ""
msgid "This setting allows you to customize the behavior of the system layout and default views."
msgstr ""
msgid "This setting can be overridden in each project."
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment