diff --git a/src/ext/notifications/extension.json b/src/ext/notifications/extension.json index 7101edb..483f066 100644 --- a/src/ext/notifications/extension.json +++ b/src/ext/notifications/extension.json @@ -1,6 +1,6 @@ { "bundleId": "notifications", "name": "Notifications", - "version": "1.2", + "version": "1.2.1", "description": "Notify about new tasks and lists on e-mail or telegram" } diff --git a/src/ext/notifications/lang/en.json b/src/ext/notifications/lang/en.json index aed93b0..97c303d 100644 --- a/src/ext/notifications/lang/en.json +++ b/src/ext/notifications/lang/en.json @@ -3,11 +3,12 @@ "notifications.urlconfigwarning": "Enable PHP 'allow_url_fopen' directive to use Telegram notifications.", "notifications.check": "Check", "notifications.bot_not_configured": "Bot is not configured", - "notifications.h_email": "E-Mail:", + "notifications.g_email": "E-Mail", + "notifications.h_email": "E-mail:", "notifications.d_email": "Separate multiple addresses with comma.", "notifications.h_mailfrom": "Mail from:", "notifications.d_mailfrom": "Use this e-mail as sender's address.", - "notifications.h_telegram": "Telegram", + "notifications.g_telegram": "Telegram", "notifications.h_token": "Bot token:", "notifications.d_token": "Telegram Bot API token from @BotFather.", "notifications.h_active_chats": "Active chats:", diff --git a/src/ext/notifications/lang/ru.json b/src/ext/notifications/lang/ru.json index 5944e2c..e8e5dcf 100644 --- a/src/ext/notifications/lang/ru.json +++ b/src/ext/notifications/lang/ru.json @@ -3,11 +3,12 @@ "notifications.urlconfigwarning": "Для использования Telegram требуется включить директиву 'allow_url_fopen' в настройках PHP .", "notifications.check": "Проверить", "notifications.bot_not_configured": "Бот не настроен", - "notifications.h_email": "E-Mail:", + "notifications.g_email": "E-Mail", + "notifications.h_email": "E-mail:", "notifications.d_email": "Разделите несколько адресов c помощью запятой.", "notifications.h_mailfrom": "Адрес отправителя:", "notifications.d_mailfrom": "Этот адрес будет указан как адрес отправителя в письмах с уведомлениями.", - "notifications.h_telegram": "Telegram", + "notifications.g_telegram": "Telegram", "notifications.h_token": "Токен для бота:", "notifications.d_token": "Токен для телеграм-бота, полученный от @BotFather.", "notifications.h_active_chats": "Активные чаты:", diff --git a/src/ext/notifications/loader.php b/src/ext/notifications/loader.php index 68f01c5..0ebc804 100644 --- a/src/ext/notifications/loader.php +++ b/src/ext/notifications/loader.php @@ -113,6 +113,11 @@ function settingsPage(): string return << +
{$e('notifications.g_email')}
+ +
{$e('notifications.h_email')}
{$e('notifications.d_email')}
@@ -125,9 +130,12 @@ function settingsPage(): string
-
-
{$e('notifications.h_telegram')}
+
+ +
+
{$e('notifications.g_telegram')}
+
{$e('notifications.h_token')}
{$e('notifications.d_token')}
@@ -146,6 +154,7 @@ function settingsPage(): string
$newChat
+
EOD; }