diff --git a/module/gitfox/config/dtable.php b/module/gitfox/config/dtable.php new file mode 100644 index 0000000000..bb96edb1a0 --- /dev/null +++ b/module/gitfox/config/dtable.php @@ -0,0 +1,52 @@ +loadLang('gitfox'); + +$config->gitfox->dtable = new stdclass(); + +$config->gitfox->dtable->fieldList['id']['title'] = 'ID'; +$config->gitfox->dtable->fieldList['id']['name'] = 'id'; +$config->gitfox->dtable->fieldList['id']['type'] = 'number'; +$config->gitfox->dtable->fieldList['id']['sortType'] = 'desc'; +$config->gitfox->dtable->fieldList['id']['checkbox'] = false; +$config->gitfox->dtable->fieldList['id']['width'] = '80'; + +$config->gitfox->dtable->fieldList['name']['title'] = $lang->gitfox->name; +$config->gitfox->dtable->fieldList['name']['name'] = 'name'; +$config->gitfox->dtable->fieldList['name']['type'] = 'desc'; +$config->gitfox->dtable->fieldList['name']['sortType'] = true; +$config->gitfox->dtable->fieldList['name']['hint'] = true; +$config->gitfox->dtable->fieldList['name']['minWidth'] = '356'; + +$config->gitfox->dtable->fieldList['url']['title'] = $lang->gitfox->url; +$config->gitfox->dtable->fieldList['url']['name'] = 'url'; +$config->gitfox->dtable->fieldList['url']['type'] = 'desc'; +$config->gitfox->dtable->fieldList['url']['sortType'] = true; +$config->gitfox->dtable->fieldList['url']['hint'] = true; +$config->gitfox->dtable->fieldList['url']['minWidth'] = '356'; + +$config->gitfox->actionList = array(); +$config->gitfox->actionList['edit']['icon'] = 'edit'; +$config->gitfox->actionList['edit']['text'] = $lang->gitfox->edit; +$config->gitfox->actionList['edit']['hint'] = $lang->gitfox->edit; +$config->gitfox->actionList['edit']['url'] = helper::createLink('gitfox', 'edit',"gitfoxID={id}"); + +$config->gitfox->actionList['bindUser']['icon'] = 'lock'; +$config->gitfox->actionList['bindUser']['text'] = $lang->gitfox->bindUser; +$config->gitfox->actionList['bindUser']['hint'] = $lang->gitfox->bindUser; +$config->gitfox->actionList['bindUser']['url'] = helper::createLink('gitfox', 'bindUser',"gitfoxID={id}"); + +$config->gitfox->actionList['delete']['icon'] = 'trash'; +$config->gitfox->actionList['delete']['text'] = $lang->gitfox->delete; +$config->gitfox->actionList['delete']['hint'] = $lang->gitfox->delete; +$config->gitfox->actionList['delete']['ajaxSubmit'] = true; +$config->gitfox->actionList['delete']['url'] = helper::createLink('gitfox', 'delete',"gitfoxID={id}"); + +$config->gitfox->dtable->fieldList['actions']['name'] = 'actions'; +$config->gitfox->dtable->fieldList['actions']['title'] = $lang->actions; +$config->gitfox->dtable->fieldList['actions']['type'] = 'actions'; +$config->gitfox->dtable->fieldList['actions']['width'] = '160'; +$config->gitfox->dtable->fieldList['actions']['sortType'] = false; +$config->gitfox->dtable->fieldList['actions']['fixed'] = 'right'; +$config->gitfox->dtable->fieldList['actions']['menu'] = array('edit', 'bindUser', 'delete'); +$config->gitfox->dtable->fieldList['actions']['list'] = $config->gitfox->actionList; diff --git a/module/gitfox/config/form.php b/module/gitfox/config/form.php new file mode 100644 index 0000000000..111cbd4f88 --- /dev/null +++ b/module/gitfox/config/form.php @@ -0,0 +1,19 @@ +gitfox->form = new stdclass(); +$config->gitfox->form->create = array(); +$config->gitfox->form->create['appType'] = array('type' => 'string', 'required' => true, 'default' => 'gitfox'); +$config->gitfox->form->create['type'] = array('type' => 'string', 'required' => true, 'default' => 'external'); +$config->gitfox->form->create['name'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim'); +$config->gitfox->form->create['url'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim'); +$config->gitfox->form->create['token'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim'); +$config->gitfox->form->create['createdBy'] = array('type' => 'string', 'required' => false, 'default' => $app->user->account); +$config->gitfox->form->create['createdDate'] = array('type' => 'string', 'required' => false, 'default' => helper::now()); +$config->gitfox->form->create['private'] = array('type' => 'string', 'required' => false, 'default' => uniqid()); + +$config->gitfox->form->edit = array(); +$config->gitfox->form->edit['name'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim'); +$config->gitfox->form->edit['url'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim'); +$config->gitfox->form->edit['token'] = array('type' => 'string', 'required' => true, 'default' => '', 'filter' => 'trim'); +$config->gitfox->form->edit['editedBy'] = array('type' => 'string', 'required' => false, 'default' => $app->user->account); +$config->gitfox->form->edit['editedDate'] = array('type' => 'string', 'required' => false, 'default' => helper::now()); diff --git a/module/gitfox/control.php b/module/gitfox/control.php new file mode 100644 index 0000000000..133af4fdfe --- /dev/null +++ b/module/gitfox/control.php @@ -0,0 +1,40 @@ + + * @package gitfox + * @link https://www.zentao.net + */ +class gitfox extends control +{ + /** + * 创建一个gitfox。 + * Create a gitfox. + * + * @access public + * @return void + */ + public function create() + { + if($_POST) + { + $gitfox = form::data($this->config->gitfox->form->create)->get(); + $this->checkToken($gitfox); + $gitfoxID = $this->loadModel('pipeline')->create($gitfox); + + if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); + $this->loadModel('action'); + $this->action->create('gitlab', $gitfoxID, 'created'); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('space', 'browse'))); + } + + $this->view->title = $this->lang->gitfox->common . $this->lang->colon . $this->lang->gitfox->lblCreate; + + $this->display(); + } +} + diff --git a/module/gitfox/lang/de.php b/module/gitfox/lang/de.php new file mode 100644 index 0000000000..ac1f3ae682 --- /dev/null +++ b/module/gitfox/lang/de.php @@ -0,0 +1,258 @@ +gitfox->common = 'GitFox'; +$lang->gitfox->browse = 'GitFox Browse'; +$lang->gitfox->search = 'Search'; +$lang->gitfox->create = 'Create GitFox'; +$lang->gitfox->edit = 'Edit GitFox'; +$lang->gitfox->view = 'GitFox Details'; +$lang->gitfox->bindUser = 'Permission Setting'; +$lang->gitfox->webhook = 'Interface: Allow Webhook Call'; +$lang->gitfox->importIssue = 'Import Issue'; +$lang->gitfox->delete = 'Delete GitFox'; +$lang->gitfox->confirmDelete = 'Do you want to delete this GitFox server?'; +$lang->gitfox->gitfoxAvatar = 'Avatar'; +$lang->gitfox->gitfoxAccount = 'GitFox Account'; +$lang->gitfox->gitfoxEmail = 'GitFox User\'s Email'; +$lang->gitfox->zentaoEmail = 'Zentao User\'s Email'; +$lang->gitfox->zentaoAccount = 'Zentao Account'; +$lang->gitfox->accountDesc = '(Automatically match users with the same email)'; +$lang->gitfox->bindingStatus = 'Binding Status'; +$lang->gitfox->all = 'All'; +$lang->gitfox->notBind = 'Not bind'; +$lang->gitfox->binded = 'Binded'; +$lang->gitfox->bindedError = 'The bound user has been deleted or modified. Please bind again.'; +$lang->gitfox->bindDynamic = '%s and Zentao user %s'; +$lang->gitfox->serverFail = 'Connect to GitFox server failed, please check the GitFox server.'; +$lang->gitfox->lastUpdate = 'Last Update'; +$lang->gitfox->confirmAddWebhook = 'Are you sure about creating Webhook?'; +$lang->gitfox->addWebhookSuccess = 'Webhook created successfully'; +$lang->gitfox->failCreateWebhook = 'Failed to create Webhook, please view the log'; +$lang->gitfox->placeholderSearch = 'Enter name'; + +$lang->gitfox->bindStatus['binded'] = $lang->gitfox->binded; +$lang->gitfox->bindStatus['notBind'] = "{$lang->gitfox->notBind}"; +$lang->gitfox->bindStatus['bindedError'] = "{$lang->gitfox->bindedError}"; + +$lang->gitfox->browseAction = 'GitFox List'; +$lang->gitfox->deleteAction = 'Delete GitFox'; +$lang->gitfox->gitfoxProject = "GitFox Project"; +$lang->gitfox->browseProject = "GitFox Project List"; +$lang->gitfox->browseUser = "User"; +$lang->gitfox->browseGroup = "GitFox Group List"; +$lang->gitfox->browseBranch = "GitFox Branch List"; +$lang->gitfox->browseTag = "GitFox Tag List"; +$lang->gitfox->browseTagPriv = "Protected tag"; +$lang->gitfox->gitfoxIssue = "GitFox Issue"; +$lang->gitfox->zentaoProduct = 'Zentao Product'; +$lang->gitfox->objectType = 'Type'; // task, bug, story +$lang->gitfox->manageProjectMembers = 'Manage project member'; +$lang->gitfox->createProject = 'Create GitFox project'; +$lang->gitfox->editProject = 'Eidt GitFox project'; +$lang->gitfox->deleteProject = 'Delete GitFox project'; +$lang->gitfox->createGroup = 'Create group'; +$lang->gitfox->editGroup = 'Edit group'; +$lang->gitfox->deleteGroup = 'Delete group'; +$lang->gitfox->createUser = 'Create user'; +$lang->gitfox->editUser = 'Edit user'; +$lang->gitfox->deleteUser = 'Delete user'; +$lang->gitfox->createBranch = 'Add branch'; +$lang->gitfox->manageGroupMembers = 'Manage group member'; +$lang->gitfox->createWebhook = 'Create Webhook'; +$lang->gitfox->browseBranchPriv = 'Protect branch'; +$lang->gitfox->createTag = 'Create Tag'; +$lang->gitfox->deleteTag = 'Delete tag'; +$lang->gitfox->svaeFailed = '『%s』save failed'; + +$lang->gitfox->id = 'ID'; +$lang->gitfox->name = "Server Name"; +$lang->gitfox->url = 'Server URL'; +$lang->gitfox->token = 'Token'; +$lang->gitfox->defaultProject = 'Default Project'; +$lang->gitfox->private = 'MD5 Verify'; + +$lang->gitfox->server = "Server List"; +$lang->gitfox->lblCreate = 'Create GitFox Server'; +$lang->gitfox->desc = 'Description'; +$lang->gitfox->tokenFirst = 'When the Token is not empty, the Token will be used first'; +$lang->gitfox->tips = 'When using a password, please disable the "Prevent cross-site request forgery" option in the GitFox global security settings.'; +$lang->gitfox->emptyError = " cannot be empty"; +$lang->gitfox->createSuccess = "Create success"; +$lang->gitfox->mustBindUser = 'You have not registered the GitFox account, please contact the administrator to register.'; +$lang->gitfox->noAccess = 'Permission denied'; +$lang->gitfox->notCompatible = 'The current GitFox version is not compatible with ZenTao, please upgrade the GitFox version and try again'; +$lang->gitfox->deleted = 'Deleted'; + +$lang->gitfox->placeholder = new stdclass; +$lang->gitfox->placeholder->name = ''; +$lang->gitfox->placeholder->url = "Please fill in the access address of the GitFox Server homepage, as: https://gitfox.zentao.net."; +$lang->gitfox->placeholder->token = "Please fill in the access token of an account with root privileges."; +$lang->gitfox->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->gitfox->noImportableIssues = "There are currently no issues available for import."; +$lang->gitfox->tokenError = "The current token is not root rights."; +$lang->gitfox->tokenLimit = "The current token has no admin privilege. Please regenerate one with root user in GitFox."; +$lang->gitfox->hostError = "So the current GitFox server address is invalid or the current GitFox version is not compatible with ZenTao, please confirm that the current server can be accessed or contact the administrator to upgrade the GitFox version to %s or above and try again."; +$lang->gitfox->bindUserError = "Can not bind users repeatedly %s"; +$lang->gitfox->importIssueError = "The execution to which this issue belongs is not selected."; +$lang->gitfox->importIssueWarn = "There is a problem of import failure, you can try to import again."; + +$lang->gitfox->accessLevels[10] = 'Guest'; +$lang->gitfox->accessLevels[20] = 'Reporter'; +$lang->gitfox->accessLevels[30] = 'Developer'; +$lang->gitfox->accessLevels[40] = 'Maintainer'; +$lang->gitfox->accessLevels[50] = 'Owner'; + +$lang->gitfox->apiError[0] = 'internal is not allowed in a private group.'; +$lang->gitfox->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitfox->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitfox->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; +$lang->gitfox->apiError[4] = 'Branch already exists'; +$lang->gitfox->apiError[5] = 'Failed to save group {:path = >["has already been taken"]}'; +$lang->gitfox->apiError[6] = 'Failed to save group {:path = >["已经被使用"]}'; +$lang->gitfox->apiError[7] = '403 Forbidden'; +$lang->gitfox->apiError[8] = 'is invalid'; +$lang->gitfox->apiError[9] = 'admin is a reserved name'; +$lang->gitfox->apiError[10] = 'has already been taken'; +$lang->gitfox->apiError[11] = 'Missing CI config file'; + +$lang->gitfox->errorLang[0] = 'You cannot set Internal as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[1] = 'You cannot set Public as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[2] = 'Password is too short (minimum is 8 characters)'; +$lang->gitfox->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->gitfox->errorLang[4] = 'Branch already exists.'; +$lang->gitfox->errorLang[5] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[6] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[7] = $lang->gitfox->noAccess; +$lang->gitfox->errorLang[8] = "Is invalid"; +$lang->gitfox->errorLang[9] = 'admin is a reserved name'; +$lang->gitfox->errorLang[10] = 'has already been taken'; +$lang->gitfox->errorLang[11] = 'Missing CI config file'; + +$lang->gitfox->errorResonse['Email has already been taken'] = 'Email has already been taken'; +$lang->gitfox->errorResonse['Username has already been taken'] = 'Username has already been taken'; + +$lang->gitfox->project = new stdclass; +$lang->gitfox->project->id = "Project ID"; +$lang->gitfox->project->name = "Project name"; +$lang->gitfox->project->create = "Create GitFox project"; +$lang->gitfox->project->edit = "Edit GitFox project"; +$lang->gitfox->project->url = "Project URL"; +$lang->gitfox->project->path = "Project slug"; +$lang->gitfox->project->description = "Project description"; +$lang->gitfox->project->visibility = "Visibility Level"; +$lang->gitfox->project->visibilityList['private'] = "Private(Project access must be granted explicitly to each user. If this project is part of a group, access will be granted to members of the group)"; +$lang->gitfox->project->visibilityList['internal'] = "Internal(The project can be accessed by any logged in user except external users)"; +$lang->gitfox->project->visibilityList['public'] = "Public(The project can be accessed without any authentication)"; +$lang->gitfox->project->star = "Stars"; +$lang->gitfox->project->fork = "Forks"; +$lang->gitfox->project->mergeRequests = "Merge Requests"; +$lang->gitfox->project->issues = "Issues"; +$lang->gitfox->project->tagList = "Topics"; +$lang->gitfox->project->tagListTips = "Separate topics with commas."; +$lang->gitfox->project->emptyNameError = "Project name cannot be empty."; +$lang->gitfox->project->emptyPathError = "Project slug cannot be empty."; +$lang->gitfox->project->confirmDelete = 'Do you want to delete this GitFox project?'; +$lang->gitfox->project->notbindedError = 'GitFox user has not been bound, unable to modify permissions!'; +$lang->gitfox->project->publicTip = 'The visible status of the current project will be modified to public, and the project can be accessed without any authentication in GitFox. '; + +$lang->gitfox->user = new stdclass; +$lang->gitfox->user->id = "User ID"; +$lang->gitfox->user->name = "Name"; +$lang->gitfox->user->username = "Username"; +$lang->gitfox->user->email = "Email"; +$lang->gitfox->user->password = "Password"; +$lang->gitfox->user->passwordRepeat = "Repeat Password"; +$lang->gitfox->user->projectsLimit = "Projects limit"; +$lang->gitfox->user->canCreateGroup = "Can create group"; +$lang->gitfox->user->external = "External"; +$lang->gitfox->user->externalTip = "External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects, groups, or personal snippets."; +$lang->gitfox->user->bind = "Zentao user"; +$lang->gitfox->user->avatar = "Avatar"; +$lang->gitfox->user->skype = "Skype"; +$lang->gitfox->user->linkedin = "Linkedin"; +$lang->gitfox->user->twitter = "Twitter"; +$lang->gitfox->user->websiteUrl = "Website url"; +$lang->gitfox->user->note = "Note"; +$lang->gitfox->user->createOn = "Created on"; +$lang->gitfox->user->lastActivity = "Last activity"; +$lang->gitfox->user->create = "Create GitFox user"; +$lang->gitfox->user->edit = "Edit GitFox user"; +$lang->gitfox->user->emptyError = "cannot be empty"; +$lang->gitfox->user->passwordError = "The second password is inconsistent!"; +$lang->gitfox->user->bindError = "The user has been bound!"; +$lang->gitfox->user->confirmDelete = 'Do you want to delete this GitFox user?'; + +$lang->gitfox->group = new stdclass; +$lang->gitfox->group->id = "Group ID"; +$lang->gitfox->group->name = "Group name"; +$lang->gitfox->group->path = "Group URL"; +$lang->gitfox->group->pathTip = "Changing group URL can have unintended side effects."; +$lang->gitfox->group->description = "Group description"; +$lang->gitfox->group->avatar = "Group avatar"; +$lang->gitfox->group->avatarTip = 'Max file size is 200 KB.'; +$lang->gitfox->group->visibility = "Visibility level"; +$lang->gitfox->group->visibilityList['private'] = "Private(The group and its projects can only be viewed by members)"; +$lang->gitfox->group->visibilityList['internal'] = "Internal(The group and any internal projects can be viewed by any logged in user except external users)"; +$lang->gitfox->group->visibilityList['public'] = "Public(The group and any public projects can be viewed without any authentication.)"; +$lang->gitfox->group->permission = 'Permission'; +$lang->gitfox->group->requestAccessEnabledTip = "Allow users to request access (if visibility is public or internal)"; +$lang->gitfox->group->lfsEnabled = 'Large File Storage'; +$lang->gitfox->group->lfsEnabledTip = "Allow projects within this group to use Git LFS(This setting can be overridden in each project)"; +$lang->gitfox->group->projectCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->projectCreationLevelList['noone'] = "No one"; +$lang->gitfox->group->projectCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->projectCreationLevelList['developer'] = "Developers + Maintainers"; +$lang->gitfox->group->subgroupCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->subgroupCreationLevelList['owner'] = "Owners"; +$lang->gitfox->group->subgroupCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->create = "Create Group"; +$lang->gitfox->group->edit = "Edit Group"; +$lang->gitfox->group->createOn = "Created on"; +$lang->gitfox->group->members = "Group Members"; +$lang->gitfox->group->confirmDelete = 'Do you want to delete this GitFox group?'; +$lang->gitfox->group->emptyError = "cannot be empty"; +$lang->gitfox->group->manageMembers = 'Manage Group Members'; +$lang->gitfox->group->memberName = 'Account'; +$lang->gitfox->group->memberAccessLevel = 'Access Level'; +$lang->gitfox->group->memberExpiresAt = 'Expiration time'; +$lang->gitfox->group->repeatError = "Group members cannot be added repeatedly"; +$lang->gitfox->group->publicTip = 'The visible status of the current group will be modified to public, and the group can be accessed without any authentication in GitFox. '; + +$lang->gitfox->branch = new stdclass(); +$lang->gitfox->branch->name = 'Branch name'; +$lang->gitfox->branch->from = 'Create from'; +$lang->gitfox->branch->create = 'Create'; +$lang->gitfox->branch->lastCommitter = 'Last Committer'; +$lang->gitfox->branch->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->branch->accessLevel = "Branch protection list"; +$lang->gitfox->branch->mergeAllowed = "Allowed to merge"; +$lang->gitfox->branch->pushAllowed = "Allowed to push"; +$lang->gitfox->branch->placeholderSearch = "Branch name"; +$lang->gitfox->branch->placeholderSelect = "Branch name"; +$lang->gitfox->branch->confirmDelete = 'Branch will be writable for developers. Are you sure?'; +$lang->gitfox->branch->branchCreationLevelList[40] = "Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[30] = "Developers + Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[0] = "No one"; +$lang->gitfox->branch->emptyPrivNameError = "Branch cannot be empty."; +$lang->gitfox->branch->issetPrivNameError = "The protection branch already exists"; + +$lang->gitfox->tag = new stdclass(); +$lang->gitfox->tag->name = 'Tag name'; +$lang->gitfox->tag->ref = 'Create from'; +$lang->gitfox->tag->lastCommitter = 'Last Committer'; +$lang->gitfox->tag->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->tag->placeholderSearch = "Enter branch tag"; +$lang->gitfox->tag->message = 'Message'; +$lang->gitfox->tag->emptyNameError = "Name cannot be empty."; +$lang->gitfox->tag->emptyRefError = "Create from cannot be empty."; +$lang->gitfox->tag->issetNameError = "The tag already exists"; +$lang->gitfox->tag->confirmDelete = 'Do you want to delete this GitFox tag?'; +$lang->gitfox->tag->protected = 'Protected'; +$lang->gitfox->tag->accessLevel = 'Allow creation'; +$lang->gitfox->tag->protectConfirmDel = 'Do you want to delete this GitFox tag protected?'; +$lang->gitfox->tag->emptyPrivNameError = 'Tag cannot be empty.'; +$lang->gitfox->tag->issetPrivNameError = 'The protection tag already exists.'; + +$lang->gitfox->featureBar['binduser']['all'] = $lang->gitfox->all; +$lang->gitfox->featureBar['binduser']['notBind'] = $lang->gitfox->notBind; +$lang->gitfox->featureBar['binduser']['binded'] = $lang->gitfox->binded; diff --git a/module/gitfox/lang/en.php b/module/gitfox/lang/en.php new file mode 100644 index 0000000000..b6e8b4d70e --- /dev/null +++ b/module/gitfox/lang/en.php @@ -0,0 +1,258 @@ +gitfox->common = 'GitFox'; +$lang->gitfox->browse = 'GitFox Browse'; +$lang->gitfox->search = 'Search'; +$lang->gitfox->create = 'Create GitFox'; +$lang->gitfox->edit = 'Edit GitFox'; +$lang->gitfox->view = 'GitFox Details'; +$lang->gitfox->bindUser = 'Permission Setting'; +$lang->gitfox->webhook = 'Interface: Allow Webhook Call'; +$lang->gitfox->importIssue = 'Import Issue'; +$lang->gitfox->delete = 'Delete GitFox'; +$lang->gitfox->confirmDelete = 'Do you want to delete this GitFox server?'; +$lang->gitfox->gitfoxAvatar = 'Avatar'; +$lang->gitfox->gitfoxAccount = 'GitFox Account'; +$lang->gitfox->gitfoxEmail = 'GitFox User\'s Email'; +$lang->gitfox->zentaoEmail = 'Zentao User\'s Email'; +$lang->gitfox->zentaoAccount = 'Zentao Account'; +$lang->gitfox->accountDesc = '(Automatically match users with the same email)'; +$lang->gitfox->bindingStatus = 'Binding Status'; +$lang->gitfox->all = 'All'; +$lang->gitfox->notBind = 'Not bind'; +$lang->gitfox->binded = 'Binded'; +$lang->gitfox->bindedError = 'The bound user has been deleted or modified. Please bind again.'; +$lang->gitfox->bindDynamic = '%s and Zentao user %s'; +$lang->gitfox->serverFail = 'Connect to GitFox server failed, please check the GitFox server.'; +$lang->gitfox->lastUpdate = 'Last Update'; +$lang->gitfox->confirmAddWebhook = 'Are you sure about creating Webhook?'; +$lang->gitfox->addWebhookSuccess = 'Webhook created successfully'; +$lang->gitfox->failCreateWebhook = 'Failed to create Webhook, please view the log'; +$lang->gitfox->placeholderSearch = 'Enter name'; + +$lang->gitfox->bindStatus['binded'] = $lang->gitfox->binded; +$lang->gitfox->bindStatus['notBind'] = "{$lang->gitfox->notBind}"; +$lang->gitfox->bindStatus['bindedError'] = "{$lang->gitfox->bindedError}"; + +$lang->gitfox->browseAction = 'GitFox List'; +$lang->gitfox->deleteAction = 'Delete GitFox'; +$lang->gitfox->gitfoxProject = "GitFox Project"; +$lang->gitfox->browseProject = "GitFox Project List"; +$lang->gitfox->browseUser = "User"; +$lang->gitfox->browseGroup = "GitFox Group List"; +$lang->gitfox->browseBranch = "GitFox Branch List"; +$lang->gitfox->browseTag = "GitFox Tag List"; +$lang->gitfox->browseTagPriv = "Protected tag"; +$lang->gitfox->gitfoxIssue = "GitFox Issue"; +$lang->gitfox->zentaoProduct = 'Zentao Product'; +$lang->gitfox->objectType = 'Type'; // task, bug, story +$lang->gitfox->manageProjectMembers = 'Manage project member'; +$lang->gitfox->createProject = 'Create GitFox project'; +$lang->gitfox->editProject = 'Eidt GitFox project'; +$lang->gitfox->deleteProject = 'Delete GitFox project'; +$lang->gitfox->createGroup = 'Create group'; +$lang->gitfox->editGroup = 'Edit group'; +$lang->gitfox->deleteGroup = 'Delete group'; +$lang->gitfox->createUser = 'Create user'; +$lang->gitfox->editUser = 'Edit user'; +$lang->gitfox->deleteUser = 'Delete user'; +$lang->gitfox->createBranch = 'Add branch'; +$lang->gitfox->manageGroupMembers = 'Manage group member'; +$lang->gitfox->createWebhook = 'Create Webhook'; +$lang->gitfox->browseBranchPriv = 'Protect branch'; +$lang->gitfox->createTag = 'Create Tag'; +$lang->gitfox->deleteTag = 'Delete tag'; +$lang->gitfox->svaeFailed = '『%s』save failed'; + +$lang->gitfox->id = 'ID'; +$lang->gitfox->name = "Server Name"; +$lang->gitfox->url = 'Server URL'; +$lang->gitfox->token = 'Token'; +$lang->gitfox->defaultProject = 'Default Project'; +$lang->gitfox->private = 'MD5 Verify'; + +$lang->gitfox->server = "Server List"; +$lang->gitfox->lblCreate = 'Create GitFox Server'; +$lang->gitfox->desc = 'Description'; +$lang->gitfox->tokenFirst = 'When the Token is not empty, the Token will be used first'; +$lang->gitfox->tips = 'When using a password, please disable the "Prevent cross-site request forgery" option in the GitFox global security settings.'; +$lang->gitfox->emptyError = " cannot be empty"; +$lang->gitfox->createSuccess = "Create success"; +$lang->gitfox->mustBindUser = 'You have not registered the GitFox account, please contact the administrator to register.'; +$lang->gitfox->noAccess = 'Permission denied'; +$lang->gitfox->notCompatible = 'The current GitFox version is not compatible with ZenTao, please upgrade the GitFox version and try again'; +$lang->gitfox->deleted = 'Deleted'; + +$lang->gitfox->placeholder = new stdclass; +$lang->gitfox->placeholder->name = ''; +$lang->gitfox->placeholder->url = "Please fill in the access address of the GitFox Server homepage, as: https://gitfox.zentao.net."; +$lang->gitfox->placeholder->token = "Please fill in the access token of an account with root privileges."; +$lang->gitfox->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->gitfox->noImportableIssues = "There are currently no issues available for import."; +$lang->gitfox->tokenError = "The current token is not root rights."; +$lang->gitfox->tokenLimit = "The current token has no admin privilege. Please regenerate one with root user in GitFox."; +$lang->gitfox->hostError = "So the current GitFox server address is invalid or the current GitFox version is not compatible with ZenTao, please confirm that the current server can be accessed or contact the administrator to upgrade the GitFox version to %s or above and try again."; +$lang->gitfox->bindUserError = "Can not bind users repeatedly %s"; +$lang->gitfox->importIssueError = "The execution to which this issue belongs is not selected."; +$lang->gitfox->importIssueWarn = "There is a problem of import failure, you can try to import again."; + +$lang->gitfox->accessLevels[10] = 'Guest'; +$lang->gitfox->accessLevels[20] = 'Reporter'; +$lang->gitfox->accessLevels[30] = 'Developer'; +$lang->gitfox->accessLevels[40] = 'Maintainer'; +$lang->gitfox->accessLevels[50] = 'Owner'; + +$lang->gitfox->apiError[0] = 'internal is not allowed in a private group.'; +$lang->gitfox->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitfox->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitfox->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; +$lang->gitfox->apiError[4] = 'Branch already exists'; +$lang->gitfox->apiError[5] = 'Failed to save group {:path=>["has already been taken"]}'; +$lang->gitfox->apiError[6] = 'Failed to save group {:path=>["已经被使用"]}'; +$lang->gitfox->apiError[7] = '403 Forbidden'; +$lang->gitfox->apiError[8] = 'is invalid'; +$lang->gitfox->apiError[9] = 'admin is a reserved name'; +$lang->gitfox->apiError[10] = 'has already been taken'; +$lang->gitfox->apiError[11] = 'Missing CI config file'; + +$lang->gitfox->errorLang[0] = 'You cannot set Internal as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[1] = 'You cannot set Public as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[2] = 'Password is too short (minimum is 8 characters)'; +$lang->gitfox->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->gitfox->errorLang[4] = 'Branch already exists.'; +$lang->gitfox->errorLang[5] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[6] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[7] = $lang->gitfox->noAccess; +$lang->gitfox->errorLang[8] = "Is invalid"; +$lang->gitfox->errorLang[9] = 'admin is a reserved name'; +$lang->gitfox->errorLang[10] = 'has already been taken'; +$lang->gitfox->errorLang[11] = 'Missing CI config file'; + +$lang->gitfox->errorResonse['Email has already been taken'] = 'Email has already been taken'; +$lang->gitfox->errorResonse['Username has already been taken'] = 'Username has already been taken'; + +$lang->gitfox->project = new stdclass; +$lang->gitfox->project->id = "Project ID"; +$lang->gitfox->project->name = "Project name"; +$lang->gitfox->project->create = "Create GitFox project"; +$lang->gitfox->project->edit = "Edit GitFox project"; +$lang->gitfox->project->url = "Project URL"; +$lang->gitfox->project->path = "Project slug"; +$lang->gitfox->project->description = "Project description"; +$lang->gitfox->project->visibility = "Visibility Level"; +$lang->gitfox->project->visibilityList['private'] = "Private(Project access must be granted explicitly to each user. If this project is part of a group, access will be granted to members of the group)"; +$lang->gitfox->project->visibilityList['internal'] = "Internal(The project can be accessed by any logged in user except external users)"; +$lang->gitfox->project->visibilityList['public'] = "Public(The project can be accessed without any authentication)"; +$lang->gitfox->project->star = "Stars"; +$lang->gitfox->project->fork = "Forks"; +$lang->gitfox->project->mergeRequests = "Merge Requests"; +$lang->gitfox->project->issues = "Issues"; +$lang->gitfox->project->tagList = "Topics"; +$lang->gitfox->project->tagListTips = "Separate topics with commas."; +$lang->gitfox->project->emptyNameError = "Project name cannot be empty."; +$lang->gitfox->project->emptyPathError = "Project slug cannot be empty."; +$lang->gitfox->project->confirmDelete = 'Do you want to delete this GitFox project?'; +$lang->gitfox->project->notbindedError = 'GitFox user has not been bound, unable to modify permissions!'; +$lang->gitfox->project->publicTip = 'The visible status of the current project will be modified to public, and the project can be accessed without any authentication in GitFox. '; + +$lang->gitfox->user = new stdclass; +$lang->gitfox->user->id = "User ID"; +$lang->gitfox->user->name = "Name"; +$lang->gitfox->user->username = "Username"; +$lang->gitfox->user->email = "Email"; +$lang->gitfox->user->password = "Password"; +$lang->gitfox->user->passwordRepeat = "Repeat Password"; +$lang->gitfox->user->projectsLimit = "Projects limit"; +$lang->gitfox->user->canCreateGroup = "Can create group"; +$lang->gitfox->user->external = "External"; +$lang->gitfox->user->externalTip = "External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects, groups, or personal snippets."; +$lang->gitfox->user->bind = "Zentao user"; +$lang->gitfox->user->avatar = "Avatar"; +$lang->gitfox->user->skype = "Skype"; +$lang->gitfox->user->linkedin = "Linkedin"; +$lang->gitfox->user->twitter = "Twitter"; +$lang->gitfox->user->websiteUrl = "Website url"; +$lang->gitfox->user->note = "Note"; +$lang->gitfox->user->createOn = "Created on"; +$lang->gitfox->user->lastActivity = "Last activity"; +$lang->gitfox->user->create = "Create GitFox user"; +$lang->gitfox->user->edit = "Edit GitFox user"; +$lang->gitfox->user->emptyError = "cannot be empty"; +$lang->gitfox->user->passwordError = "The second password is inconsistent!"; +$lang->gitfox->user->bindError = "The user has been bound!"; +$lang->gitfox->user->confirmDelete = 'Do you want to delete this GitFox user?'; + +$lang->gitfox->group = new stdclass; +$lang->gitfox->group->id = "Group ID"; +$lang->gitfox->group->name = "Group name"; +$lang->gitfox->group->path = "Group URL"; +$lang->gitfox->group->pathTip = "Changing group URL can have unintended side effects."; +$lang->gitfox->group->description = "Group description"; +$lang->gitfox->group->avatar = "Group avatar"; +$lang->gitfox->group->avatarTip = 'Max file size is 200 KB.'; +$lang->gitfox->group->visibility = "Visibility level"; +$lang->gitfox->group->visibilityList['private'] = "Private(The group and its projects can only be viewed by members)"; +$lang->gitfox->group->visibilityList['internal'] = "Internal(The group and any internal projects can be viewed by any logged in user except external users)"; +$lang->gitfox->group->visibilityList['public'] = "Public(The group and any public projects can be viewed without any authentication.)"; +$lang->gitfox->group->permission = 'Permission'; +$lang->gitfox->group->requestAccessEnabledTip = "Allow users to request access (if visibility is public or internal)"; +$lang->gitfox->group->lfsEnabled = 'Large File Storage'; +$lang->gitfox->group->lfsEnabledTip = "Allow projects within this group to use Git LFS(This setting can be overridden in each project)"; +$lang->gitfox->group->projectCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->projectCreationLevelList['noone'] = "No one"; +$lang->gitfox->group->projectCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->projectCreationLevelList['developer'] = "Developers + Maintainers"; +$lang->gitfox->group->subgroupCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->subgroupCreationLevelList['owner'] = "Owners"; +$lang->gitfox->group->subgroupCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->create = "Create Group"; +$lang->gitfox->group->edit = "Edit Group"; +$lang->gitfox->group->createOn = "Created on"; +$lang->gitfox->group->members = "Group Members"; +$lang->gitfox->group->confirmDelete = 'Do you want to delete this GitFox group?'; +$lang->gitfox->group->emptyError = "cannot be empty"; +$lang->gitfox->group->manageMembers = 'Manage Group Members'; +$lang->gitfox->group->memberName = 'Account'; +$lang->gitfox->group->memberAccessLevel = 'Access Level'; +$lang->gitfox->group->memberExpiresAt = 'Expiration time'; +$lang->gitfox->group->repeatError = "Group members cannot be added repeatedly"; +$lang->gitfox->group->publicTip = 'The visible status of the current group will be modified to public, and the group can be accessed without any authentication in GitFox. '; + +$lang->gitfox->branch = new stdclass(); +$lang->gitfox->branch->name = 'Branch name'; +$lang->gitfox->branch->from = 'Create from'; +$lang->gitfox->branch->create = 'Create'; +$lang->gitfox->branch->lastCommitter = 'Last Committer'; +$lang->gitfox->branch->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->branch->accessLevel = "Branch protection list"; +$lang->gitfox->branch->mergeAllowed = "Allowed to merge"; +$lang->gitfox->branch->pushAllowed = "Allowed to push"; +$lang->gitfox->branch->placeholderSearch = "Branch name"; +$lang->gitfox->branch->placeholderSelect = "Branch name"; +$lang->gitfox->branch->confirmDelete = 'Branch will be writable for developers. Are you sure?'; +$lang->gitfox->branch->branchCreationLevelList[40] = "Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[30] = "Developers + Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[0] = "No one"; +$lang->gitfox->branch->emptyPrivNameError = "Branch cannot be empty."; +$lang->gitfox->branch->issetPrivNameError = "The protection branch already exists"; + +$lang->gitfox->tag = new stdclass(); +$lang->gitfox->tag->name = 'Tag name'; +$lang->gitfox->tag->ref = 'Create from'; +$lang->gitfox->tag->lastCommitter = 'Last Committer'; +$lang->gitfox->tag->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->tag->placeholderSearch = "Enter branch tag"; +$lang->gitfox->tag->message = 'Message'; +$lang->gitfox->tag->emptyNameError = "Name cannot be empty."; +$lang->gitfox->tag->emptyRefError = "Create from cannot be empty."; +$lang->gitfox->tag->issetNameError = "The tag already exists"; +$lang->gitfox->tag->confirmDelete = 'Do you want to delete this GitFox tag?'; +$lang->gitfox->tag->protected = 'Protected'; +$lang->gitfox->tag->accessLevel = 'Allow creation'; +$lang->gitfox->tag->protectConfirmDel = 'Do you want to delete this GitFox tag protected?'; +$lang->gitfox->tag->emptyPrivNameError = 'Tag cannot be empty.'; +$lang->gitfox->tag->issetPrivNameError = 'The protection tag already exists.'; + +$lang->gitfox->featureBar['binduser']['all'] = $lang->gitfox->all; +$lang->gitfox->featureBar['binduser']['notBind'] = $lang->gitfox->notBind; +$lang->gitfox->featureBar['binduser']['binded'] = $lang->gitfox->binded; diff --git a/module/gitfox/lang/fr.php b/module/gitfox/lang/fr.php new file mode 100644 index 0000000000..00de9c8985 --- /dev/null +++ b/module/gitfox/lang/fr.php @@ -0,0 +1,258 @@ +gitfox->common = 'GitFox'; +$lang->gitfox->browse = 'GitFox Browse'; +$lang->gitfox->search = 'Search'; +$lang->gitfox->create = 'Create GitFox'; +$lang->gitfox->edit = 'Edit GitFox'; +$lang->gitfox->view = 'GitFox Details'; +$lang->gitfox->bindUser = 'Permission Setting'; +$lang->gitfox->webhook = 'Interface: Allow Webhook Call'; +$lang->gitfox->importIssue = 'Import Issue'; +$lang->gitfox->delete = 'Delete GitFox'; +$lang->gitfox->confirmDelete = 'Do you want to delete this GitFox server?'; +$lang->gitfox->gitfoxAvatar = 'Avatar'; +$lang->gitfox->gitfoxAccount = 'GitFox Account'; +$lang->gitfox->gitfoxEmail = 'GitFox User\'s Email'; +$lang->gitfox->zentaoEmail = 'Zentao User\'s Email'; +$lang->gitfox->zentaoAccount = 'Zentao Account'; +$lang->gitfox->accountDesc = '(System will automatically match users with the same email address)'; +$lang->gitfox->bindingStatus = 'Binding Status'; +$lang->gitfox->all = 'All'; +$lang->gitfox->notBind = 'Not bind'; +$lang->gitfox->binded = 'Binded'; +$lang->gitfox->bindedError = 'The bound user has been deleted or modified. Please bind again.'; +$lang->gitfox->bindDynamic = '%s and Zentao user %s'; +$lang->gitfox->serverFail = 'Connect to GitFox server failed, please check the GitFox server.'; +$lang->gitfox->lastUpdate = 'Last Update'; +$lang->gitfox->confirmAddWebhook = 'Are you sure about creating Webhook?'; +$lang->gitfox->addWebhookSuccess = 'Webhook created successfully'; +$lang->gitfox->failCreateWebhook = 'Failed to create Webhook, please view the log'; +$lang->gitfox->placeholderSearch = 'Enter name'; + +$lang->gitfox->bindStatus['binded'] = $lang->gitfox->binded; +$lang->gitfox->bindStatus['notBind'] = "{$lang->gitfox->notBind}"; +$lang->gitfox->bindStatus['bindedError'] = "{$lang->gitfox->bindedError}"; + +$lang->gitfox->browseAction = 'GitFox List'; +$lang->gitfox->deleteAction = 'Delete GitFox'; +$lang->gitfox->gitfoxProject = "GitFox Project"; +$lang->gitfox->browseProject = "GitFox Project List"; +$lang->gitfox->browseUser = "User"; +$lang->gitfox->browseGroup = "GitFox Group List"; +$lang->gitfox->browseBranch = "GitFox Branch List"; +$lang->gitfox->browseTag = "GitFox Tag List"; +$lang->gitfox->browseTagPriv = "Protected tag"; +$lang->gitfox->gitfoxIssue = "GitFox Issue"; +$lang->gitfox->zentaoProduct = 'Zentao Product'; +$lang->gitfox->objectType = 'Type'; // task, bug, story +$lang->gitfox->manageProjectMembers = 'Manage project member'; +$lang->gitfox->createProject = 'Create GitFox project'; +$lang->gitfox->editProject = 'Eidt GitFox project'; +$lang->gitfox->deleteProject = 'Delete GitFox project'; +$lang->gitfox->createGroup = 'Create group'; +$lang->gitfox->editGroup = 'Edit group'; +$lang->gitfox->deleteGroup = 'Delete group'; +$lang->gitfox->createUser = 'Create user'; +$lang->gitfox->editUser = 'Edit user'; +$lang->gitfox->deleteUser = 'Delete user'; +$lang->gitfox->createBranch = 'Add branch'; +$lang->gitfox->manageGroupMembers = 'Manage group member'; +$lang->gitfox->createWebhook = 'Create Webhook'; +$lang->gitfox->browseBranchPriv = 'Protect branch'; +$lang->gitfox->createTag = 'Create Tag'; +$lang->gitfox->deleteTag = 'Delete tag'; +$lang->gitfox->svaeFailed = '『%s』save failed'; + +$lang->gitfox->id = 'ID'; +$lang->gitfox->name = "Server Name"; +$lang->gitfox->url = 'Server URL'; +$lang->gitfox->token = 'Token'; +$lang->gitfox->defaultProject = 'Default Project'; +$lang->gitfox->private = 'MD5 Verify'; + +$lang->gitfox->server = "Server List"; +$lang->gitfox->lblCreate = 'Create GitFox Server'; +$lang->gitfox->desc = 'Description'; +$lang->gitfox->tokenFirst = 'When the Token is not empty, the Token will be used first'; +$lang->gitfox->tips = 'When using a password, please disable the "Prevent cross-site request forgery" option in the GitFox global security settings.'; +$lang->gitfox->emptyError = " cannot be empty"; +$lang->gitfox->createSuccess = "Create success"; +$lang->gitfox->mustBindUser = 'You have not registered the GitFox account, please contact the administrator to register.'; +$lang->gitfox->noAccess = 'Permission denied'; +$lang->gitfox->notCompatible = 'The current GitFox version is not compatible with ZenTao, please upgrade the GitFox version and try again'; +$lang->gitfox->deleted = 'Deleted'; + +$lang->gitfox->placeholder = new stdclass; +$lang->gitfox->placeholder->name = ''; +$lang->gitfox->placeholder->url = "Please fill in the access address of the GitFox Server homepage, as: https://gitfox.zentao.net."; +$lang->gitfox->placeholder->token = "Please fill in the access token of an account with root privileges."; +$lang->gitfox->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->gitfox->noImportableIssues = "There are currently no issues available for import."; +$lang->gitfox->tokenError = "The current token is not root rights."; +$lang->gitfox->tokenLimit = "The current token has no admin privilege. Please regenerate one with root user in GitFox."; +$lang->gitfox->hostError = "So the current GitFox server address is invalid or the current GitFox version is not compatible with ZenTao, please confirm that the current server can be accessed or contact the administrator to upgrade the GitFox version to %s or above and try again."; +$lang->gitfox->bindUserError = "Can not bind users repeatedly %s"; +$lang->gitfox->importIssueError = "The execution to which this issue belongs is not selected."; +$lang->gitfox->importIssueWarn = "There is a problem of import failure, you can try to import again."; + +$lang->gitfox->accessLevels[10] = 'Guest'; +$lang->gitfox->accessLevels[20] = 'Reporter'; +$lang->gitfox->accessLevels[30] = 'Developer'; +$lang->gitfox->accessLevels[40] = 'Maintainer'; +$lang->gitfox->accessLevels[50] = 'Owner'; + +$lang->gitfox->apiError[0] = 'internal is not allowed in a private group.'; +$lang->gitfox->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitfox->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitfox->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; +$lang->gitfox->apiError[4] = 'Branch already exists'; +$lang->gitfox->apiError[5] = 'Failed to save group {:path = >["has already been taken"]}'; +$lang->gitfox->apiError[6] = 'Failed to save group {:path = >["已经被使用"]}'; +$lang->gitfox->apiError[7] = '403 Forbidden'; +$lang->gitfox->apiError[8] = 'is invalid'; +$lang->gitfox->apiError[9] = 'admin is a reserved name'; +$lang->gitfox->apiError[10] = 'has already been taken'; +$lang->gitfox->apiError[11] = 'Missing CI config file'; + +$lang->gitfox->errorLang[0] = 'You cannot set Internal as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[1] = 'You cannot set Public as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[2] = 'Password is too short (minimum is 8 characters)'; +$lang->gitfox->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->gitfox->errorLang[4] = 'Branch already exists.'; +$lang->gitfox->errorLang[5] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[6] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[7] = $lang->gitfox->noAccess; +$lang->gitfox->errorLang[8] = "Is invalid"; +$lang->gitfox->errorLang[9] = 'admin is a reserved name'; +$lang->gitfox->errorLang[10] = 'has already been taken'; +$lang->gitfox->errorLang[11] = 'Missing CI config file'; + +$lang->gitfox->errorResonse['Email has already been taken'] = 'Email has already been taken'; +$lang->gitfox->errorResonse['Username has already been taken'] = 'Username has already been taken'; + +$lang->gitfox->project = new stdclass; +$lang->gitfox->project->id = "Project ID"; +$lang->gitfox->project->name = "Project name"; +$lang->gitfox->project->create = "Create GitFox project"; +$lang->gitfox->project->edit = "Edit GitFox project"; +$lang->gitfox->project->url = "Project URL"; +$lang->gitfox->project->path = "Project slug"; +$lang->gitfox->project->description = "Project description"; +$lang->gitfox->project->visibility = "Visibility Level"; +$lang->gitfox->project->visibilityList['private'] = "Private(Project access must be granted explicitly to each user. If this project is part of a group, access will be granted to members of the group)"; +$lang->gitfox->project->visibilityList['internal'] = "Internal(The project can be accessed by any logged in user except external users)"; +$lang->gitfox->project->visibilityList['public'] = "Public(The project can be accessed without any authentication)"; +$lang->gitfox->project->star = "Stars"; +$lang->gitfox->project->fork = "Forks"; +$lang->gitfox->project->mergeRequests = "Merge Requests"; +$lang->gitfox->project->issues = "Issues"; +$lang->gitfox->project->tagList = "Topics"; +$lang->gitfox->project->tagListTips = "Separate topics with commas."; +$lang->gitfox->project->emptyNameError = "Project name cannot be empty."; +$lang->gitfox->project->emptyPathError = "Project slug cannot be empty."; +$lang->gitfox->project->confirmDelete = 'Do you want to delete this GitFox project?'; +$lang->gitfox->project->notbindedError = 'GitFox user has not been bound, unable to modify permissions!'; +$lang->gitfox->project->publicTip = 'The visible status of the current project will be modified to public, and the project can be accessed without any authentication in GitFox. '; + +$lang->gitfox->user = new stdclass; +$lang->gitfox->user->id = "User ID"; +$lang->gitfox->user->name = "Name"; +$lang->gitfox->user->username = "Username"; +$lang->gitfox->user->email = "Email"; +$lang->gitfox->user->password = "Password"; +$lang->gitfox->user->passwordRepeat = "Repeat Password"; +$lang->gitfox->user->projectsLimit = "Projects limit"; +$lang->gitfox->user->canCreateGroup = "Can create group"; +$lang->gitfox->user->external = "External"; +$lang->gitfox->user->externalTip = "External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects, groups, or personal snippets."; +$lang->gitfox->user->bind = "Zentao user"; +$lang->gitfox->user->avatar = "Avatar"; +$lang->gitfox->user->skype = "Skype"; +$lang->gitfox->user->linkedin = "Linkedin"; +$lang->gitfox->user->twitter = "Twitter"; +$lang->gitfox->user->websiteUrl = "Website url"; +$lang->gitfox->user->note = "Note"; +$lang->gitfox->user->createOn = "Created on"; +$lang->gitfox->user->lastActivity = "Last activity"; +$lang->gitfox->user->create = "Create GitFox user"; +$lang->gitfox->user->edit = "Edit GitFox user"; +$lang->gitfox->user->emptyError = "cannot be empty"; +$lang->gitfox->user->passwordError = "The second password is inconsistent!"; +$lang->gitfox->user->bindError = "The user has been bound!"; +$lang->gitfox->user->confirmDelete = 'Do you want to delete this GitFox user?'; + +$lang->gitfox->group = new stdclass; +$lang->gitfox->group->id = "Group ID"; +$lang->gitfox->group->name = "Group name"; +$lang->gitfox->group->path = "Group URL"; +$lang->gitfox->group->pathTip = "Changing group URL can have unintended side effects."; +$lang->gitfox->group->description = "Group description"; +$lang->gitfox->group->avatar = "Group avatar"; +$lang->gitfox->group->avatarTip = 'Max file size is 200 KB.'; +$lang->gitfox->group->visibility = "Visibility level"; +$lang->gitfox->group->visibilityList['private'] = "Private(The group and its projects can only be viewed by members)"; +$lang->gitfox->group->visibilityList['internal'] = "Internal(The group and any internal projects can be viewed by any logged in user except external users)"; +$lang->gitfox->group->visibilityList['public'] = "Public(The group and any public projects can be viewed without any authentication.)"; +$lang->gitfox->group->permission = 'Permission'; +$lang->gitfox->group->requestAccessEnabledTip = "Allow users to request access (if visibility is public or internal)"; +$lang->gitfox->group->lfsEnabled = 'Large File Storage'; +$lang->gitfox->group->lfsEnabledTip = "Allow projects within this group to use Git LFS(This setting can be overridden in each project)"; +$lang->gitfox->group->projectCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->projectCreationLevelList['noone'] = "No one"; +$lang->gitfox->group->projectCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->projectCreationLevelList['developer'] = "Developers + Maintainers"; +$lang->gitfox->group->subgroupCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->subgroupCreationLevelList['owner'] = "Owners"; +$lang->gitfox->group->subgroupCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->create = "Create Group"; +$lang->gitfox->group->edit = "Edit Group"; +$lang->gitfox->group->createOn = "Created on"; +$lang->gitfox->group->members = "Group Members"; +$lang->gitfox->group->confirmDelete = 'Do you want to delete this GitFox group?'; +$lang->gitfox->group->emptyError = "cannot be empty"; +$lang->gitfox->group->manageMembers = 'Manage Group Members'; +$lang->gitfox->group->memberName = 'Account'; +$lang->gitfox->group->memberAccessLevel = 'Access Level'; +$lang->gitfox->group->memberExpiresAt = 'Expiration time'; +$lang->gitfox->group->repeatError = "Group members cannot be added repeatedly"; +$lang->gitfox->group->publicTip = 'The visible status of the current group will be modified to public, and the group can be accessed without any authentication in GitFox. '; + +$lang->gitfox->branch = new stdclass(); +$lang->gitfox->branch->name = 'Branch name'; +$lang->gitfox->branch->from = 'Create from'; +$lang->gitfox->branch->create = 'Create'; +$lang->gitfox->branch->lastCommitter = 'Last Committer'; +$lang->gitfox->branch->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->branch->accessLevel = "Branch protection list"; +$lang->gitfox->branch->mergeAllowed = "Allowed to merge"; +$lang->gitfox->branch->pushAllowed = "Allowed to push"; +$lang->gitfox->branch->placeholderSearch = "Branch name"; +$lang->gitfox->branch->placeholderSelect = "Branch name"; +$lang->gitfox->branch->confirmDelete = 'Branch will be writable for developers. Are you sure?'; +$lang->gitfox->branch->branchCreationLevelList[40] = "Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[30] = "Developers + Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[0] = "No one"; +$lang->gitfox->branch->emptyPrivNameError = "Branch cannot be empty."; +$lang->gitfox->branch->issetPrivNameError = "The protection branch already exists"; + +$lang->gitfox->tag = new stdclass(); +$lang->gitfox->tag->name = 'Tag name'; +$lang->gitfox->tag->ref = 'Create from'; +$lang->gitfox->tag->lastCommitter = 'Last Committer'; +$lang->gitfox->tag->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->tag->placeholderSearch = "Enter branch tag"; +$lang->gitfox->tag->message = 'Message'; +$lang->gitfox->tag->emptyNameError = "Name cannot be empty."; +$lang->gitfox->tag->emptyRefError = "Create from cannot be empty."; +$lang->gitfox->tag->issetNameError = "The tag already exists"; +$lang->gitfox->tag->confirmDelete = 'Do you want to delete this GitFox tag?'; +$lang->gitfox->tag->protected = 'Protected'; +$lang->gitfox->tag->accessLevel = 'Allow creation'; +$lang->gitfox->tag->protectConfirmDel = 'Do you want to delete this GitFox tag protected?'; +$lang->gitfox->tag->emptyPrivNameError = 'Tag cannot be empty.'; +$lang->gitfox->tag->issetPrivNameError = 'The protection tag already exists.'; + +$lang->gitfox->featureBar['binduser']['all'] = $lang->gitfox->all; +$lang->gitfox->featureBar['binduser']['notBind'] = $lang->gitfox->notBind; +$lang->gitfox->featureBar['binduser']['binded'] = $lang->gitfox->binded; diff --git a/module/gitfox/lang/vi.php b/module/gitfox/lang/vi.php new file mode 100644 index 0000000000..6921bb0191 --- /dev/null +++ b/module/gitfox/lang/vi.php @@ -0,0 +1,259 @@ +gitfox->common = 'GitFox'; +$lang->gitfox->browse = 'GitFox Browse'; +$lang->gitfox->search = 'Search'; +$lang->gitfox->create = 'Create GitFox'; +$lang->gitfox->edit = 'Edit GitFox'; +$lang->gitfox->view = 'View GitFox'; +$lang->gitfox->bindUser = 'Bind User'; +$lang->gitfox->webhook = 'Webhook'; +$lang->gitfox->bindProduct = 'Import Product'; +$lang->gitfox->importIssue = 'Import Issue'; +$lang->gitfox->delete = 'Delete GitFox'; +$lang->gitfox->confirmDelete = 'Do you want to delete this GitFox server?'; +$lang->gitfox->gitfoxAvatar = 'Avatar'; +$lang->gitfox->gitfoxAccount = 'GitFox Account'; +$lang->gitfox->gitfoxEmail = 'GitFox User\'s Email'; +$lang->gitfox->zentaoEmail = 'Zentao User\'s Email'; +$lang->gitfox->zentaoAccount = 'Zentao Account'; +$lang->gitfox->accountDesc = '(System will automatically match users with the same email address)'; +$lang->gitfox->bindingStatus = 'Binding Status'; +$lang->gitfox->all = 'All'; +$lang->gitfox->notBind = 'Not bind'; +$lang->gitfox->binded = 'Binded'; +$lang->gitfox->bindedError = 'The bound user has been deleted or modified. Please bind again.'; +$lang->gitfox->bindDynamic = '%s and Zentao user %s'; +$lang->gitfox->serverFail = 'Connect to GitFox server failed, please check the GitFox server.'; +$lang->gitfox->lastUpdate = 'Last Update'; +$lang->gitfox->confirmAddWebhook = 'Are you sure about creating Webhook?'; +$lang->gitfox->addWebhookSuccess = 'Webhook created successfully'; +$lang->gitfox->failCreateWebhook = 'Failed to create Webhook, please view the log'; +$lang->gitfox->placeholderSearch = 'Enter name'; + +$lang->gitfox->browseAction = 'GitFox List'; +$lang->gitfox->deleteAction = 'Delete GitFox'; +$lang->gitfox->gitfoxProject = "GitFox Project"; +$lang->gitfox->browseProject = "Project"; +$lang->gitfox->browseUser = "User"; +$lang->gitfox->browseGroup = "Group"; +$lang->gitfox->browseBranch = "GitFox Branch List"; +$lang->gitfox->browseTag = "GitFox Tag List"; +$lang->gitfox->browseTagPriv = "Protected tag"; +$lang->gitfox->gitfoxIssue = "GitFox Issue"; +$lang->gitfox->zentaoProduct = 'Zentao Product'; +$lang->gitfox->objectType = 'Type'; // task, bug, story +$lang->gitfox->manageProjectMembers = 'Manage project member'; +$lang->gitfox->createProject = 'Create GitFox project'; +$lang->gitfox->editProject = 'Eidt GitFox project'; +$lang->gitfox->deleteProject = 'Delete GitFox project'; +$lang->gitfox->createGroup = 'Create group'; +$lang->gitfox->editGroup = 'Edit group'; +$lang->gitfox->deleteGroup = 'Delete group'; +$lang->gitfox->createUser = 'Create user'; +$lang->gitfox->editUser = 'Edit user'; +$lang->gitfox->deleteUser = 'Delete user'; +$lang->gitfox->createBranch = 'Add branch'; +$lang->gitfox->manageGroupMembers = 'Manage group member'; +$lang->gitfox->createWebhook = 'Create Webhook'; +$lang->gitfox->browseBranchPriv = 'Protect branch'; +$lang->gitfox->createTag = 'Create Tag'; +$lang->gitfox->deleteTag = 'Delete tag'; +$lang->gitfox->svaeFailed = '『%s』save failed'; + +$lang->gitfox->id = 'ID'; +$lang->gitfox->name = "Server Name"; +$lang->gitfox->url = 'Server URL'; +$lang->gitfox->token = 'Token'; +$lang->gitfox->defaultProject = 'Default Project'; +$lang->gitfox->private = 'MD5 Verify'; + +$lang->gitfox->server = "Server List"; +$lang->gitfox->lblCreate = 'Create GitFox Server'; +$lang->gitfox->desc = 'Description'; +$lang->gitfox->tokenFirst = 'When the Token is not empty, the Token will be used first'; +$lang->gitfox->tips = 'When using a password, please disable the "Prevent cross-site request forgery" option in the GitFox global security settings.'; +$lang->gitfox->emptyError = " cannot be empty"; +$lang->gitfox->createSuccess = "Create success"; +$lang->gitfox->mustBindUser = 'You have not registered the GitFox account, please contact the administrator to register.'; +$lang->gitfox->noAccess = 'Permission denied'; +$lang->gitfox->notCompatible = 'The current GitFox version is not compatible with ZenTao, please upgrade the GitFox version and try again'; +$lang->gitfox->deleted = 'Deleted'; + +$lang->gitfox->placeholder = new stdclass; +$lang->gitfox->placeholder->name = ''; +$lang->gitfox->placeholder->url = "Please fill in the access address of the GitFox Server homepage, as: https://gitfox.zentao.net."; +$lang->gitfox->placeholder->token = "Please fill in the access token of an account with root privileges."; +$lang->gitfox->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->gitfox->noImportableIssues = "There are currently no issues available for import."; +$lang->gitfox->tokenError = "The current token is not root rights."; +$lang->gitfox->tokenLimit = "The current token has no admin privilege. Please regenerate one with root user in GitFox."; +$lang->gitfox->hostError = "So the current GitFox server address is invalid or the current GitFox version is not compatible with ZenTao, please confirm that the current server can be accessed or contact the administrator to upgrade the GitFox version to %s or above and try again."; +$lang->gitfox->bindUserError = "Can not bind users repeatedly %s"; +$lang->gitfox->importIssueError = "The execution to which this issue belongs is not selected."; +$lang->gitfox->importIssueWarn = "There is a problem of import failure, you can try to import again."; + +$lang->gitfox->accessLevels[10] = 'Guest'; +$lang->gitfox->accessLevels[20] = 'Reporter'; +$lang->gitfox->accessLevels[30] = 'Developer'; +$lang->gitfox->accessLevels[40] = 'Maintainer'; +$lang->gitfox->accessLevels[50] = 'Owner'; + +$lang->gitfox->apiError[0] = 'internal is not allowed in a private group.'; +$lang->gitfox->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitfox->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitfox->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; +$lang->gitfox->apiError[4] = 'Branch already exists'; +$lang->gitfox->apiError[5] = 'Failed to save group {:path=>["has already been taken"]}'; +$lang->gitfox->apiError[6] = 'Failed to save group {:path=>["已经被使用"]}'; +$lang->gitfox->apiError[7] = '403 Forbidden'; +$lang->gitfox->apiError[8] = 'is invalid'; +$lang->gitfox->apiError[9] = 'admin is a reserved name'; + +$lang->gitfox->errorLang[0] = 'You cannot set Internal as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[1] = 'You cannot set Public as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[2] = 'Password is too short (minimum is 8 characters)'; +$lang->gitfox->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->gitfox->errorLang[4] = 'Branch already exists.'; +$lang->gitfox->errorLang[5] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[6] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[7] = $lang->gitfox->noAccess; +$lang->gitfox->errorLang[8] = "Is invalid"; +$lang->gitfox->errorLang[9] = 'admin is a reserved name'; + +$lang->gitfox->errorLang[0] = 'You cannot set Internal as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[1] = 'You cannot set Public as its Visibility Level, if it is private in GitFox.'; +$lang->gitfox->errorLang[2] = 'Password is too short (minimum is 8 characters)'; +$lang->gitfox->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->gitfox->errorLang[4] = 'Branch already exists.'; +$lang->gitfox->errorLang[5] = 'Failed to save group, path has already been taken.'; +$lang->gitfox->errorLang[6] = $lang->gitfox->noAccess; + +$lang->gitfox->errorResonse['Email has already been taken'] = 'Email has already been taken'; +$lang->gitfox->errorResonse['Username has already been taken'] = 'Username has already been taken'; + +$lang->gitfox->project = new stdclass; +$lang->gitfox->project->id = "Project ID"; +$lang->gitfox->project->name = "Project name"; +$lang->gitfox->project->create = "Create GitFox project"; +$lang->gitfox->project->edit = "Edit GitFox project"; +$lang->gitfox->project->url = "Project URL"; +$lang->gitfox->project->path = "Project slug"; +$lang->gitfox->project->description = "Project description"; +$lang->gitfox->project->visibility = "Visibility Level"; +$lang->gitfox->project->visibilityList['private'] = "Private(Project access must be granted explicitly to each user. If this project is part of a group, access will be granted to members of the group)"; +$lang->gitfox->project->visibilityList['internal'] = "Internal(The project can be accessed by any logged in user except external users)"; +$lang->gitfox->project->visibilityList['public'] = "Public(The project can be accessed without any authentication)"; +$lang->gitfox->project->star = "Stars"; +$lang->gitfox->project->fork = "Forks"; +$lang->gitfox->project->mergeRequests = "Merge Requests"; +$lang->gitfox->project->issues = "Issues"; +$lang->gitfox->project->tagList = "Topics"; +$lang->gitfox->project->tagListTips = "Separate topics with commas."; +$lang->gitfox->project->emptyNameError = "Project name cannot be empty."; +$lang->gitfox->project->emptyPathError = "Project slug cannot be empty."; +$lang->gitfox->project->confirmDelete = 'Do you want to delete this GitFox project?'; +$lang->gitfox->project->notbindedError = 'GitFox user has not been bound, unable to modify permissions!'; +$lang->gitfox->project->publicTip = 'The visible status of the current project will be modified to public, and the project can be accessed without any authentication in GitFox. '; + +$lang->gitfox->user = new stdclass; +$lang->gitfox->user->id = "User ID"; +$lang->gitfox->user->name = "Name"; +$lang->gitfox->user->username = "Username"; +$lang->gitfox->user->email = "Email"; +$lang->gitfox->user->password = "Password"; +$lang->gitfox->user->passwordRepeat = "Repeat Password"; +$lang->gitfox->user->projectsLimit = "Projects limit"; +$lang->gitfox->user->canCreateGroup = "Can create group"; +$lang->gitfox->user->external = "External"; +$lang->gitfox->user->externalTip = "External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects, groups, or personal snippets."; +$lang->gitfox->user->bind = "Zentao user"; +$lang->gitfox->user->avatar = "Avatar"; +$lang->gitfox->user->skype = "Skype"; +$lang->gitfox->user->linkedin = "Linkedin"; +$lang->gitfox->user->twitter = "Twitter"; +$lang->gitfox->user->websiteUrl = "Website url"; +$lang->gitfox->user->note = "Note"; +$lang->gitfox->user->createOn = "Created on"; +$lang->gitfox->user->lastActivity = "Last activity"; +$lang->gitfox->user->create = "Create GitFox user"; +$lang->gitfox->user->edit = "Edit GitFox user"; +$lang->gitfox->user->emptyError = "cannot be empty"; +$lang->gitfox->user->passwordError = "The second password is inconsistent!"; +$lang->gitfox->user->bindError = "The user has been bound!"; +$lang->gitfox->user->confirmDelete = 'Do you want to delete this GitFox user?'; + +$lang->gitfox->group = new stdclass; +$lang->gitfox->group->id = "Group ID"; +$lang->gitfox->group->name = "Group name"; +$lang->gitfox->group->path = "Group URL"; +$lang->gitfox->group->pathTip = "Changing group URL can have unintended side effects."; +$lang->gitfox->group->description = "Group description"; +$lang->gitfox->group->avatar = "Group avatar"; +$lang->gitfox->group->avatarTip = 'Max file size is 200 KB.'; +$lang->gitfox->group->visibility = "Visibility level"; +$lang->gitfox->group->visibilityList['private'] = "Private(The group and its projects can only be viewed by members)"; +$lang->gitfox->group->visibilityList['internal'] = "Internal(The group and any internal projects can be viewed by any logged in user except external users)"; +$lang->gitfox->group->visibilityList['public'] = "Public(The group and any public projects can be viewed without any authentication.)"; +$lang->gitfox->group->permission = 'Permission'; +$lang->gitfox->group->requestAccessEnabledTip = "Allow users to request access (if visibility is public or internal)"; +$lang->gitfox->group->lfsEnabled = 'Large File Storage'; +$lang->gitfox->group->lfsEnabledTip = "Allow projects within this group to use Git LFS(This setting can be overridden in each project)"; +$lang->gitfox->group->projectCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->projectCreationLevelList['noone'] = "No one"; +$lang->gitfox->group->projectCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->projectCreationLevelList['developer'] = "Developers + Maintainers"; +$lang->gitfox->group->subgroupCreationLevel = "Allowed to create projects"; +$lang->gitfox->group->subgroupCreationLevelList['owner'] = "Owners"; +$lang->gitfox->group->subgroupCreationLevelList['maintainer'] = "Maintainers"; +$lang->gitfox->group->create = "Create Group"; +$lang->gitfox->group->edit = "Edit Group"; +$lang->gitfox->group->createOn = "Created on"; +$lang->gitfox->group->members = "Group Members"; +$lang->gitfox->group->confirmDelete = 'Do you want to delete this GitFox group?'; +$lang->gitfox->group->emptyError = "cannot be empty"; +$lang->gitfox->group->manageMembers = 'Manage Group Members'; +$lang->gitfox->group->memberName = 'Account'; +$lang->gitfox->group->memberAccessLevel = 'Access Level'; +$lang->gitfox->group->memberExpiresAt = 'Expiration time'; +$lang->gitfox->group->repeatError = "Group members cannot be added repeatedly"; +$lang->gitfox->group->publicTip = 'The visible status of the current group will be modified to public, and the group can be accessed without any authentication in GitFox. '; + +$lang->gitfox->branch = new stdclass(); +$lang->gitfox->branch->name = 'Branch name'; +$lang->gitfox->branch->from = 'Create from'; +$lang->gitfox->branch->create = 'Create'; +$lang->gitfox->branch->lastCommitter = 'Last Committer'; +$lang->gitfox->branch->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->branch->accessLevel = "Branch protection list"; +$lang->gitfox->branch->mergeAllowed = "Merge Allowed"; +$lang->gitfox->branch->pushAllowed = "Push Allowed"; +$lang->gitfox->branch->placeholderSearch = "Branch name"; +$lang->gitfox->branch->placeholderSelect = "Branch name"; +$lang->gitfox->branch->confirmDelete = 'Branch will be writable for developers. Are you sure?'; +$lang->gitfox->branch->branchCreationLevelList[40] = "Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[30] = "Developers + Maintainers"; +$lang->gitfox->branch->branchCreationLevelList[0] = "No one"; +$lang->gitfox->branch->emptyPrivNameError = "Branch cannot be empty."; +$lang->gitfox->branch->issetPrivNameError = "The protection branch already exists"; + +$lang->gitfox->tag = new stdclass(); +$lang->gitfox->tag->name = 'Tag name'; +$lang->gitfox->tag->ref = 'Create from'; +$lang->gitfox->tag->lastCommitter = 'Last Committer'; +$lang->gitfox->tag->lastCommittedDate = 'Last Committed Date'; +$lang->gitfox->tag->placeholderSearch = "Enter branch tag"; +$lang->gitfox->tag->message = 'Message'; +$lang->gitfox->tag->emptyNameError = "Name cannot be empty."; +$lang->gitfox->tag->emptyRefError = "Create from cannot be empty."; +$lang->gitfox->tag->issetNameError = "The tag already exists"; +$lang->gitfox->tag->confirmDelete = 'Do you want to delete this GitFox tag?'; +$lang->gitfox->tag->protected = 'Protected'; +$lang->gitfox->tag->accessLevel = 'Allow creation'; +$lang->gitfox->tag->protectConfirmDel = 'Do you want to delete this GitFox tag protected?'; +$lang->gitfox->tag->emptyPrivNameError = 'Tag cannot be empty.'; +$lang->gitfox->tag->issetPrivNameError = 'The protection tag already exists.'; + +$lang->gitfox->featureBar['binduser']['all'] = $lang->gitfox->all; +$lang->gitfox->featureBar['binduser']['notBind'] = $lang->gitfox->notBind; +$lang->gitfox->featureBar['binduser']['binded'] = $lang->gitfox->binded; diff --git a/module/gitfox/lang/zh-cn.php b/module/gitfox/lang/zh-cn.php new file mode 100644 index 0000000000..10f4ac1ee4 --- /dev/null +++ b/module/gitfox/lang/zh-cn.php @@ -0,0 +1,258 @@ +gitfox->common = 'GitFox'; +$lang->gitfox->browse = '浏览GitFox'; +$lang->gitfox->search = '搜索'; +$lang->gitfox->create = '添加GitFox'; +$lang->gitfox->edit = '编辑GitFox'; +$lang->gitfox->view = 'GitFox详情'; +$lang->gitfox->bindUser = '权限设置'; +$lang->gitfox->webhook = '接口:允许Webhook调用'; +$lang->gitfox->importIssue = '关联Issue'; +$lang->gitfox->delete = '删除GitFox'; +$lang->gitfox->confirmDelete = '确认删除该GitFox吗?'; +$lang->gitfox->gitfoxAvatar = '头像'; +$lang->gitfox->gitfoxAccount = 'GitFox用户'; +$lang->gitfox->gitfoxEmail = 'GitFox用户邮箱'; +$lang->gitfox->zentaoEmail = '禅道用户邮箱'; +$lang->gitfox->zentaoAccount = '禅道用户'; +$lang->gitfox->accountDesc = '(系统会将相同邮箱地址的用户自动匹配)'; +$lang->gitfox->bindingStatus = '绑定状态'; +$lang->gitfox->all = '全部'; +$lang->gitfox->notBind = '未绑定'; +$lang->gitfox->binded = '已绑定'; +$lang->gitfox->bindedError = '绑定的用户已删除或者已修改,请重新绑定'; +$lang->gitfox->bindDynamic = '%s与禅道用户%s'; +$lang->gitfox->serverFail = '连接GitFox服务器异常,请检查GitFox服务器。'; +$lang->gitfox->lastUpdate = '最后更新'; +$lang->gitfox->confirmAddWebhook = '您确定创建Webhook吗?'; +$lang->gitfox->addWebhookSuccess = 'Webhook创建成功'; +$lang->gitfox->failCreateWebhook = 'Webhook创建失败,请查看日志'; +$lang->gitfox->placeholderSearch = '请输入名称'; + +$lang->gitfox->bindStatus['binded'] = $lang->gitfox->binded; +$lang->gitfox->bindStatus['notBind'] = "{$lang->gitfox->notBind}"; +$lang->gitfox->bindStatus['bindedError'] = "{$lang->gitfox->bindedError}"; + +$lang->gitfox->browseAction = 'GitFox列表'; +$lang->gitfox->deleteAction = '删除GitFox'; +$lang->gitfox->gitfoxProject = "{$lang->gitfox->common}项目"; +$lang->gitfox->browseProject = "GitFox项目列表"; +$lang->gitfox->browseUser = "用户"; +$lang->gitfox->browseGroup = "GitFox群组列表"; +$lang->gitfox->browseBranch = "GitFox分支列表"; +$lang->gitfox->browseTag = "GitFox标签列表"; +$lang->gitfox->browseTagPriv = "标签保护管理"; +$lang->gitfox->gitfoxIssue = "{$lang->gitfox->common} issue"; +$lang->gitfox->zentaoProduct = '禅道产品'; +$lang->gitfox->objectType = '类型'; // task, bug, story +$lang->gitfox->manageProjectMembers = '项目成员管理'; +$lang->gitfox->createProject = '添加GitFox项目'; +$lang->gitfox->editProject = '编辑GitFox项目'; +$lang->gitfox->deleteProject = '删除GitFox项目'; +$lang->gitfox->createGroup = '添加群组'; +$lang->gitfox->editGroup = '编辑群组'; +$lang->gitfox->deleteGroup = '删除群组'; +$lang->gitfox->createUser = '添加用户'; +$lang->gitfox->editUser = '编辑用户'; +$lang->gitfox->deleteUser = '删除用户'; +$lang->gitfox->createBranch = '添加分支'; +$lang->gitfox->manageGroupMembers = '群组成员管理'; +$lang->gitfox->createWebhook = '创建Webhook'; +$lang->gitfox->browseBranchPriv = '分支保护管理'; +$lang->gitfox->createTag = '创建标签'; +$lang->gitfox->deleteTag = '删除标签'; +$lang->gitfox->svaeFailed = '『%s』保存失败'; + +$lang->gitfox->id = 'ID'; +$lang->gitfox->name = "应用名称"; +$lang->gitfox->url = '服务器地址'; +$lang->gitfox->token = 'Token'; +$lang->gitfox->defaultProject = '默认项目'; +$lang->gitfox->private = 'MD5验证'; + +$lang->gitfox->server = "服务器列表"; +$lang->gitfox->lblCreate = '添加GitFox服务器'; +$lang->gitfox->desc = '描述'; +$lang->gitfox->tokenFirst = 'Token不为空时,优先使用Token。'; +$lang->gitfox->tips = '使用密码时,请在GitFox全局安全设置中禁用"防止跨站点请求伪造"选项。'; +$lang->gitfox->emptyError = "不能为空"; +$lang->gitfox->createSuccess = "创建成功"; +$lang->gitfox->mustBindUser = '您还未绑定GitFox用户,请联系管理员进行绑定'; +$lang->gitfox->noAccess = '权限不足'; +$lang->gitfox->notCompatible = '当前GitFox版本与禅道不兼容,请升级GitFox版本后重试'; +$lang->gitfox->deleted = '已删除'; + +$lang->gitfox->placeholder = new stdclass; +$lang->gitfox->placeholder->name = ''; +$lang->gitfox->placeholder->url = "请填写GitFox Server首页的访问地址,如:https://gitfox.zentao.net。"; +$lang->gitfox->placeholder->token = "请填写具有root权限账户的access token"; +$lang->gitfox->placeholder->projectPath = "项目标识串只能包含字母、数字、“_”、“-”和“.”。不能以“-”开头,以.git或者.atom结尾"; + +$lang->gitfox->noImportableIssues = "目前没有可供导入的issue。"; +$lang->gitfox->tokenError = "当前token非root权限。"; +$lang->gitfox->tokenLimit = "GitFox Token权限不足。请更换为有root权限的GitFox Token。"; +$lang->gitfox->hostError = "当前GitFox服务器地址无效或当前GitFox版本与禅道不兼容,请确认当前服务器可被访问或联系管理员升级GitFox至%s及以上版本后重试"; +$lang->gitfox->bindUserError = "不能重复绑定用户 %s"; +$lang->gitfox->importIssueError = "未选择该issue所属的执行。"; +$lang->gitfox->importIssueWarn = "存在导入失败的issue,可再次尝试导入。"; + +$lang->gitfox->accessLevels[10] = 'Guest'; +$lang->gitfox->accessLevels[20] = 'Reporter'; +$lang->gitfox->accessLevels[30] = 'Developer'; +$lang->gitfox->accessLevels[40] = 'Maintainer'; +$lang->gitfox->accessLevels[50] = 'Owner'; + +$lang->gitfox->apiError[0] = 'internal is not allowed in a private group.'; +$lang->gitfox->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitfox->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitfox->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; +$lang->gitfox->apiError[4] = 'Branch already exists'; +$lang->gitfox->apiError[5] = 'Failed to save group {:path=>["has already been taken"]}'; +$lang->gitfox->apiError[6] = 'Failed to save group {:path=>["已经被使用"]}'; +$lang->gitfox->apiError[7] = '403 Forbidden'; +$lang->gitfox->apiError[8] = 'is invalid'; +$lang->gitfox->apiError[9] = 'admin is a reserved name'; +$lang->gitfox->apiError[10] = 'has already been taken'; +$lang->gitfox->apiError[11] = 'Missing CI config file'; + +$lang->gitfox->errorLang[0] = '私有分组的项目,可见性级别不能设为内部。'; +$lang->gitfox->errorLang[1] = '私有分组的项目,可见性级别不能设为公开。'; +$lang->gitfox->errorLang[2] = '密码太短(最少8个字符)'; +$lang->gitfox->errorLang[3] = "只能包含字母、数字、'.'-'和'.'。不能以'-'开头、以'.git'结尾或以'.atom'结尾。"; +$lang->gitfox->errorLang[4] = '分支名已存在。'; +$lang->gitfox->errorLang[5] = '保存失败,群组URL路径已经被使用。'; +$lang->gitfox->errorLang[6] = '保存失败,群组URL路径已经被使用。'; +$lang->gitfox->errorLang[7] = $lang->gitfox->noAccess; +$lang->gitfox->errorLang[8] = '格式错误'; +$lang->gitfox->errorLang[9] = 'admin是保留名'; +$lang->gitfox->errorLang[10] = 'GitFox项目已存在'; +$lang->gitfox->errorLang[11] = '缺少CI配置文件'; + +$lang->gitfox->errorResonse['Email has already been taken'] = '邮箱已存在'; +$lang->gitfox->errorResonse['Username has already been taken'] = '用户名已存在'; + +$lang->gitfox->project = new stdclass; +$lang->gitfox->project->id = "项目ID"; +$lang->gitfox->project->name = "项目名称"; +$lang->gitfox->project->create = "添加GitFox项目"; +$lang->gitfox->project->edit = "编辑GitFox项目"; +$lang->gitfox->project->url = "项目 URL"; +$lang->gitfox->project->path = "项目标识串"; +$lang->gitfox->project->description = "项目描述"; +$lang->gitfox->project->visibility = "可见性级别"; +$lang->gitfox->project->visibilityList['private'] = "私有(项目访问必须明确授予每个用户。 如果此项目是在一个群组中,群组成员将会获得访问权限)"; +$lang->gitfox->project->visibilityList['internal'] = "内部(除外部用户外,任何登录用户均可访问该项目)"; +$lang->gitfox->project->visibilityList['public'] = "公开(该项目允许任何人访问)"; +$lang->gitfox->project->star = "星标"; +$lang->gitfox->project->fork = "派生"; +$lang->gitfox->project->mergeRequests = "合并请求"; +$lang->gitfox->project->issues = "议题"; +$lang->gitfox->project->tagList = "主题"; +$lang->gitfox->project->tagListTips = "用逗号分隔主题。"; +$lang->gitfox->project->emptyNameError = "项目名称不能为空"; +$lang->gitfox->project->emptyPathError = "项目标识串不能为空"; +$lang->gitfox->project->confirmDelete = '确认删除该GitFox项目吗?'; +$lang->gitfox->project->notbindedError = '还没绑定GitFox用户,无法修改权限!'; +$lang->gitfox->project->publicTip = '当前项目的可见性级别将修改为公开,该项目可以在GitFox中没有任何身份验证的情况下被访问'; + +$lang->gitfox->user = new stdclass; +$lang->gitfox->user->id = "用户ID"; +$lang->gitfox->user->name = "名称"; +$lang->gitfox->user->username = "用户名"; +$lang->gitfox->user->email = "邮箱"; +$lang->gitfox->user->password = "密码"; +$lang->gitfox->user->passwordRepeat = "请重复密码"; +$lang->gitfox->user->projectsLimit = "限制项目"; +$lang->gitfox->user->canCreateGroup = "可创建组"; +$lang->gitfox->user->external = "外部人员"; +$lang->gitfox->user->externalTip = "除非明确授予访问权限,否则外部用户无法查看内部或私有项目。另外,外部用户无法创建项目,群组或个人代码片段。"; +$lang->gitfox->user->bind = "禅道用户"; +$lang->gitfox->user->avatar = "头像"; +$lang->gitfox->user->skype = "Skype"; +$lang->gitfox->user->linkedin = "Linkedin"; +$lang->gitfox->user->twitter = "Twitter"; +$lang->gitfox->user->websiteUrl = "网站地址"; +$lang->gitfox->user->note = "备注"; +$lang->gitfox->user->createOn = "创建于"; +$lang->gitfox->user->lastActivity = "上次活动"; +$lang->gitfox->user->create = "添加GitFox用户"; +$lang->gitfox->user->edit = "编辑GitFox用户"; +$lang->gitfox->user->emptyError = "不能为空"; +$lang->gitfox->user->passwordError = "二次密码不一致!"; +$lang->gitfox->user->bindError = "该用户已经被绑定!"; +$lang->gitfox->user->confirmDelete = '确认删除该GitFox用户吗?'; + +$lang->gitfox->group = new stdclass; +$lang->gitfox->group->id = "群组ID"; +$lang->gitfox->group->name = "群组名称"; +$lang->gitfox->group->path = "群组URL"; +$lang->gitfox->group->pathTip = "更改群组URL可能会有意想不到的副作用。"; +$lang->gitfox->group->description = "群组描述"; +$lang->gitfox->group->avatar = "群组头像"; +$lang->gitfox->group->avatarTip = '文件最大支持200k.'; +$lang->gitfox->group->visibility = "可见性级别"; +$lang->gitfox->group->visibilityList['private'] = "私有(群组及其项目只能由成员查看)"; +$lang->gitfox->group->visibilityList['internal'] = "内部(除外部用户外,任何登录用户均可查看该组和任何内部项目)"; +$lang->gitfox->group->visibilityList['public'] = "公开(群组和任何公共项目可以在没有任何身份验证的情况下查看)"; +$lang->gitfox->group->permission = '许可'; +$lang->gitfox->group->requestAccessEnabledTip = "允许用户请求访问(如果可见性是公开或内部的)"; +$lang->gitfox->group->lfsEnabled = '大文件存储'; +$lang->gitfox->group->lfsEnabledTip = "允许该组内的项目使用 Git LFS(可以在每个项目中覆盖此设置)"; +$lang->gitfox->group->projectCreationLevel = "创建项目权限"; +$lang->gitfox->group->projectCreationLevelList['noone'] = "禁止"; +$lang->gitfox->group->projectCreationLevelList['maintainer'] = "维护者"; +$lang->gitfox->group->projectCreationLevelList['developer'] = "开发者 + 维护者"; +$lang->gitfox->group->subgroupCreationLevel = "创建子群组权限"; +$lang->gitfox->group->subgroupCreationLevelList['owner'] = "所有者"; +$lang->gitfox->group->subgroupCreationLevelList['maintainer'] = "维护者"; +$lang->gitfox->group->create = "添加群组"; +$lang->gitfox->group->edit = "编辑群组"; +$lang->gitfox->group->createOn = "创建于"; +$lang->gitfox->group->members = "群组成员"; +$lang->gitfox->group->confirmDelete = '确认删除该GitFox群组吗?'; +$lang->gitfox->group->emptyError = "不能为空"; +$lang->gitfox->group->manageMembers = '群组成员管理'; +$lang->gitfox->group->memberName = '账号'; +$lang->gitfox->group->memberAccessLevel = '角色权限'; +$lang->gitfox->group->memberExpiresAt = '过期时间'; +$lang->gitfox->group->repeatError = "群组成员不能重复添加"; +$lang->gitfox->group->publicTip = '当前群组的可见性级别将修改为公开,该群组可以在GitFox中没有任何身份验证的情况下被访问'; + +$lang->gitfox->branch = new stdclass(); +$lang->gitfox->branch->name = '分支名'; +$lang->gitfox->branch->from = '创建自'; +$lang->gitfox->branch->create = '创建'; +$lang->gitfox->branch->lastCommitter = '最后提交'; +$lang->gitfox->branch->lastCommittedDate = '最后修改时间'; +$lang->gitfox->branch->accessLevel = "分支保护列表"; +$lang->gitfox->branch->mergeAllowed = "允许合并"; +$lang->gitfox->branch->pushAllowed = "允许推送"; +$lang->gitfox->branch->placeholderSearch = "请输入分支名称"; +$lang->gitfox->branch->placeholderSelect = "请选择分支"; +$lang->gitfox->branch->confirmDelete = '确定删除分支保护?'; +$lang->gitfox->branch->branchCreationLevelList[40] = "维护者"; +$lang->gitfox->branch->branchCreationLevelList[30] = "开发者 + 维护者"; +$lang->gitfox->branch->branchCreationLevelList[0] = "禁止"; +$lang->gitfox->branch->emptyPrivNameError = "分支不能为空"; +$lang->gitfox->branch->issetPrivNameError = "已存在该保护分支"; + +$lang->gitfox->tag = new stdclass(); +$lang->gitfox->tag->name = '标签名'; +$lang->gitfox->tag->ref = '创建自'; +$lang->gitfox->tag->lastCommitter = '最后提交'; +$lang->gitfox->tag->lastCommittedDate = '最后修改时间'; +$lang->gitfox->tag->placeholderSearch = "请输入标签名称"; +$lang->gitfox->tag->message = '信息'; +$lang->gitfox->tag->emptyNameError = "标签名不能为空"; +$lang->gitfox->tag->emptyRefError = "创建自不能为空"; +$lang->gitfox->tag->issetNameError = "已存在该标签"; +$lang->gitfox->tag->confirmDelete = '确认删除该GitFox标签吗?'; +$lang->gitfox->tag->protected = '受保护'; +$lang->gitfox->tag->accessLevel = '允许创建'; +$lang->gitfox->tag->protectConfirmDel = '确认删除该GitFox标签保护吗?'; +$lang->gitfox->tag->emptyPrivNameError = "标签不能为空"; +$lang->gitfox->tag->issetPrivNameError = "已存在该保护标签"; + +$lang->gitfox->featureBar['binduser']['all'] = $lang->gitfox->all; +$lang->gitfox->featureBar['binduser']['notBind'] = $lang->gitfox->notBind; +$lang->gitfox->featureBar['binduser']['binded'] = $lang->gitfox->binded; diff --git a/module/gitfox/lang/zh-tw.php b/module/gitfox/lang/zh-tw.php new file mode 100644 index 0000000000..29d89a5382 --- /dev/null +++ b/module/gitfox/lang/zh-tw.php @@ -0,0 +1,241 @@ +gitfox->common = 'GitFox'; +$lang->gitfox->browse = '瀏覽GitFox'; +$lang->gitfox->search = '搜索'; +$lang->gitfox->create = '添加GitFox'; +$lang->gitfox->edit = '編輯GitFox'; +$lang->gitfox->view = '查看GitFox'; +$lang->gitfox->bindUser = '綁定用戶'; +$lang->gitfox->webhook = 'Webhook'; +$lang->gitfox->bindProduct = '關聯產品'; +$lang->gitfox->importIssue = '關聯issue'; +$lang->gitfox->delete = '刪除GitFox'; +$lang->gitfox->confirmDelete = '確認刪除該GitFox嗎?'; +$lang->gitfox->gitfoxAccount = 'GitFox用戶'; +$lang->gitfox->zentaoAccount = '禪道用戶'; +$lang->gitfox->accountDesc = '(系統會將相同郵箱地址的用戶自動匹配)'; +$lang->gitfox->bindingStatus = '綁定狀態'; +$lang->gitfox->all = '全部'; +$lang->gitfox->binded = '已綁定'; +$lang->gitfox->bindedError = '綁定的用戶已刪除或者已修改,請重新綁定'; +$lang->gitfox->serverFail = '連接GitFox伺服器異常,請檢查GitFox伺服器。'; +$lang->gitfox->lastUpdate = '最後更新'; +$lang->gitfox->confirmAddWebhook = '您確定創建Webhook嗎?'; +$lang->gitfox->addWebhookSuccess = 'Webhook創建成功'; +$lang->gitfox->failCreateWebhook = 'Webhook創建失敗,請查看日誌'; +$lang->gitfox->placeholderSearch = '請輸入項目名稱'; + +$lang->gitfox->browseAction = 'GitFox列表'; +$lang->gitfox->deleteAction = '刪除GitFox'; +$lang->gitfox->gitfoxProject = "{$lang->gitfox->common}項目"; +$lang->gitfox->browseProject = "{$lang->gitfox->common}項目列表"; +$lang->gitfox->browseUser = "用戶列表"; +$lang->gitfox->browseGroup = "群組列表"; +$lang->gitfox->browseBranch = "GitFox分支列表"; +$lang->gitfox->browseTag = "GitFox標籤列表"; +$lang->gitfox->gitfoxIssue = "{$lang->gitfox->common} issue"; +$lang->gitfox->zentaoProduct = '禪道產品'; +$lang->gitfox->objectType = '類型'; // task, bug, story +$lang->gitfox->manageProjectMembers = '項目成員管理'; +$lang->gitfox->createProject = '添加GitFox項目'; +$lang->gitfox->editProject = '編輯GitFox項目'; +$lang->gitfox->deleteProject = '刪除GitFox項目'; +$lang->gitfox->createGroup = '添加群組'; +$lang->gitfox->editGroup = '編輯群組'; +$lang->gitfox->deleteGroup = '刪除群組'; +$lang->gitfox->createUser = '添加用戶'; +$lang->gitfox->editUser = '編輯用戶'; +$lang->gitfox->deleteUser = '刪除用戶'; +$lang->gitfox->createBranch = '添加分支'; +$lang->gitfox->manageGroupMembers = '群組成員管理'; +$lang->gitfox->createWebhook = '創建Webhook'; +$lang->gitfox->browseBranchPriv = '分支保護管理'; +$lang->gitfox->createBranchPriv = '創建分支保護'; +$lang->gitfox->editBranchPriv = '編輯分支保護'; +$lang->gitfox->deleteBranchPriv = '刪除分支保護'; +$lang->gitfox->createTag = '創建標籤'; +$lang->gitfox->deleteTag = '刪除標籤'; +$lang->gitfox->createTagPriv = '創建標簽保護'; +$lang->gitfox->editTagPriv = '編輯標簽保護'; + +$lang->gitfox->id = 'ID'; +$lang->gitfox->name = "{$lang->gitfox->common}名稱"; +$lang->gitfox->url = '服務地址'; +$lang->gitfox->token = 'Token'; +$lang->gitfox->defaultProject = '預設項目'; +$lang->gitfox->private = 'MD5驗證'; + +$lang->gitfox->lblCreate = '添加GitFox伺服器'; +$lang->gitfox->desc = '描述'; +$lang->gitfox->tokenFirst = 'Token不為空時,優先使用Token。'; +$lang->gitfox->tips = '使用密碼時,請在GitFox全局安全設置中禁用"防止跨站點請求偽造"選項。'; +$lang->gitfox->emptyError = "不能為空"; +$lang->gitfox->createSuccess = "創建成功"; + +$lang->gitfox->placeholder = new stdclass; +$lang->gitfox->placeholder->name = ''; +$lang->gitfox->placeholder->url = "請填寫GitFox Server首頁的訪問地址,如:https://gitfox.zentao.net。"; +$lang->gitfox->placeholder->token = "請填寫具有admin權限賬戶的access token"; +$lang->gitfox->placeholder->projectPath = "項目標識串只能包含字母、數字、“_”、“-”和“.”。不能以“-”開頭,以.git或者.atom結尾"; + +$lang->gitfox->noImportableIssues = "目前沒有可供導入的issue。"; +$lang->gitfox->tokenError = "當前token非管理員權限。"; +$lang->gitfox->tokenLimit = "GitFox Token權限不足。請更換為有管理員權限的GitFox Token。"; +$lang->gitfox->hostError = "無效的GitFox服務地址。"; +$lang->gitfox->bindUserError = "不能重複綁定用戶 %s"; +$lang->gitfox->importIssueError = "未選擇該issue所屬的執行。"; +$lang->gitfox->importIssueWarn = "存在導入失敗的issue,可再次嘗試導入。"; + +$lang->gitfox->accessLevels[10] = 'Guest'; +$lang->gitfox->accessLevels[20] = 'Reporter'; +$lang->gitfox->accessLevels[30] = 'Developer'; +$lang->gitfox->accessLevels[40] = 'Maintainer'; +$lang->gitfox->accessLevels[50] = 'Owner'; + +$lang->gitfox->apiError[0] = 'internal is not allowed in a private group.'; +$lang->gitfox->apiError[1] = 'public is not allowed in a private group.'; +$lang->gitfox->apiError[2] = 'is too short (minimum is 8 characters)'; +$lang->gitfox->apiError[3] = "can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'"; +$lang->gitfox->apiError[4] = 'Branch already exists'; +$lang->gitfox->apiError[5] = 'Failed to save group {:path=>["has already been taken"]}'; +$lang->gitfox->apiError[6] = 'Failed to save group {:path=>["已经被使用"]}'; +$lang->gitfox->apiError[7] = '403 Forbidden'; +$lang->gitfox->apiError[8] = 'is invalid'; +$lang->gitfox->apiError[9] = 'admin is a reserved name'; + +$lang->gitfox->errorLang[0] = '私有分組的項目,可見性級別不能設為內部。'; +$lang->gitfox->errorLang[1] = '私有分組的項目,可見性級別不能設為公開。'; +$lang->gitfox->errorLang[2] = '密碼太短(最少8個字元)'; +$lang->gitfox->errorLang[3] = "只能包含字母、數字、'.'-'和'.'。不能以'-'開頭、以'.git'結尾或以'.atom'結尾。"; +$lang->gitfox->errorLang[4] = '分支名已存在。'; +$lang->gitfox->errorLang[5] = '保存失敗,群組URL路徑已經被使用。'; +$lang->gitfox->errorLang[6] = '保存失敗,群組URL路徑已經被使用。'; +$lang->gitfox->errorLang[7] = $lang->gitfox->noAccess; +$lang->gitfox->errorLang[8] = '格式错误'; +$lang->gitfox->errorLang[9] = 'admin是保留名'; + +$lang->gitfox->errorResonse['Email has already been taken'] = '邮箱已存在'; +$lang->gitfox->errorResonse['Username has already been taken'] = '用户名已存在'; + +$lang->gitfox->project = new stdclass; +$lang->gitfox->project->id = "項目ID"; +$lang->gitfox->project->name = "項目名稱"; +$lang->gitfox->project->create = "添加GitFox項目"; +$lang->gitfox->project->edit = "編輯GitFox項目"; +$lang->gitfox->project->url = "項目 URL"; +$lang->gitfox->project->path = "項目標識串"; +$lang->gitfox->project->description = "項目描述"; +$lang->gitfox->project->visibility = "可見性級別"; +$lang->gitfox->project->visibilityList['private'] = "私有(項目訪問必須明確授予每個用戶。 如果此項目是在一個群組中,群組成員將會獲得訪問權限)"; +$lang->gitfox->project->visibilityList['internal'] = "內部(除外部用戶外,任何登錄用戶均可訪問該項目)"; +$lang->gitfox->project->visibilityList['public'] = "公開(該項目允許任何人訪問)"; +$lang->gitfox->project->star = "星標"; +$lang->gitfox->project->fork = "派生"; +$lang->gitfox->project->mergeRequests = "合併請求"; +$lang->gitfox->project->issues = "議題"; +$lang->gitfox->project->tagList = "主題"; +$lang->gitfox->project->tagListTips = "用逗號分隔主題。"; +$lang->gitfox->project->emptyNameError = "項目名稱不能為空"; +$lang->gitfox->project->emptyPathError = "項目標識串不能為空"; +$lang->gitfox->project->confirmDelete = '確認刪除該GitFox項目嗎?'; +$lang->gitfox->project->notbindedError = '還沒綁定GitFox用戶,無法修改權限!'; + +$lang->gitfox->user = new stdclass; +$lang->gitfox->user->id = "用戶ID"; +$lang->gitfox->user->name = "名稱"; +$lang->gitfox->user->username = "用戶名"; +$lang->gitfox->user->email = "郵箱"; +$lang->gitfox->user->password = "密碼"; +$lang->gitfox->user->passwordRepeat = "請重複密碼"; +$lang->gitfox->user->projectsLimit = "限制項目"; +$lang->gitfox->user->canCreateGroup = "可創建組"; +$lang->gitfox->user->external = "外部人員"; +$lang->gitfox->user->externalTip = "除非明確授予訪問權限,否則外部用戶無法查看內部或私有項目。另外,外部用戶無法創建項目,群組或個人代碼片段。"; +$lang->gitfox->user->bind = "禪道用戶"; +$lang->gitfox->user->avatar = "頭像"; +$lang->gitfox->user->skype = "Skype"; +$lang->gitfox->user->linkedin = "Linkedin"; +$lang->gitfox->user->twitter = "Twitter"; +$lang->gitfox->user->websiteUrl = "網站地址"; +$lang->gitfox->user->note = "備註"; +$lang->gitfox->user->createOn = "創建於"; +$lang->gitfox->user->lastActivity = "上次活動"; +$lang->gitfox->user->create = "添加GitFox用戶"; +$lang->gitfox->user->edit = "編輯GitFox用戶"; +$lang->gitfox->user->emptyError = "不能為空"; +$lang->gitfox->user->passwordError = "二次密碼不一致!"; +$lang->gitfox->user->bindError = "該用戶已經被綁定!"; +$lang->gitfox->user->confirmDelete = '確認刪除該GitFox用戶嗎?'; + +$lang->gitfox->group = new stdclass; +$lang->gitfox->group->id = "群組ID"; +$lang->gitfox->group->name = "群組名稱"; +$lang->gitfox->group->path = "群組URL"; +$lang->gitfox->group->pathTip = "更改群組URL可能會有意想不到的副作用。"; +$lang->gitfox->group->description = "群組描述"; +$lang->gitfox->group->avatar = "群組頭像"; +$lang->gitfox->group->avatarTip = '檔案最大支持200k.'; +$lang->gitfox->group->visibility = "可見性級別"; +$lang->gitfox->group->visibilityList['private'] = "私有(群組及其項目只能由成員查看)"; +$lang->gitfox->group->visibilityList['internal'] = "內部(除外部用戶外,任何登錄用戶均可查看該組和任何內部項目)"; +$lang->gitfox->group->visibilityList['public'] = "公開(群組和任何公共項目可以在沒有任何身份驗證的情況下查看)"; +$lang->gitfox->group->permission = '許可'; +$lang->gitfox->group->requestAccessEnabledTip = "允許用戶請求訪問(如果可見性是公開或內部的)"; +$lang->gitfox->group->lfsEnabled = '大檔案存儲'; +$lang->gitfox->group->lfsEnabledTip = "允許該組內的項目使用 Git LFS(可以在每個項目中覆蓋此設置)"; +$lang->gitfox->group->projectCreationLevel = "創建項目權限"; +$lang->gitfox->group->projectCreationLevelList['noone'] = "禁止"; +$lang->gitfox->group->projectCreationLevelList['maintainer'] = "維護者"; +$lang->gitfox->group->projectCreationLevelList['developer'] = "開發者 + 維護者"; +$lang->gitfox->group->subgroupCreationLevel = "創建子群組權限"; +$lang->gitfox->group->subgroupCreationLevelList['owner'] = "所有者"; +$lang->gitfox->group->subgroupCreationLevelList['maintainer'] = "維護者"; +$lang->gitfox->group->create = "添加群組"; +$lang->gitfox->group->edit = "編輯群組"; +$lang->gitfox->group->createOn = "創建於"; +$lang->gitfox->group->members = "群組成員"; +$lang->gitfox->group->confirmDelete = '確認刪除該GitFox群組嗎?'; +$lang->gitfox->group->emptyError = "不能為空"; +$lang->gitfox->group->manageMembers = '群組成員管理'; +$lang->gitfox->group->memberName = '賬號'; +$lang->gitfox->group->memberAccessLevel = '角色權限'; +$lang->gitfox->group->memberExpiresAt = '過期時間'; +$lang->gitfox->group->repeatError = "群組成員不能重複添加"; + +$lang->gitfox->branch = new stdclass(); +$lang->gitfox->branch->name = '分支名'; +$lang->gitfox->branch->from = '創建自'; +$lang->gitfox->branch->create = '創建'; +$lang->gitfox->branch->lastCommitter = '最後提交'; +$lang->gitfox->branch->lastCommittedDate = '最後修改時間'; +$lang->gitfox->branch->accessLevel = "分支保護列表"; +$lang->gitfox->branch->mergeAllowed = "允許合併到"; +$lang->gitfox->branch->pushAllowed = "允許推送到"; +$lang->gitfox->branch->placeholderSearch = "請輸入分支名稱"; +$lang->gitfox->branch->placeholderSelect = "請選擇分支"; +$lang->gitfox->branch->confirmDelete = '確定刪除分支保護?'; +$lang->gitfox->branch->branchCreationLevelList[40] = "維護者"; +$lang->gitfox->branch->branchCreationLevelList[30] = "開發者 + 維護者"; +$lang->gitfox->branch->branchCreationLevelList[0] = "禁止"; +$lang->gitfox->branch->emptyPrivNameError = "分支不能為空"; +$lang->gitfox->branch->issetPrivNameError = "已存在該保護分支"; + +$lang->gitfox->tag = new stdclass(); +$lang->gitfox->tag->name = '標籤名'; +$lang->gitfox->tag->ref = '創建自'; +$lang->gitfox->tag->lastCommitter = '最後提交'; +$lang->gitfox->tag->lastCommittedDate = '最後修改時間'; +$lang->gitfox->tag->placeholderSearch = "請輸入標籤名稱"; +$lang->gitfox->tag->message = '信息'; +$lang->gitfox->tag->emptyNameError = "標籤名不能為空"; +$lang->gitfox->tag->emptyRefError = "創建自不能為空"; +$lang->gitfox->tag->issetNameError = "已存在該標籤"; +$lang->gitfox->tag->confirmDelete = '確認刪除該GitFox標籤嗎?'; +$lang->gitfox->tag->protected = '受保護'; +$lang->gitfox->tag->accessLevel = '允許創建'; +$lang->gitfox->tag->emptyPrivNameError = '標簽不能爲空'; +$lang->gitfox->tag->issetPrivNameError = '已存在該保護標簽'; + +$lang->gitfox->featureBar['binduser']['all'] = $lang->gitfox->all; +$lang->gitfox->featureBar['binduser']['notBind'] = $lang->gitfox->notBind; +$lang->gitfox->featureBar['binduser']['binded'] = $lang->gitfox->binded; diff --git a/module/gitfox/model.php b/module/gitfox/model.php new file mode 100644 index 0000000000..b51914613b --- /dev/null +++ b/module/gitfox/model.php @@ -0,0 +1,15 @@ + + * @package gitfox + * @link https://www.zentao.net + */ +class xxxModel extends model +{ +} + diff --git a/module/gitfox/ui/browse.html.php b/module/gitfox/ui/browse.html.php new file mode 100644 index 0000000000..b0e4ff28cd --- /dev/null +++ b/module/gitfox/ui/browse.html.php @@ -0,0 +1,40 @@ + + * @package gitfox + * @link https://www.zentao.net + */ + +namespace zin; + +featureBar(); + +/* zin: Define the toolbar on main menu. */ +$canCreate = hasPriv('gitfox', 'create'); +$createLink = $this->createLink('gitfox', 'create'); +$createItem = array('text' => $lang->gitfox->create, 'url' => $createLink, 'class' => 'primary', 'icon' => 'plus'); + +$tableData = initTableData($gitfoxList, $config->gitfox->dtable->fieldList, $this->gitfox); + +toolbar +( + $canCreate ? item(set($createItem)) : null +); + +jsVar('confirmDelete', $lang->gitfox->confirmDelete); +jsVar('canBrowseProject', common::hasPriv('gitfox', 'browseProject')); + +dtable +( + set::cols(array_values($config->gitfox->dtable->fieldList)), + set::data($tableData), + set::orderBy($orderBy), + set::sortLink(createLink('gitfox', 'browse', "orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")), + set::onRenderCell(jsRaw('window.renderCell')), + set::footPager(usePager()) +); diff --git a/module/gitfox/ui/view.html.php b/module/gitfox/ui/view.html.php new file mode 100644 index 0000000000..7a1b06262e --- /dev/null +++ b/module/gitfox/ui/view.html.php @@ -0,0 +1,38 @@ + + * @package gitfox + * @link https://www.zentao.net + */ +namespace zin; +global $lang; + +detailHeader +( + isAjaxRequest('modal') ? to::prefix() : '', + to::title( + entityLabel( + set(array('entityID' => $gitfox->id, 'level' => 1, 'text' => $gitfox->name)) + ) + ) +); + +detailBody +( + sectionList + ( + section + ( + set::title($lang->gitfox->url), + set::content("{$gitfox->url}"), + set::useHtml(true) + ) + ), + history() +); + +render();