Source
$language_error = _('You are not able to choose some of the languages, because locales for them are not installed on the web server.');
<?php
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/**
* @var CView $this
*/
$this->includeJsFile('administration.user.edit.common.js.php');
$this->includeJsFile(($data['action'] === 'user.edit')
? 'administration.user.edit.js.php'
: 'administration.userprofile.edit.js.php'
);
$widget = new CWidget();
if ($data['action'] === 'user.edit') {
$widget_name = _('Users');
$doc_url = CDocHelper::ADMINISTRATION_USER_EDIT;
}
else {
$widget_name = _('User profile').NAME_DELIMITER;
$widget_name .= ($data['name'] !== '' || $data['surname'] !== '')
? $data['name'].' '.$data['surname']
: $data['username'];
$widget->setTitleSubmenu(getUserSettingsSubmenu());
$doc_url = CDocHelper::ADMINISTRATION_USERPROFILE_EDIT;
}
$widget
->setTitle($widget_name)
->setDocUrl(CDocHelper::getUrl($doc_url));
$tabs = new CTabView();
if ($data['form_refresh'] == 0) {
$tabs->setSelected(0);
}
// Create form.
$user_form = (new CForm())
->setId('user-form')
->setName('user_form')
->setAttribute('aria-labeledby', ZBX_STYLE_PAGE_TITLE)
->addVar('action', $data['action'])
->addVar('userid', $data['userid']);