Skip to content

Commit

Permalink
Локализация страницы установки движка
Browse files Browse the repository at this point in the history
  • Loading branch information
visavi committed Dec 1, 2019
1 parent ab6b4f4 commit fa3c9a0
Show file tree
Hide file tree
Showing 16 changed files with 182 additions and 111 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DB_COLLATION=utf8mb4_unicode_ci

SITE_ADMIN=admin
SITE_EMAIL=admin@visavi.net
SITE_URL=http://visavi.net
SITE_URL=https://visavi.net

MAIL_DRIVER=sendmail
MAIL_HOST=smtp.mailtrap.io
Expand Down
2 changes: 1 addition & 1 deletion app/Classes/BBCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Класс обработки BB-кодов
*
* @license Code and contributions have MIT License
* @link http://visavi.net
* @link https://visavi.net
* @author Alexander Grigorev <admin@visavi.net>
*/
class BBCode
Expand Down
2 changes: 1 addition & 1 deletion app/Classes/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Class Validation data
*
* @license Code and contributions have MIT License
* @link http://visavi.net
* @link https://visavi.net
* @author Alexander Grigorev <admin@visavi.net>
*/
class Validator
Expand Down
2 changes: 1 addition & 1 deletion app/Controllers/Admin/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function upgrade(PhinxApplication $app): string
{
$wrap = new TextWrapper($app);

$app->setName('Rotor by Vantuz - http://visavi.net');
$app->setName('Rotor by Vantuz - https://visavi.net');
$app->setVersion(VERSION);

$wrap->setOption('configuration', BASEDIR.'/app/migration.php');
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "visavi/rotor",
"description": "Rotor",
"keywords": ["cms", "wap", "rotor"],
"homepage": "http://visavi.net",
"homepage": "https://visavi.net",
"license": "GPL-3.0-only",
"authors": [
{
"name": "Alexander Grigorev",
"email": "admin@visavi.net",
"homepage": "http://visavi.net"
"homepage": "https://visavi.net"
}
],
"require": {
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Rotor
* @author Vantuz <admin@visavi.net>
* @link http://visavi.net
* @link https://visavi.net
* @copyright 2005-2019
*/

Expand Down
167 changes: 77 additions & 90 deletions public/install/index.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/themes/motor/theme.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta name="generator" content="Rotor {{ VERSION }}">
</head>
<body>
<!--Design by Vantuz (http://visavi.net)-->
<!--Design by Vantuz (https://visavi.net)-->

<div id="wrapper">
<div class="main" id="up">
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ npm run prod
### Author
Author: Vantuz
Email: admin@visavi.net
Site: http://visavi.net
Site: https://visavi.net
Skype: vantuzilla
Phone: +79167407574

Expand Down
2 changes: 1 addition & 1 deletion readme_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ npm run prod
### Author
Author: Vantuz
Email: admin@visavi.net
Site: http://visavi.net
Site: https://visavi.net
Skype: vantuzilla
Phone: +79167407574

Expand Down
48 changes: 45 additions & 3 deletions resources/lang/en/install.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,49 @@
<?php

return [
'install' => 'Install',
'upgrade' => 'Upgrade',

'install' => 'Install',
'update' => 'Update',
'step1' => 'Step 1 - verification of requirements',
'step2_install' => 'Step 2 - status check (installation)',
'step3_install' => 'Step 3 - performing migrations (installation)',
'step4_install' => 'Step 4 - filling in the database (installation)',
'step5_install' => 'Step 5 - creating an administrator (installation)',
'step2_update' => 'Step 2 - status check (update)',
'install_completed' => 'Installation completed',
'update_completed' => 'Update completed',
'debug' => 'If during the installation of the engine any error occurs, to find out the cause of the error, enable error output, change the value of APP_DEBUG to true',
'app_new' => 'If you are upgrading from a previous version of Rotor, you need to update the database, for this the value of APP_NEW should be false, then refresh the current page',
'env' => 'To install the engine, you need to register data from the database into the .env file',
'app_key' => 'Do not forget to change the value of APP_KEY, this data is necessary to encrypt cookies and passwords in sessions',
'requirements' => 'The minimum version of PHP necessary for the PHP: php and MySQL: mysql engine to work',
'check_requirements' => 'Verification of requirements',
'ffmpeg' => 'For processing video, it is advisable to install the FFmpeg library',
'chmod_views' => 'Additionally, you can set permissions on directories and files with templates inside resources / views - this is necessary for editing website templates',
'chmod' => 'If any item is highlighted in red, you need to go over FTP and set the CHMOD permission record',
'errors' => 'Some settings are recommended for full compatibility, but the script is able to work even if the recommended settings do not match the current ones.',
'continue' => 'You can continue to install the engine!',
'requirements_pass' => 'All modules and libraries are present, the settings are correct, the necessary files and folders are writable',
'requirements_not_pass' => 'These warnings are not critical, but nevertheless, for the full, stable and safe operation of the engine, it is desirable to eliminate them',
'continue_restrict' => 'You can continue to install the script, but there is no guarantee that the engine will work stably',
'check_status' => 'Check database status',
'performed' => 'Performed',
'requirements_warning' => 'You have warnings!',
'requirements_failed' => 'There are critical errors!',
'resolve_errors' => 'You won’t be able to proceed with the installation until you resolve the critical errors',
'migrations' => 'Perform migrations',
'seeds' => 'Fill in the database',
'create_admin' => 'Create Admin',
'create_admin_info' => 'Before you go to administer your site, you must create an administrator account.',
'create_admin_errors' => 'Before clicking the Create button, make sure that there are no error notifications on the previous page, otherwise the process cannot be completed successfully',
'delete_install' => 'After the installation is complete, you must delete the install directory with all the contents, you can change the password and other data in your profile',
'welcome' => 'Welcome!',
'text_message' => 'Hello :login! Congratulations on the successful installation of our Rotor engine.
New versions, upgrades, as well as many other add-ons can be found on our website. [url=https://visavi.net]visavi.net[/url]',
'text_news' => 'Welcome to the Rotor engine demo page
Rotor is a functionally complete open source content management system written in PHP. It uses a MySQL database to store the contents of your site. Rotor is a flexible, powerful and intuitive system with minimal hosting requirements, a high level of protection and is an excellent choice for building a site of any complexity
    The main feature of Rotor is the low load on system resources, even with a very large audience of the site, the server load will not be minimal, and you will not experience any problems with the display of information.
    You can download the Rotor engine on the official website [url=https://visavi.net]visavi.net[/url]',
'success_install' => 'Congratulations, Rotor has been successfully installed!',
'success_update' => 'Congratulations, Rotor has been successfully updated!',
'main_page' => 'Go to the main page of the site',
];
48 changes: 45 additions & 3 deletions resources/lang/ru/install.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,49 @@
<?php

return [
'install' => 'Установка',
'upgrade' => 'Обновление',

'install' => 'Установка',
'update' => 'Обновление',
'step1' => 'Шаг 1 - проверка требований',
'step2_install' => 'Шаг 2 - проверка статуса (установка)',
'step3_install' => 'Шаг 3 - выполнение миграций (установка)',
'step4_install' => 'Шаг 4 - заполнение БД (установка)',
'step5_install' => 'Шаг 5 - создание администратора (установка)',
'step2_update' => 'Шаг 2 - проверка статуса (обновление)',
'install_completed' => 'Установка завершена',
'update_completed' => 'Обновление завершено',
'debug' => 'Если в процессе установки движка произойдет какая-либо ошибка, чтобы узнать причину ошибки включите вывод ошибок, измените значение APP_DEBUG на true',
'app_new' => 'Если вы обновляетесь с предыдущей версии Rotor, вам необходимо провести обновление базы данных, для этого значение APP_NEW должно быть false, после этого обновите текущую страницу',
'env' => 'Для установки движка, вам необходимо прописать данные от БД в файл .env',
'app_key' => 'Не забудьте изменить значение APP_KEY, эти данные необходимы для шифрования cookies и паролей в сессиях',
'requirements' => 'Минимальная версия PHP необходимая для работы движка PHP :php и MySQL :mysql',
'check_requirements' => 'Проверка требований',
'ffmpeg' => 'Для обработки видео желательно установить библиотеку FFmpeg',
'chmod_views' => 'Дополнительно можете выставить права на директории и файлы с шаблонами внутри resources/views - это необходимо для редактирования шаблонов сайта',
'chmod' => 'Если какой-то пункт выделен красным, необходимо зайти по FTP и выставить CHMOD разрешающую запись',
'errors' => 'Некоторые настройки являются рекомендуемыми для полной совместимости, однако скрипт способен работать даже если рекомендуемые настройки не совпадают с текущими.',
'continue' => 'Вы можете продолжить установку движка!',
'requirements_pass' => 'Все модули и библиотеки присутствуют, настройки корректны, необходимые файлы и папки доступны для записи',
'requirements_not_pass' => 'Данные предупреждения не являются критическими, но тем не менее для полноценной, стабильной и безопасной работы движка желательно их устранить',
'continue_restrict' => 'Вы можете продолжить установку скрипта, но нет никаких гарантий, что движок будет работать стабильно',
'check_status' => 'Проверить статус БД',
'performed' => 'Выполняется',
'requirements_warning' => 'У вас имеются предупреждения!',
'requirements_failed' => 'Имеются критические ошибки!',
'resolve_errors' => 'Вы не сможете приступить к установке, пока не устраните критические ошибки',
'migrations' => 'Выполнить миграции',
'seeds' => 'Заполнить БД',
'create_admin' => 'Создать администратора',
'create_admin_info' => 'Прежде чем перейти к администрированию вашего сайта, необходимо создать аккаунт администратора.',
'create_admin_errors' => 'Перед тем как нажимать кнопку Создать, убедитесь, что на предыдущей странице нет уведомлений об ошибках, иначе процесс не сможет быть завершен удачно',
'delete_install' => 'После окончания инсталляции необходимо удалить директорию install со всем содержимым, пароль и остальные данные вы сможете поменять в своем профиле',
'welcome' => 'Добро пожаловать!',
'text_message' => 'Привет, :login! Поздравляем с успешной установкой нашего движка Rotor.
Новые версии, апгрейды, а также множество других дополнений вы найдете на нашем сайте [url=https://visavi.net]visavi.net[/url]',
'text_news' => 'Добро пожаловать на демонстрационную страницу движка Rotor
Rotor - функционально законченная система управления контентом с открытым кодом написанная на PHP. Она использует базу данных MySQL для хранения содержимого вашего сайта. Rotor является гибкой, мощной и интуитивно понятной системой с минимальными требованиями к хостингу, высоким уровнем защиты и является превосходным выбором для построения сайта любой степени сложности
Главной особенностью Rotor является низкая нагрузка на системные ресурсы, даже при очень большой аудитории сайта нагрузка не сервер будет минимальной, и вы не будете испытывать каких-либо проблем с отображением информации.
Движок Rotor вы можете скачать на официальном сайте [url=https://visavi.net]visavi.net[/url]',
'success_install' => 'Поздравляем, Rotor был успешно установлен!',
'success_update' => 'Поздравляем, Rotor был успешно обновлен!',
'main_page' => 'Перейти на главную страницу сайта',
];
4 changes: 2 additions & 2 deletions resources/views/files/docs/bb_code.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

<?php
echo bbCode(check('[code]<?php
echo bbCode(\'Текст сообщения [url=http://visavi.net]Visavi[/url]\');
echo bbCode(\'Текст сообщения [url=https://visavi.net]Visavi[/url]\');
/* Результат выполнения функции представлен ниже */
?>[/code]'));
echo bbCode('Текст сообщения [url=http://visavi.net]Visavi[/url]').'<br>';
echo bbCode('Текст сообщения [url=https://visavi.net]Visavi[/url]').'<br>';
?>
2 changes: 1 addition & 1 deletion resources/views/files/docs/class_validation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

<h3 id="validateUrl">validateUrl</h3>
<pre class="prettyprint linenums">
addRule('url', 'http://visavi.net', 'Неверный формат адреса сайта!', true)
addRule('url', 'https://visavi.net', 'Неверный формат адреса сайта!', true)
</pre>
Если передан required = false, то валидация сработает при пустой строке

Expand Down
2 changes: 1 addition & 1 deletion rotor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use Symfony\Component\EventDispatcher\EventDispatcher;
require __DIR__ . '/app/bootstrap.php';

$app = new Application();
$app->setName('Rotor by Vantuz - http://visavi.net');
$app->setName('Rotor by Vantuz - https://visavi.net');
$app->setVersion(VERSION);

$app->addCommands([
Expand Down

0 comments on commit fa3c9a0

Please sign in to comment.