mirror of
				https://github.com/Mibew/design.git
				synced 2025-10-31 18:41:05 +03:00 
			
		
		
		
	Added some strings at pages operator.php and operators.php to localization
This commit is contained in:
		
							parent
							
								
									6b18c2868a
								
							
						
					
					
						commit
						e17909854c
					
				| @ -321,6 +321,7 @@ page_agent.cannot_modify=You are not allowed to change this person's profile. | ||||
| page_agent.clear_avatar=Remove avatar | ||||
| page_agent.create_new=You can create a new operator here. | ||||
| page_agent.error.duplicate_login=Please choose another login because an operator with that login is already registered in the system. | ||||
| page_agent.error.forbidden_create=You are not allowed to create operators. | ||||
| page_agent.error.wrong_login=Login should contain only latin characters, numbers and underscore symbol. | ||||
| page_agent.intro=Edit general operator settings. | ||||
| page_agent.tab.avatar=Photo | ||||
| @ -337,6 +338,9 @@ page_agents.disable.agent=disable | ||||
| page_agents.disable.not.allowed=You are not allowed to disable operators. | ||||
| page_agents.enable.agent=enable | ||||
| page_agents.enable.not.allowed=You are not allowed to enable operators. | ||||
| page_agents.error.cannot_remove_admin=Cannot remove operator "admin". | ||||
| page_agents.error.cannot_remove_self=Cannot remove self. | ||||
| page_agents.error.forbidden_remove=You are not allowed to remove operators. | ||||
| page_agents.intro=This page displays a list of company operators. | ||||
| page_agents.isaway=Away | ||||
| page_agents.isonline=Online | ||||
| @ -407,6 +411,7 @@ presurvey.name=Name: | ||||
| presurvey.question=Initial Question: | ||||
| presurvey.submit=Start Chat | ||||
| presurvey.title=Live support | ||||
| remove.item=remove | ||||
| report.bydate.1=Date | ||||
| report.bydate.2=Chat threads | ||||
| report.bydate.3=Messages from operators | ||||
|  | ||||
| @ -319,6 +319,7 @@ page_agent.cannot_modify= | ||||
| page_agent.clear_avatar=Удалить аватарку | ||||
| page_agent.create_new=Создание нового оператора. | ||||
| page_agent.error.duplicate_login=Выберите другой логин, т.к. оператор с введенным логином уже зарегистрирован в системе. | ||||
| page_agent.error.forbidden_create=Âû íå ìîæåòå ñîçäàâàòü îïåðàòîðîâ. | ||||
| page_agent.error.wrong_login=Логин должен состоять из латинских символов, цифр и знака подчеркивания. | ||||
| page_agent.intro=На этой странице вы можете просмотреть детали оператора и отредактировать их. | ||||
| page_agent.tab.avatar=Фотография | ||||
| @ -335,6 +336,9 @@ page_agents.disable.agent= | ||||
| page_agents.disable.not.allowed=Вы не можете блокировать операторов. | ||||
| page_agents.enable.agent=разблокировать | ||||
| page_agents.enable.not.allowed=Вы не можете разблокировать операторов. | ||||
| page_agents.error.cannot_remove_admin=Íåëüçÿ óäàëèòü îïåðàòîðà "admin". | ||||
| page_agents.error.cannot_remove_self=Íåëüçÿ óäàëèòü ñåáÿ. | ||||
| page_agents.error.forbidden_remove=Âû íå ìîæåòå óäàëÿòü îïåðàòîðîâ. | ||||
| page_agents.intro=На этой странице можно просмотреть список операторов компании и добавить нового при наличии соответствующих прав доступа. | ||||
| page_agents.isaway=Отошел | ||||
| page_agents.isonline=Доступен | ||||
| @ -405,6 +409,7 @@ presurvey.name= | ||||
| presurvey.question=Ваш вопрос: | ||||
| presurvey.submit=Начать диалог | ||||
| presurvey.title=Веб Мессенджер | ||||
| remove.item=óäàëèòü | ||||
| report.bydate.1=Дата | ||||
| report.bydate.2=Диалогов | ||||
| report.bydate.3=Сообщений операторов | ||||
|  | ||||
| @ -124,7 +124,7 @@ if ((isset($_POST['login']) || !is_capable($can_administrate, $operator)) && iss | ||||
| } | ||||
| 
 | ||||
| if (!$opId && !is_capable($can_administrate, $operator)) { | ||||
| 	$errors[] = "You are not allowed to create operators"; | ||||
| 	$errors[] = getlocal("page_agent.error.forbidden_create"); | ||||
| } | ||||
| 
 | ||||
| $canmodify = ($opId == $operator['operatorid'] && is_capable($can_modifyprofile, $operator)) | ||||
|  | ||||
| @ -35,11 +35,11 @@ if (isset($_GET['act'])) { | ||||
| 
 | ||||
| 	if ($_GET['act'] == 'del') { | ||||
| 		if (!is_capable($can_administrate, $operator)) { | ||||
| 			$errors[] = "You are not allowed to remove operators"; | ||||
| 			$errors[] = getlocal("page_agents.error.forbidden_remove"); | ||||
| 		} | ||||
| 
 | ||||
| 		if ($operatorid == $operator['operatorid']) { | ||||
| 			$errors[] = "Cannot remove self"; | ||||
| 			$errors[] = getlocal("page_agents.error.cannot_remove_self"); | ||||
| 		} | ||||
| 
 | ||||
| 		if (count($errors) == 0) { | ||||
| @ -47,7 +47,7 @@ if (isset($_GET['act'])) { | ||||
| 			if (!$op) { | ||||
| 				$errors[] = getlocal("no_such_operator"); | ||||
| 			} else if ($op['vclogin'] == 'admin') { | ||||
| 				$errors[] = 'Cannot remove operator "admin"'; | ||||
| 				$errors[] = getlocal("page_agents.error.cannot_remove_admin"); | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
|  | ||||
| @ -95,7 +95,7 @@ require_once('inc_errors.php'); | ||||
| 	</td> | ||||
| 	<td> | ||||
| 		<a class="removelink" id="i<?php echo $a['operatorid'] ?>" href="<?php echo $webimroot ?>/operator/operators.php?act=del&id=<?php echo $a['operatorid'] ?>"> | ||||
| 			remove | ||||
| 			<?php echo getlocal("remove.item") ?>
 | ||||
| 		</a> | ||||
| 	</td> | ||||
| <?php } ?>	
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user