From 696892f246fbe8ae0fbbedb44ae62608be976122 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Thu, 2 Dec 2021 14:14:29 +0800 Subject: [PATCH] * Fix bug #16716. --- module/gitlab/lang/en.php | 4 ++++ module/gitlab/lang/zh-cn.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/module/gitlab/lang/en.php b/module/gitlab/lang/en.php index bc00dcc9e9..9f8c121859 100644 --- a/module/gitlab/lang/en.php +++ b/module/gitlab/lang/en.php @@ -79,9 +79,13 @@ $lang->gitlab->accessLevels[50] = 'Owner'; $lang->gitlab->apiError[0] = 'internal is not allowed in a private group.'; $lang->gitlab->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitlab->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitlab->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; $lang->gitlab->errorLang[0] = 'You cannot set Internal as its Visibility Level, if it is private in GitLab.'; $lang->gitlab->errorLang[1] = 'You cannot set Public as its Visibility Level, if it is private in GitLab.'; +$lang->gitlab->errorLang[2] = 'Is too short (minimum is 8 characters)'; +$lang->gitlab->errorLang[3] = 'It should contain only letters, digits, underscore, hyphen and period. It should not start with hypen, or end with .git or .atom.'; $lang->gitlab->project = new stdclass; $lang->gitlab->project->id = "Project ID"; diff --git a/module/gitlab/lang/zh-cn.php b/module/gitlab/lang/zh-cn.php index 184e9fa84f..22ce25c368 100644 --- a/module/gitlab/lang/zh-cn.php +++ b/module/gitlab/lang/zh-cn.php @@ -79,9 +79,13 @@ $lang->gitlab->accessLevels[50] = 'Owner'; $lang->gitlab->apiError[0] = 'internal is not allowed in a private group.'; $lang->gitlab->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitlab->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitlab->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; $lang->gitlab->errorLang[0] = '私有分组的项目,可见性级别不能设为内部。'; $lang->gitlab->errorLang[1] = '私有分组的项目,可见性级别不能设为公开。'; +$lang->gitlab->errorLang[2] = '太短(最少8个字符)'; +$lang->gitlab->errorLang[3] = "只能包含字母、数字、'.'-'和'.'。不能以'-'开头、以'.git'结尾或以'.atom'结尾。"; $lang->gitlab->project = new stdclass; $lang->gitlab->project->id = "项目ID";