* Adjust branch create tips.
This commit is contained in:
@@ -275,16 +275,16 @@ $lang->repo->typeList['logicError'] = 'Logic Error';
|
||||
|
||||
$lang->repo->featureBar['maintain']['all'] = 'All';
|
||||
|
||||
$lang->repo->errorLang[0] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->errorLang[0] = "Can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->errorLang[1] = 'Branch is exists';
|
||||
$lang->repo->errorLang[2] = 'branch .* already exists';
|
||||
$lang->repo->errorLang[2] = 'Branch .* already exists';
|
||||
$lang->repo->errorLang[3] = 'Forbidden';
|
||||
$lang->repo->errorLang[4] = 'cannot have ASCII control characters';
|
||||
$lang->repo->errorLang[4] = 'Cannot have ASCII control characters';
|
||||
$lang->repo->errorLang[5] = 'Created fail';
|
||||
|
||||
$lang->repo->apiError[0] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->apiError[1] = 'Branch is exists';
|
||||
$lang->repo->apiError[2] = 'branch .* already exists';
|
||||
$lang->repo->apiError[2] = 'branch.* already exists';
|
||||
$lang->repo->apiError[3] = 'Forbidden';
|
||||
$lang->repo->apiError[4] = 'cannot have ASCII control characters';
|
||||
$lang->repo->apiError[5] = 'Created fail';
|
||||
|
||||
@@ -275,16 +275,16 @@ $lang->repo->typeList['logicError'] = 'Logic Error';
|
||||
|
||||
$lang->repo->featureBar['maintain']['all'] = 'All';
|
||||
|
||||
$lang->repo->errorLang[0] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->errorLang[0] = "Can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->errorLang[1] = 'Branch is exists';
|
||||
$lang->repo->errorLang[2] = 'branch .* already exists';
|
||||
$lang->repo->errorLang[2] = 'Branch already exists';
|
||||
$lang->repo->errorLang[3] = 'Forbidden';
|
||||
$lang->repo->errorLang[4] = 'cannot have ASCII control characters';
|
||||
$lang->repo->errorLang[4] = 'Cannot have ASCII control characters';
|
||||
$lang->repo->errorLang[5] = 'Created fail';
|
||||
|
||||
$lang->repo->apiError[0] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->apiError[1] = 'Branch is exists';
|
||||
$lang->repo->apiError[2] = 'branch .* already exists';
|
||||
$lang->repo->apiError[2] = 'branch.* already exists';
|
||||
$lang->repo->apiError[3] = 'Forbidden';
|
||||
$lang->repo->apiError[4] = 'cannot have ASCII control characters';
|
||||
$lang->repo->apiError[5] = 'Created fail';
|
||||
|
||||
@@ -275,16 +275,16 @@ $lang->repo->typeList['logicError'] = 'Erreur Logique';
|
||||
|
||||
$lang->repo->featureBar['maintain']['all'] = 'All';
|
||||
|
||||
$lang->repo->errorLang[0] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->errorLang[0] = "Can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->errorLang[1] = 'Branch is exists';
|
||||
$lang->repo->errorLang[2] = 'branch .* already exists';
|
||||
$lang->repo->errorLang[2] = 'Branch .* already exists';
|
||||
$lang->repo->errorLang[3] = 'Forbidden';
|
||||
$lang->repo->errorLang[4] = 'cannot have ASCII control characters';
|
||||
$lang->repo->errorLang[4] = 'Cannot have ASCII control characters';
|
||||
$lang->repo->errorLang[5] = 'Created fail';
|
||||
|
||||
$lang->repo->apiError[0] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->apiError[1] = 'Branch is exists';
|
||||
$lang->repo->apiError[2] = 'branch .* already exists';
|
||||
$lang->repo->apiError[2] = 'branch.* already exists';
|
||||
$lang->repo->apiError[3] = 'Forbidden';
|
||||
$lang->repo->apiError[4] = 'cannot have ASCII control characters';
|
||||
$lang->repo->apiError[5] = 'Created fail';
|
||||
|
||||
@@ -284,7 +284,7 @@ $lang->repo->errorLang[5] = '分支创建失败';
|
||||
|
||||
$lang->repo->apiError[0] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'";
|
||||
$lang->repo->apiError[1] = 'Branch is exists';
|
||||
$lang->repo->apiError[2] = 'branch .* already exists';
|
||||
$lang->repo->apiError[2] = 'branch.* already exists';
|
||||
$lang->repo->apiError[3] = 'Forbidden';
|
||||
$lang->repo->apiError[4] = 'cannot have ASCII control characters';
|
||||
$lang->repo->apiError[5] = 'Created fail';
|
||||
|
||||
+1
-1
@@ -1633,7 +1633,7 @@ class repoZen extends repo
|
||||
{
|
||||
foreach($this->lang->repo->apiError as $key => $pattern)
|
||||
{
|
||||
if(preg_match("/$pattern/", $message))
|
||||
if(preg_match("/$pattern/i", $message))
|
||||
{
|
||||
$message = zget($this->lang->repo->errorLang, $key);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user