<?php
$lang->codescan->browse          = 'Scan Rule List';
$lang->codescan->view            = 'View';
$lang->codescan->changeState     = 'Change Status';
$lang->codescan->ruleset         = 'Ruleset List';
$lang->codescan->linkRule        = 'Link Rule';
$lang->codescan->createRuleset   = 'Create Ruleset';
$lang->codescan->editRuleset     = 'Edit Ruleset';
$lang->codescan->deleteRuleset   = 'Delete Ruleset';
$lang->codescan->viewRuleset     = 'View Ruleset';
$lang->codescan->unlinkRule      = 'Unlink Rule';
$lang->codescan->batchUnlinkRule = 'Batch Unlink Rule';
$lang->codescan->batchUnlink     = 'Batch Unlink';
$lang->codescan->linkSet         = 'Link Set';
$lang->codescan->batchUnlinkSet  = 'Batch Unlink Set';
$lang->codescan->unlinkSet       = 'Unlink Set';
$lang->codescan->solution        = 'Scan Solution';
$lang->codescan->createSolution  = 'Create Scan Solution';
$lang->codescan->editSolution    = 'Edit Scan Solution';
$lang->codescan->deleteSolution  = 'Delete Scan Solution';
$lang->codescan->viewSolution    = 'View Scan Solution';
$lang->codescan->rulesets        = 'Rulesets';
$lang->codescan->plan            = 'Scan Plan';
$lang->codescan->planView        = 'View Plan';
$lang->codescan->createPlan      = 'Create Scan Plan';
$lang->codescan->editPlan        = 'Edit Scan Plan';
$lang->codescan->deletePlan      = 'Delete Scan Plan';
$lang->codescan->unlinkSolution  = 'Unlink Solution';
$lang->codescan->task            = 'Scan Task';
$lang->codescan->taskView        = 'View Scan Task';
$lang->codescan->taskLog         = 'Scan Task Log';
$lang->codescan->exec            = 'Exec Scan';
$lang->codescan->trigger         = 'Trigger';
$lang->codescan->triggerName     = 'Trigger Name';
$lang->codescan->createTrigger   = 'Create Trigger';
$lang->codescan->editTrigger     = 'Edit Trigger';
$lang->codescan->deleteTrigger   = 'Delete Trigger';
$lang->codescan->addCondition    = 'Add Condition';
$lang->codescan->issue           = 'Scan Issue';
$lang->codescan->issueView       = 'View Scan Issue';
$lang->codescan->createBug       = 'Create Bug';
$lang->codescan->ignoreIssue     = 'Ignore';
$lang->codescan->confirmIssue    = 'Confirm';
$lang->codescan->activeIssue     = 'Active';
$lang->codescan->ruleName        = 'Rule Name';
$lang->codescan->ruleID          = 'Rule ID';
$lang->codescan->scanSetting     = 'Scan Setting';
$lang->codescan->allTask         = 'All Task';
$lang->codescan->rule            = 'Rule';
$lang->codescan->catalog         = 'File';
$lang->codescan->overview        = 'Overview';
$lang->codescan->ignoreDate      = 'Ignore Date';
$lang->codescan->refresh         = 'Refresh Data';
$lang->codescan->general         = 'General';
$lang->codescan->default         = 'Default';
$lang->codescan->resend          = 'Resend';

$lang->codescan->resolvedByTop             = 'Resolved By Top 10';
$lang->codescan->issueInjectionTop         = 'Issue Injection Top 10';
$lang->codescan->issueRanking              = 'Top 10 Issue Ranking';
$lang->codescan->unSolvedRanking           = 'Top 10 UnSolved Ranking';
$lang->codescan->fileRanking               = 'Top 10 File Ranking';
$lang->codescan->ruleRanking               = 'Top 10 Rule Ranking';
$lang->codescan->issueStatusDistribution   = 'Issue Status Distribution';
$lang->codescan->issueTypeDistribution     = 'Issue Type Distribution';
$lang->codescan->issueSeverityDistribution = 'Issue Severity Distribution';
$lang->codescan->addIssueStatistic         = 'Added Issue Statistic';
$lang->codescan->fixIssueStatistic         = 'Fixed Issue Statistic';
$lang->codescan->repoStatistic             = 'Statistic by Repository';
$lang->codescan->issueCount                = 'Issue';
$lang->codescan->waitIssueCount            = 'Wait Issue Count';
$lang->codescan->fixedIssueCount           = 'Fixed Issue Count';
$lang->codescan->ignoreIssueCount          = 'Ignore Issue Count';
$lang->codescan->issueOverview             = 'Issue Overview';
$lang->codescan->scanOverview              = 'Scan Overview';
$lang->codescan->scanRepoCount             = 'Scan Repo Count';
$lang->codescan->hitRuleCount              = 'Hit Rule Count';
$lang->codescan->executionCount            = 'Execution Count';
$lang->codescan->fileCount                 = 'File Count';
$lang->codescan->injectorCount             = 'Injector Count';
$lang->codescan->scanIssueOverview         = 'Scan Issue Overview';

$lang->codescan->dayLabels = array();
$lang->codescan->dayLabels['7']  = '7 days';
$lang->codescan->dayLabels['14'] = '14 days';
$lang->codescan->dayLabels['21'] = '21 days';
$lang->codescan->dayLabels['28'] = '28 days';

$lang->codescan->name        = 'Name';
$lang->codescan->title       = 'Title';
$lang->codescan->language    = 'Language';
$lang->codescan->tool        = 'Tool';
$lang->codescan->type        = 'Type';
$lang->codescan->severity    = 'Severity';
$lang->codescan->status      = 'Status';
$lang->codescan->enable      = 'Enable';
$lang->codescan->disable     = 'Disable';
$lang->codescan->desc        = 'Description';
$lang->codescan->synopsis    = 'Synopsis';
$lang->codescan->tag         = 'Tag';
$lang->codescan->edit        = 'Edit';
$lang->codescan->delete      = 'Delete';
$lang->codescan->lang_id     = 'Language';
$lang->codescan->lang        = 'Language';
$lang->codescan->priority    = 'Priority';
$lang->codescan->repo        = 'Repo';
$lang->codescan->scanBranch  = 'Scan Branch';
$lang->codescan->cron_branch = 'Scan Branch';
$lang->codescan->branch      = 'Branch';
$lang->codescan->branchReg   = 'Match branch';
$lang->codescan->excludePath = 'Exclude path';
$lang->codescan->excludeFile = 'Exclude file';
$lang->codescan->scope       = 'Scan scope';
$lang->codescan->solutions   = 'Scan solutions';
$lang->codescan->standard    = 'Judgment standard';
$lang->codescan->compliant   = 'Result is compliant with standard';
$lang->codescan->metric      = 'Metric';
$lang->codescan->logic       = 'Logic';
$lang->codescan->threshold   = 'Threshold';
$lang->codescan->triggerType = 'Trigger type';
$lang->codescan->operation   = 'Action';
$lang->codescan->keyword     = 'Comment keyword';
$lang->codescan->keywords    = 'Keywords';
$lang->codescan->pcs         = 'Pcs';
$lang->codescan->file        = 'File';

$lang->codescan->issueStatistics = 'Issue Statistics';
$lang->codescan->monthAdded      = 'Month Added';
$lang->codescan->monthFixed      = 'Month Fixed';
$lang->codescan->added           = 'Added';
$lang->codescan->fixed           = 'Fixed';
$lang->codescan->fixedRate       = 'Fixed Rate';
$lang->codescan->closed          = 'Closed';
$lang->codescan->unClosed        = 'UnClosed';

$lang->codescan->injector      = 'Injector';
$lang->codescan->injectDate    = 'Inject Date';
$lang->codescan->injectCommit  = 'Inject Commit';
$lang->codescan->issueLocation = 'Issue Location';
$lang->codescan->issueReason   = 'Issue Reason';
$lang->codescan->taskInfo      = 'Task Info';

$lang->codescan->minute = 'Minute';
$lang->codescan->hour   = 'Hour';
$lang->codescan->day    = 'Day';
$lang->codescan->month  = 'Month';
$lang->codescan->week   = 'Week';

$lang->codescan->latestScanTime   = 'Latest Scan Time';
$lang->codescan->latestExecStatus = 'Execution Status';
$lang->codescan->runStatus        = 'Run Status';
$lang->codescan->latestScanResult = 'Scan Result';
$lang->codescan->latestScan       = 'Latest Scan';
$lang->codescan->countLanguages   = '%s languages';
$lang->codescan->allSeverity      = 'All Severity';

$lang->codescan->setNum     = 'Ruleset Num';
$lang->codescan->ruleNum    = 'Rule Num';
$lang->codescan->createdBy  = 'Created By';
$lang->codescan->createTime = 'Create Time';
$lang->codescan->updatedBy  = 'Updated By';
$lang->codescan->updateTime = 'Update Time';
$lang->codescan->created_by = 'Created By';
$lang->codescan->created_at = 'Create Time';
$lang->codescan->updated_by = 'Updated By';
$lang->codescan->updated_at = 'Update Time';
$lang->codescan->startTime  = 'Start Time';
$lang->codescan->endTime    = 'End Time';
$lang->codescan->runTime    = 'Run Time';
$lang->codescan->result     = 'Scan Result';

$lang->codescan->typeList = array();
$lang->codescan->typeList['all']        = 'All';
$lang->codescan->typeList['defect']     = 'Bug';
$lang->codescan->typeList['security']   = 'Security';
$lang->codescan->typeList['compliance'] = 'Compliance';
$lang->codescan->typeList['optimize']   = 'Optimize';

$lang->codescan->severityList = array();
$lang->codescan->severityList['all']    = 'All';
$lang->codescan->severityList['high']   = 'High';
$lang->codescan->severityList['medium'] = 'Medium';
$lang->codescan->severityList['low']    = 'Low';

$lang->codescan->priorityList = array();
$lang->codescan->priorityList['high']   = 'Important';
$lang->codescan->priorityList['medium'] = 'Recommended';
$lang->codescan->priorityList['low']    = 'Optional';

$lang->codescan->statusList = array();
$lang->codescan->statusList['enabled']  = 'Enable';
$lang->codescan->statusList['disabled'] = 'Disable';

$lang->codescan->scopeList = array();
$lang->codescan->scopeList['full']        = 'All';
$lang->codescan->scopeList['incremental'] = 'Delta';

$lang->codescan->latestExecStatusList = array();
$lang->codescan->latestExecStatusList['in_progress'] = 'Doing';
$lang->codescan->latestExecStatusList['success']     = 'Success';
$lang->codescan->latestExecStatusList['failed']      = 'Failed';

$lang->codescan->latestScanResultList = array();
$lang->codescan->latestScanResultList['-']       = '-';
$lang->codescan->latestScanResultList['pass']    = 'Pass';
$lang->codescan->latestScanResultList['no-pass'] = 'Not Pass';

$lang->codescan->metricList = array();
$lang->codescan->metricList['count']   = 'Num';
$lang->codescan->metricList['percent'] = 'Percent';

$lang->codescan->triggerTypeList = array();
$lang->codescan->triggerTypeList['manual'] = 'Manual';
$lang->codescan->triggerTypeList['action'] = 'Active';
$lang->codescan->triggerTypeList['cron']   = 'Cron';

$lang->codescan->operationList = array();
$lang->codescan->operationList['pullreq_created'] = 'Create merge/push request';
$lang->codescan->operationList['branch_created']  = 'Branch created';
$lang->codescan->operationList['branch_updated']  = 'Branch updated';
$lang->codescan->operationList['tag_created']     = 'Tag created';

$lang->codescan->issueStatusList = array();
$lang->codescan->issueStatusList['wait']    = 'Wait';
$lang->codescan->issueStatusList['todo']    = 'Todo';
$lang->codescan->issueStatusList['solving'] = 'Solving';
$lang->codescan->issueStatusList['solved']  = 'Solved';
$lang->codescan->issueStatusList['ignore']  = 'Ignore';
$lang->codescan->issueStatusList['closed']  = 'Closed';

$lang->codescan->ignoreDateList = array();
$lang->codescan->ignoreDateList['1 week']  = '1 week';
$lang->codescan->ignoreDateList['2 week']  = '2 week';
$lang->codescan->ignoreDateList['1 month'] = '1 month';
$lang->codescan->ignoreDateList['3 month'] = '3 month';
$lang->codescan->ignoreDateList['6 month'] = 'half year';
$lang->codescan->ignoreDateList['-1']      = 'forever';

$lang->codescan->featureBar = array();
$lang->codescan->featureBar['browse']   = $lang->codescan->typeList;
$lang->codescan->featureBar['ruleset']  = array('all' => 'All') + $lang->codescan->statusList;
$lang->codescan->featureBar['solution'] = array('all' => 'All') + $lang->codescan->statusList;
$lang->codescan->featureBar['issue']    = array('all' => 'All') + $lang->codescan->issueStatusList;
$lang->codescan->featureBar['plan']     = array('all' => 'All') + $lang->codescan->latestExecStatusList;
unset($lang->codescan->featureBar['plan']['in_progress']);

$lang->codescan->notice = new stdclass();
$lang->codescan->notice->confirmEnable          = 'Are you sure to enable this rule?';
$lang->codescan->notice->confirmDisable         = 'Are you sure to disable this rule?';
$lang->codescan->notice->confirmUnlink          = 'Are you sure to unlink this rule?';
$lang->codescan->notice->confirmUnlinkSet       = 'Are you sure to unlink this ruleset?';
$lang->codescan->notice->confirmActivateIssue   = 'Are you sure to activate this issue?';
$lang->codescan->notice->changeStateFailed      = 'Change status failed';
$lang->codescan->notice->enableSuccess          = 'Enable success';
$lang->codescan->notice->disableSuccess         = 'Disable success';
$lang->codescan->notice->confirmEnableRuleset   = 'Are you sure to enable this ruleset?';
$lang->codescan->notice->confirmDisableRuleset  = 'Are you sure to disable this ruleset?';
$lang->codescan->notice->deleteRuleset          = 'Are you sure to delete this ruleset, After deletion, the rules under this rule set will not be affected.';
$lang->codescan->notice->defaultRuleset         = 'Default ruleset is not allowed to %s';
$lang->codescan->notice->defaultSolution        = 'Default solution is not allowed to %s';
$lang->codescan->notice->deleteLanguage         = 'You are about to delete the language [%s]. This action will remove all rules that use this language. Are you sure you want to delete it?';
$lang->codescan->notice->confirmEnableSolution  = 'Are you sure to enable this solution?';
$lang->codescan->notice->confirmDisableSolution = 'Are you sure to disable this solution?';
$lang->codescan->notice->deleteSolution         = 'Are you sure to delete this solution?';
$lang->codescan->notice->defaultSolution        = 'Default solution is not allowed to %s';
$lang->codescan->notice->linkSuccess            = 'Link success';
$lang->codescan->notice->linkFailed             = 'Link failed';
$lang->codescan->notice->unlinkSuccess          = 'Unlink success';
$lang->codescan->notice->unlinkFailed           = 'Unlink failed';
$lang->codescan->notice->matchBranch            = 'Please enter the keyword of matching branch, multiple keywords separated by commas';
$lang->codescan->notice->excludePath            = 'Please enter the path to exclude, multiple paths separated by commas, such as: path/file, /path/*';
$lang->codescan->notice->excludeFile            = 'Please enter the file to exclude, multiple files separated by commas, such as: file*';
$lang->codescan->notice->compliant              = 'Only the following conditions are met to pass the scan result.';
$lang->codescan->notice->deletePlan             = 'Are you sure to delete this scan plan?';
$lang->codescan->notice->deleteTrigger          = 'Are you sure to delete this trigger?';
$lang->codescan->notice->branchEmpty            = 'Please enter the keyword of matching branch, multiple keywords separated by commas';
$lang->codescan->notice->confirmUnlinkSolution  = 'Are you sure to unlink this solution?';
$lang->codescan->notice->weekLimit              = 'Week must be between 0 and 6';
$lang->codescan->notice->weekError              = 'Week field format is incorrect. Support *: every day, number: specific week, range: 0-6, interval: /2';
$lang->codescan->notice->monthLimit             = 'Month must be between 1 and 12';
$lang->codescan->notice->monthError             = 'Month field format is incorrect. Support *: every month, number: specific month, range: 1-12, interval: /2';
$lang->codescan->notice->dayLimit               = 'Day must be between 1 and 31';
$lang->codescan->notice->dayError               = 'Day field format is incorrect. Support *: every day, number: specific day, range: 1-31, interval: /2';
$lang->codescan->notice->hourLimit              = 'Hour must be between 0 and 23';
$lang->codescan->notice->hourError              = 'Hour field format is incorrect. Support *: every hour, number: specific hour, range: 0-23, interval: /2';
$lang->codescan->notice->minuteLimit            = 'Minute must be between 0 and 59';
$lang->codescan->notice->minuteError            = 'Minute field format is incorrect. Support *: every minute, number: specific minute, range: 0-59, interval: /2';
$lang->codescan->notice->thresholdError         = 'Threshold must be between 0 and 100';
$lang->codescan->notice->keywordNote            = "Please enter the keyword of matching branch, multiple keywords separated by commas";
$lang->codescan->notice->execFail               = 'Scan request submission failed, please try again';
$lang->codescan->notice->execSuccess            = 'Scan request submission successful, please wait for queue scheduling to start scanning';
$lang->codescan->notice->bugCreated             = 'Issue %s has been converted to Bug or status is not Wait and Todo , this operation has been filtered.';
$lang->codescan->notice->statusDisable          = 'Issue %s status is not %s, this operation has been filtered.';
$lang->codescan->notice->copiedSuccess          = 'Copy successful';
$lang->codescan->notice->repoNotFound           = 'Repo not found';
$lang->codescan->notice->refreshTime            = 'Statistics updated before <strong>%s</strong>';
$lang->codescan->notice->fixedIssueTip          = 'Fixed issue is solved and closed status.';
$lang->codescan->notice->noOverviewData         = 'No statistics data!';
$lang->codescan->notice->noScanData             = 'No scan data! Please scan first.';
$lang->codescan->notice->resendFailed           = 'Retry failed, please try again later!';
$lang->codescan->notice->resendSuccess          = 'Retry successful';

$lang->codescanruleset  = $lang->codescan;
$lang->codescansolution = $lang->codescan;

$lang->codescan->apiError = array();
$lang->codescan->apiError[] = 'failed to create solution, solution already exists';
$lang->codescan->apiError[] = $lang->error->httpServerError;
$lang->codescan->apiError[] = 'Cron expression is not correct';
$lang->codescan->apiError[] = 'Failed to delete scan plan trigger: scan plan has only one trigger, cannot delete';
$lang->codescan->apiError[] = 'Plan already exists';
$lang->codescan->apiError[] = 'Rule set already exists';
$lang->codescan->apiError[] = 'scan ruleset is being used by scan solution';

$lang->codescan->withinMinutes = '%s minutes';
$lang->codescan->withinHours   = '%s hours';
$lang->codescan->scanNo        = ' Scan #%s';
$lang->codescan->fileIssueList = ' File Issue List';
$lang->codescan->or            = ' or ';

$lang->codescan->tips           = 'Tips';
$lang->codescan->afterInfo      = 'Scan plan created successfully, you can now perform the following actions:';
$lang->codescan->goBackPlanList = 'Return to scan plan list';
$lang->codescan->setTrigger     = 'Set Trigger';
