<?php
$lang->mr->devopsEvents = array();

$lang->mr->devopsEvents['storylinked'] = new stdclass();
$lang->mr->devopsEvents['storylinked']->name  = 'Linked to merge request';
$lang->mr->devopsEvents['storylinked']->title = 'Linked to merge request';
$lang->mr->devopsEvents['storylinked']->link  = helper::createLink('mr', 'view', 'mrID=%s');
$lang->mr->devopsEvents['storylinked']->color = 'special';

$lang->mr->devopsEvents['storyunlinked'] = new stdclass();
$lang->mr->devopsEvents['storyunlinked']->name  = 'Unlinked from merge request';
$lang->mr->devopsEvents['storyunlinked']->title = 'Unlinked from merge request';
$lang->mr->devopsEvents['storyunlinked']->link  = helper::createLink('mr', 'view', 'mrID=%s');
$lang->mr->devopsEvents['storyunlinked']->color = 'special';

$lang->mr->devopsEvents['buglinked'] = new stdclass();
$lang->mr->devopsEvents['buglinked']->name  = 'Linked to merge request';
$lang->mr->devopsEvents['buglinked']->title = 'Linked to merge request';
$lang->mr->devopsEvents['buglinked']->link  = helper::createLink('mr', 'view', 'mrID=%s');
$lang->mr->devopsEvents['buglinked']->color = 'special';

$lang->mr->devopsEvents['bugunlinked'] = new stdclass();
$lang->mr->devopsEvents['bugunlinked']->name  = 'Unlinked from merge request';
$lang->mr->devopsEvents['bugunlinked']->title = 'Unlinked from merge request';
$lang->mr->devopsEvents['bugunlinked']->link  = helper::createLink('mr', 'view', 'mrID=%s');
$lang->mr->devopsEvents['bugunlinked']->color = 'special';

$lang->mr->devopsEvents['tasklinked'] = new stdclass();
$lang->mr->devopsEvents['tasklinked']->name  = 'Linked to merge request';
$lang->mr->devopsEvents['tasklinked']->title = 'Linked to merge request';
$lang->mr->devopsEvents['tasklinked']->link  = helper::createLink('mr', 'view', 'mrID=%s');
$lang->mr->devopsEvents['tasklinked']->color = 'special';

$lang->mr->devopsEvents['taskunlinked'] = new stdclass();
$lang->mr->devopsEvents['taskunlinked']->name  = 'Unlinked from merge request';
$lang->mr->devopsEvents['taskunlinked']->title = 'Unlinked from merge request';
$lang->mr->devopsEvents['taskunlinked']->link  = helper::createLink('mr', 'view', 'mrID=%s');
$lang->mr->devopsEvents['taskunlinked']->color = 'special';

$lang->mr->apiErrorMap[] = "Can't submit review to own pull requests.";
$lang->mr->apiErrorMap[] = 'Forbidden';
$lang->mr->apiErrorMap[] = "sudo user '0' is not found";
$lang->mr->apiErrorMap[] = '/sudo user .+ is not found/';

global $app;
if(empty($app->rawModule) || empty($lang->{$app->rawModule}->common)) $app->rawModule = 'mr';
$moduleName = $lang->{$app->rawModule}->common;
$lang->mr->errorLang[] = "Cannot submit review to own {$moduleName}";
$lang->mr->errorLang[] = "Forbidden";
$lang->mr->errorLang[] = "Please bind user first";
$lang->mr->errorLang[] = "Bind user not found";
