diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-07-13 20:11:09 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-07-13 20:11:09 +0300 |
commit | 2f6d02c4eed0027f0e319dbb7520138658c44d4f (patch) | |
tree | fc8309bb5d4da7edcaeec729e2a5a6392da4d2cd /lib/gitlab/visibility_level.rb | |
parent | 48b976e0973066ebf2f2ffd01b1bb4a7e9d4d040 (diff) |
Always return the translated level name.
There are many places that expect the `.level_name` method to return the
translated level name.
Diffstat (limited to 'lib/gitlab/visibility_level.rb')
-rw-r--r-- | lib/gitlab/visibility_level.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/visibility_level.rb b/lib/gitlab/visibility_level.rb index 48f3d950779..c60bd91ea6e 100644 --- a/lib/gitlab/visibility_level.rb +++ b/lib/gitlab/visibility_level.rb @@ -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) |