diff --git a/PHPCI/Languages/lang.en-gb.php b/PHPCI/Languages/lang.en-gb.php index 3b9b7b04..b1ec16ea 100644 --- a/PHPCI/Languages/lang.en-gb.php +++ b/PHPCI/Languages/lang.en-gb.php @@ -48,8 +48,9 @@ $strings = array( // Timeline: 'latest_builds' => 'Latest Builds', - 'created' => 'Created', - 'started' => 'Started', + 'pending' => 'Pending', + 'running' => 'Running', + 'success' => 'Success', 'successful' => 'Successful', 'failed' => 'Failed', @@ -87,4 +88,32 @@ $strings = array( 'error_github' => 'Repository name must be in the format "owner/repo"', 'error_bitbucket' => 'Repository name must be in the format "owner/repo"', 'error_path' => 'The path you specified does not exist.', + + // View Project: + 'all_branches' => 'All Branches', + 'builds' => 'Builds', + 'id' => 'ID', + 'project' => 'Project', + 'commit' => 'Commit', + 'branch' => 'Branch', + 'status' => 'Status', + 'prev_link' => '« Prev', + 'next_link' => 'Next »', + 'public_key' => 'Public Key', + 'delete_build' => 'Delete Build', + + 'webhooks' => 'Webhooks', + 'webhooks_help_github' => 'To automatically build this project when new commits are pushed, add the URL below + as a new "Webhook" in the Webhooks + and Services section of your Github repository.', + + 'webhooks_help_gitlab' => 'To automatically build this project when new commits are pushed, add the URL below + as a "WebHook URL" in the Web Hooks section of your Gitlab repository.', + + 'webhooks_help_bitbucket' => 'To automatically build this project when new commits are pushed, add the URL below + as a "POST" service in the + + Services section of your Bitbucket repository.', + + ); \ No newline at end of file diff --git a/PHPCI/Languages/lang.en-us.php b/PHPCI/Languages/lang.en-us.php index e0d5d78f..558588b5 100644 --- a/PHPCI/Languages/lang.en-us.php +++ b/PHPCI/Languages/lang.en-us.php @@ -7,4 +7,6 @@ * @link https://www.phptesting.org/ */ -require_once(dirname(__FILE__) . '/lang.en-gb.php'); \ No newline at end of file +require_once(dirname(__FILE__) . '/lang.en-gb.php'); + +if (!isset($strings)) $strings = array('test' => 'test'); \ No newline at end of file diff --git a/PHPCI/View/BuildsTable.phtml b/PHPCI/View/BuildsTable.phtml index d45a8730..c9d44930 100644 --- a/PHPCI/View/BuildsTable.phtml +++ b/PHPCI/View/BuildsTable.phtml @@ -1,7 +1,8 @@ + - No builds yet. + @@ -13,26 +14,26 @@ switch($build->getStatus()) case 0: $cls = 'active'; $subcls = 'info'; - $status = 'Pending'; + $status = Lang::get('pending'); break; case 1: $cls = 'warning'; $subcls = 'warning'; - $status = 'Running'; + $status = Lang::get('running'); break; case 2: $cls = 'success'; $subcls = 'success'; - $status = 'Success'; + $status = Lang::get('success'); break; case 3: $cls = 'danger'; $subcls = 'danger'; - $status = 'Failed'; + $status = Lang::get('failed'); break; } ?> @@ -57,7 +58,7 @@ switch($build->getStatus()) $build->getCommitterEmail() ); } else { - print 'Manual Build'; + print Lang::get('manual_build'); } ?> @@ -68,13 +69,13 @@ switch($build->getStatus())
- View + User()->getIsAdmin()): ?>
diff --git a/PHPCI/View/Home/index.phtml b/PHPCI/View/Home/index.phtml index cf837b07..11db43cf 100644 --- a/PHPCI/View/Home/index.phtml +++ b/PHPCI/View/Home/index.phtml @@ -21,13 +21,13 @@ switch ($build->getStatus()) { case \PHPCI\Model\Build::STATUS_NEW: $updated = $build->getCreated(); - $label = Lang::get('created'); + $label = Lang::get('pending'); $color = 'blue'; break; case \PHPCI\Model\Build::STATUS_RUNNING: $updated = $build->getStarted(); - $label = Lang::get('started'); + $label = Lang::get('running'); $color = 'yellow'; break; @@ -81,7 +81,7 @@ $build->getCommitterEmail() ); } else { - print 'Manual Build'; + print Lang::get('manual_build'); } ?> - getCommitMessage(); ?> diff --git a/PHPCI/View/Project/view.phtml b/PHPCI/View/Project/view.phtml index 38cfcc4c..9aa68e47 100644 --- a/PHPCI/View/Project/view.phtml +++ b/PHPCI/View/Project/view.phtml @@ -1,3 +1,4 @@ +