BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2f6d02c4
Commit
2f6d02c4
authored
Jul 13, 2017
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always return the translated level name.
There are many places that expect the `.level_name` method to return the translated level name.
parent
48b976e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
visibility_level.rb
lib/gitlab/visibility_level.rb
+2
-2
gitlab.po
locale/es/gitlab.po
+4
-1
gitlab.pot
locale/gitlab.pot
+5
-2
No files found.
lib/gitlab/visibility_level.rb
View file @
2f6d02c4
...
...
@@ -89,12 +89,12 @@ module Gitlab
end
def
level_name
(
level
)
level_name
=
'Unknown'
level_name
=
N_
(
'VisibilityLevel|Unknown'
)
options
.
each
do
|
name
,
lvl
|
level_name
=
name
if
lvl
==
level
.
to_i
end
level_name
s_
(
level_name
)
end
def
level_value
(
level
)
...
...
locale/es/gitlab.po
View file @
2f6d02c4
...
...
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2017-07-1
2 12:35
-0500\n"
"PO-Revision-Date: 2017-07-1
3 12:10
-0500\n"
"Language-Team: Spanish\n"
"Language: es\n"
"MIME-Version: 1.0\n"
...
...
@@ -1059,6 +1059,9 @@ msgstr "Privado"
msgid "VisibilityLevel|Public"
msgstr "Público"
msgid "VisibilityLevel|Unknown"
msgstr "Desconocido"
msgid "Want to see the data? Please ask an administrator for access."
msgstr "¿Quieres ver los datos? Por favor pide acceso al administrador."
...
...
locale/gitlab.pot
View file @
2f6d02c4
...
...
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-1
2 12:31
-0500\n"
"PO-Revision-Date: 2017-07-1
2 12:31
-0500\n"
"POT-Creation-Date: 2017-07-1
3 12:07
-0500\n"
"PO-Revision-Date: 2017-07-1
3 12:07
-0500\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
...
...
@@ -1060,6 +1060,9 @@ msgstr ""
msgid "VisibilityLevel|Public"
msgstr ""
msgid "VisibilityLevel|Unknown"
msgstr ""
msgid "Want to see the data? Please ask an administrator for access."
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