diff --git a/PHPCI/Controller/GroupController.php b/PHPCI/Controller/GroupController.php index 898f9e41..cdeb4271 100644 --- a/PHPCI/Controller/GroupController.php +++ b/PHPCI/Controller/GroupController.php @@ -14,6 +14,7 @@ use b8\Form; use b8\Store; use PHPCI\Controller; use PHPCI\Model\ProjectGroup; +use PHPCI\Helper\Lang; /** * Project Controller - Allows users to create, edit and view projects. @@ -90,11 +91,11 @@ class GroupController extends Controller $title = new Form\Element\Text('title'); $title->setContainerClass('form-group'); $title->setClass('form-control'); - $title->setLabel('Group Title'); + $title->setLabel(Lang::get('group_title')); $title->setValue($group->getTitle()); $submit = new Form\Element\Submit(); - $submit->setValue('Save Group'); + $submit->setValue(Lang::get('group_save')); $form->addField($title); $form->addField($submit); diff --git a/PHPCI/Languages/lang.en.php b/PHPCI/Languages/lang.en.php index 63df75d2..7c9d69dd 100644 --- a/PHPCI/Languages/lang.en.php +++ b/PHPCI/Languages/lang.en.php @@ -59,6 +59,7 @@ PHPCI', 'dashboard' => 'Dashboard', 'admin_options' => 'Admin Options', 'add_project' => 'Add Project', + 'project_groups' => 'Project Groups', 'settings' => 'Settings', 'manage_users' => 'Manage Users', 'plugins' => 'Plugins', @@ -153,6 +154,15 @@ PHPCI', Services section of your Bitbucket repository.', + // Project Groups + 'group_projects' => 'Projects', + 'group_edit' => 'Edit', + 'group_delete' => 'Delete', + 'group_add' => 'Add Group', + 'group_add_edit' => 'Add / Edit Group', + 'group_title' => 'Group Title', + 'group_save' => 'Save Group', + // View Build 'errors' => 'Errors', 'information' => 'Information', diff --git a/PHPCI/Languages/lang.ru.php b/PHPCI/Languages/lang.ru.php index 0a7acff2..660809fc 100644 --- a/PHPCI/Languages/lang.ru.php +++ b/PHPCI/Languages/lang.ru.php @@ -57,6 +57,7 @@ PHPCI', 'dashboard' => 'Панель управления', 'admin_options' => 'Меню администратора', 'add_project' => 'Добавить проект', + 'project_groups' => 'Группы проектов', 'settings' => 'Настройки', 'manage_users' => 'Пользователи', 'plugins' => 'Плагины', @@ -147,12 +148,20 @@ PHPCI', 'webhooks_help_bitbucket' => 'Чтобы Автоматически собирать этот проект при публикации новых коммитов, добавьте URL ниже как "POST" сервис в разделе Services вашего Bitbucket репозитория.', + // Project Groups + 'group_projects' => 'Проекты', + 'group_edit' => 'Редактировать', + 'group_delete' => 'Удалить', + 'group_add' => 'Добавить группу', + 'group_add_edit' => 'Добавить / изменить группу', + 'group_title' => 'Название группы', + 'group_save' => 'Сохранить группу', + // View Build 'build_x_not_found' => 'Сборки с ID %d не существует.', 'build_n' => 'Сборка %d', 'rebuild_now' => 'Пересобрать сейчас', - 'committed_by_x' => 'Отправил %s', 'commit_id_x' => 'Коммит: %s', diff --git a/PHPCI/View/Group/edit.phtml b/PHPCI/View/Group/edit.phtml index 1e32165b..c08a36b3 100644 --- a/PHPCI/View/Group/edit.phtml +++ b/PHPCI/View/Group/edit.phtml @@ -1,6 +1,7 @@ +
-

Add / Edit Group

+

diff --git a/PHPCI/View/Group/index.phtml b/PHPCI/View/Group/index.phtml index e07c9af1..73f7b88c 100644 --- a/PHPCI/View/Group/index.phtml +++ b/PHPCI/View/Group/index.phtml @@ -1,20 +1,20 @@ + -
-

Project Groups

+

- + @@ -25,12 +25,12 @@ diff --git a/PHPCI/View/layout.phtml b/PHPCI/View/layout.phtml index 1960aff6..7f6fe56e 100644 --- a/PHPCI/View/layout.phtml +++ b/PHPCI/View/layout.phtml @@ -161,7 +161,7 @@
  • - Project Groups +
  • TitleProjects
    - Edit + - Delete +