diff options
Diffstat (limited to 'app/helpers/visibility_level_helper.rb')
-rw-r--r-- | app/helpers/visibility_level_helper.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb index 3a83ae15dd8..0bb3c1e1c0f 100644 --- a/app/helpers/visibility_level_helper.rb +++ b/app/helpers/visibility_level_helper.rb @@ -1,3 +1,4 @@ +#encoding: utf-8 module VisibilityLevelHelper def visibility_level_color(level) case level @@ -29,11 +30,11 @@ module VisibilityLevelHelper def project_visibility_level_description(level) case level when Gitlab::VisibilityLevel::PRIVATE - "Project access must be granted explicitly to each user." + "项目必须明确授权给每个用户访问。" when Gitlab::VisibilityLevel::INTERNAL - "The project can be cloned by any logged in user." + "项目可以被所有已登录用户克隆。" when Gitlab::VisibilityLevel::PUBLIC - "The project can be cloned without any authentication." + "项目可以被任何用户克隆。" end end @@ -52,14 +53,14 @@ module VisibilityLevelHelper case level when Gitlab::VisibilityLevel::PRIVATE if snippet.is_a? ProjectSnippet - "The snippet is visible only to project members." + "该代码片段只有项目成员能看到。" else - "The snippet is visible only to me." + "该代码片段只有自己能看到。" end when Gitlab::VisibilityLevel::INTERNAL - "The snippet is visible to any logged in user." + "该代码片段任何已登录用户都可以看到。" when Gitlab::VisibilityLevel::PUBLIC - "The snippet can be accessed without any authentication." + "该代码片段可以被任何授权的用户访问。" end end |