diff --git a/module/gitlab/lang/en.php b/module/gitlab/lang/en.php index cd21abef36..90ab7493ac 100644 --- a/module/gitlab/lang/en.php +++ b/module/gitlab/lang/en.php @@ -58,9 +58,10 @@ $lang->gitlab->tokenFirst = 'When the Token is not empty, the Token will be used $lang->gitlab->tips = 'When using a password, please disable the "Prevent cross-site request forgery" option in the GitLab global security settings.'; $lang->gitlab->placeholder = new stdclass; -$lang->gitlab->placeholder->name = ''; -$lang->gitlab->placeholder->url = "Please fill in the access address of the GitLab Server homepage, as: https://gitlab.zentao.net."; -$lang->gitlab->placeholder->token = "Please fill in the access token of an account with admin privileges."; +$lang->gitlab->placeholder->name = ''; +$lang->gitlab->placeholder->url = "Please fill in the access address of the GitLab Server homepage, as: https://gitlab.zentao.net."; +$lang->gitlab->placeholder->token = "Please fill in the access token of an account with admin privileges."; +$lang->gitlab->placeholder->projectPath = "It should contain only letters, digits, underscore, hyphen and period. It should not start with hypen, or end with .git or .atom."; $lang->gitlab->noImportableIssues = "There are currently no issues available for import."; $lang->gitlab->tokenError = "The current token is not admin rights."; diff --git a/module/gitlab/lang/zh-cn.php b/module/gitlab/lang/zh-cn.php index 20574b05a5..bf65a66160 100644 --- a/module/gitlab/lang/zh-cn.php +++ b/module/gitlab/lang/zh-cn.php @@ -58,9 +58,10 @@ $lang->gitlab->tokenFirst = 'Token不为空时,优先使用Token。'; $lang->gitlab->tips = '使用密码时,请在GitLab全局安全设置中禁用"防止跨站点请求伪造"选项。'; $lang->gitlab->placeholder = new stdclass; -$lang->gitlab->placeholder->name = ''; -$lang->gitlab->placeholder->url = "请填写Gitlab Server首页的访问地址,如:https://gitlab.zentao.net。"; -$lang->gitlab->placeholder->token = "请填写具有admin权限账户的access token"; +$lang->gitlab->placeholder->name = ''; +$lang->gitlab->placeholder->url = "请填写Gitlab Server首页的访问地址,如:https://gitlab.zentao.net。"; +$lang->gitlab->placeholder->token = "请填写具有admin权限账户的access token"; +$lang->gitlab->placeholder->projectPath = "项目标识串只能包含字母、数字、“_”、“-”和“.”。不能以“-”开头,以.git或者.atom结尾"; $lang->gitlab->noImportableIssues = "目前没有可供导入的issue。"; $lang->gitlab->tokenError = "当前token非管理员权限。"; diff --git a/module/gitlab/view/createproject.html.php b/module/gitlab/view/createproject.html.php index e2cb2a541a..34641ae86b 100644 --- a/module/gitlab/view/createproject.html.php +++ b/module/gitlab/view/createproject.html.php @@ -39,7 +39,7 @@