forked from mirzaev/pot-php
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 190ef8eabd | |||
| 41fcf9319b |
@@ -2,5 +2,41 @@
|
||||
|
||||
// Exit (success)
|
||||
return [
|
||||
'' => ''
|
||||
]
|
||||
// System
|
||||
'empty' => 'Empty',
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No',
|
||||
|
||||
// Main menu
|
||||
'menu_title' => 'Main menu',
|
||||
|
||||
// Account
|
||||
'account_title' => 'Account',
|
||||
'account_authorized_system' => 'Access to the system',
|
||||
'account_authorized_settings' => 'Access to settings',
|
||||
'account_authorized_system_settings' => 'System access to the system settings',
|
||||
|
||||
// Language setting
|
||||
'settings_select_language_title' => 'Select language',
|
||||
'settings_select_language_description' => 'The selected language will be writed in your account settings',
|
||||
'settings_language_update_success' => 'Language replaced:',
|
||||
'settings_language_update_fail' => 'Failed to replace language',
|
||||
|
||||
// Language selection
|
||||
'select_language_title' => 'Select language',
|
||||
'select_language_description' => 'The selected language will be used in the current process',
|
||||
'select_language_button_add' => 'Add a language',
|
||||
|
||||
// Authorization
|
||||
'not_authorized_system' => 'You do not have access to the system',
|
||||
'not_authorized_settings' => 'You do not have access to the settings',
|
||||
'not_authorized_system_settings' => 'You do not have access to the system settings',
|
||||
|
||||
// Messages
|
||||
'message_initialization_fail' => 'Не удалось инициализировать сообщение Телеграм',
|
||||
'message_text_initialization_fail' => 'Не удалось инициализировать текст сообщения Телеграм',
|
||||
|
||||
// Other
|
||||
'why_so_shroomious' => 'why so shroomious'
|
||||
];
|
||||
|
||||
|
||||
@@ -1,6 +1,41 @@
|
||||
<?php
|
||||
|
||||
// Exit (success)
|
||||
// Выход (успех)
|
||||
return [
|
||||
'' => ''
|
||||
]
|
||||
// Система
|
||||
'empty' => 'Пусто',
|
||||
'yes' => 'Да',
|
||||
'no' => 'Нет',
|
||||
|
||||
// Главное меню
|
||||
'menu_title' => 'Главное меню',
|
||||
|
||||
// Аккаунт
|
||||
'account_title' => 'Аккаунт',
|
||||
'account_authorized_system' => 'Доступ к системе',
|
||||
'account_authorized_settings' => 'Доступ к изменению настроек',
|
||||
'account_authorized_system_settings' => 'Системный доступ к системным настройкам',
|
||||
|
||||
// Настройки языка
|
||||
'settings_select_language_title' => 'Выбери язык',
|
||||
'settings_select_language_description' => 'Выбранный язык будет записан в настройки аккаунта',
|
||||
'settings_language_update_success' => 'Язык заменён:',
|
||||
'settings_language_update_fail' => 'Не удалось заменить язык',
|
||||
|
||||
// Выбор языка
|
||||
'select_language_title' => 'Выбери язык',
|
||||
'select_language_description' => 'Выбранный язык будет использован в текущем процессе',
|
||||
'select_language_button_add' => 'Добавить язык',
|
||||
|
||||
// Авторизация
|
||||
'not_authorized_system' => 'У тебя нет доступа к системе',
|
||||
'not_authorized_settings' => 'У тебя нет доступа к настройкам',
|
||||
'not_authorized_system_settings' => 'У тебя нет доступа к системным настройкам',
|
||||
|
||||
// Сообщения
|
||||
'message_initialization_fail' => 'Не удалось инициализировать сообщение Телеграм',
|
||||
'message_text_initialization_fail' => 'Не удалось инициализировать текст сообщения Телеграм',
|
||||
|
||||
// Прочее
|
||||
'why_so_shroomious' => 'почему такой грибъёзный'
|
||||
];
|
||||
|
||||
16
examples/systemd/telegram.service
Normal file
16
examples/systemd/telegram.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Telegram chat-robot: @robot_bot
|
||||
|
||||
Wants=network.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=sudo -u www-data /usr/bin/php /var/www/${REPO_NAME}/${REPO_OWNER}/${REPO_NAME}/system/public/telegram.php
|
||||
PIDFile=/var/run/php/telegram.pid
|
||||
RemainAfterExit=no
|
||||
RuntimeMaxSec=3600s
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user