Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified locales/LC_MESSAGES/ar-SA.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/bg-BG.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/he-IL.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/hi-IN.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/ja-JP.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/ko-KR.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/pt-PT.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/tr-TR.mo
Binary file not shown.
Binary file modified locales/LC_MESSAGES/vi-VN.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion locales/po/ar-SA.po
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ msgstr "تنسيق ملف للاستخدام"

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "اختر ملف html المخصص وملف CSS لاستخدامه. يحتوي هذا الملف على كل من html و CSS للتفاف حول تقريرك. إذا كان يحتوي على أكثر من مجرد CSS ، فستحتاج إلى وضع خاص <REPORT> علامة داخل الملف. سيتم استبدال علامة التنسيق هذه بمحتوى التقرير. توجد هذه الملفات في دليل &quot;التنسيقات&quot;."
msgstr "اختر ملف html المخصص وملف CSS لاستخدامه. يحتوي هذا الملف على كل من html و CSS للتفاف حول تقريرك. إذا كان يحتوي على أكثر من مجرد CSS ، فستحتاج إلى وضع خاص <REPORT> علامة داخل الملف. سيتم استبدال علامة التنسيق هذه بمحتوى التقرير. توجد هذه الملفات في دليل \"التنسيقات\"."

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down
2 changes: 1 addition & 1 deletion locales/po/bg-BG.po
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ msgstr "Форматирайте файла за използване"

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "Изберете потребителската html обвивка и CSS файла, който да използвате. Този файл съдържа както html, така и CSS за пренасяне на отчета. Ако съдържа повече от просто CSS, трябва да поставите специален <REPORT> вътре във файла. Този етикет за формат ще бъде заменен от съдържанието на отчета. Тези файлове се намират в директорията &#39;formats&#39;."
msgstr "Изберете потребителската html обвивка и CSS файла, който да използвате. Този файл съдържа както html, така и CSS за пренасяне на отчета. Ако съдържа повече от просто CSS, трябва да поставите специален <REPORT> вътре във файла. Този етикет за формат ще бъде заменен от съдържанието на отчета. Тези файлове се намират в директорията 'formats'."

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down
2 changes: 1 addition & 1 deletion locales/po/he-IL.po
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ msgstr "פורמט קובץ לשימוש"

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "בחר את עטיפת ה- HTML המותאמת אישית ואת קובץ ה- CSS לשימוש. קובץ זה מכיל הן HTML והן CSS לעטוף את הדוח שלך. אם הוא מכיל יותר מ CSS פשוט, אתה צריך מקום מיוחד <REPORT> בתוך הקובץ. תג פורמט זה יוחלף בתוכן הדוח. קבצים אלה נמצאים בספריה &#39;פורמטים&#39;."
msgstr "בחר את עטיפת ה- HTML המותאמת אישית ואת קובץ ה- CSS לשימוש. קובץ זה מכיל הן HTML והן CSS לעטוף את הדוח שלך. אם הוא מכיל יותר מ CSS פשוט, אתה צריך מקום מיוחד <REPORT> בתוך הקובץ. תג פורמט זה יוחלף בתוכן הדוח. קבצים אלה נמצאים בספריה 'פורמטים'."

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down
20 changes: 16 additions & 4 deletions locales/po/hi-IN.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
msgid ""
msgstr "Project-Id-Version: \nReport-Msgid-Bugs-To: developers@cacti.net\nPOT-Creation-Date: 2026-10-11 17:03-0400\nPO-Revision-Date: 2026-11-26 03:18+0000\nLast-Translator: Thomas Vincent <balder.infuser.6n@icloud.com>\nLanguage-Team: Hindi <https://translate.cacti.net/projects/cacti/monitor/hi/>\nLanguage: hi-IN\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=n > 1;\nX-Generator: Weblate 5.11.4\n"
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: developers@cacti.net\n"
"POT-Creation-Date: 2026-10-11 17:03-0400\n"
"PO-Revision-Date: 2026-11-26 03:18+0000\n"
"Last-Translator: Thomas Vincent <balder.infuser.6n@icloud.com>\n"
"Language-Team: Hindi <https://translate.cacti.net/projects/cacti/monitor/hi/>\n"
"Language: hi-IN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.11.4\n"

#: includes/controller.php
msgid "New Dashboard"
Expand Down Expand Up @@ -169,7 +181,7 @@ msgstr "कैंसिल करें"

#: includes/controller.php
msgid "Loading..."
msgstr "लोड हो रहा है..।"
msgstr "लोड हो रहा है..."

#: includes/controller.php includes/render.php
msgid "Device Detail Panels"
Expand Down Expand Up @@ -998,7 +1010,7 @@ msgstr "प्रारूप फ़ाइल का उपयोग करन

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "उपयोग करने के लिए कस्टम HTML आवरण और सीएसएस फ़ाइल चुनें। इस फ़ाइल में HTML और CSS दोनों शामिल हैं जो आपकी रिपोर्ट के आसपास हैं। यदि इसमें बस CSS से अधिक है, तो आपको एक विशेष स्थान रखने की आवश्यकता है <REPORT> फ़ाइल के अंदर टैग। इस प्रारूप टैग को रिपोर्ट सामग्री द्वारा बदल दिया जाएगा। ये फाइलें &#39;फॉर्मेट&#39; डायरेक्टरी में स्थित हैं।"
msgstr "उपयोग करने के लिए कस्टम HTML आवरण और सीएसएस फ़ाइल चुनें। इस फ़ाइल में HTML और CSS दोनों शामिल हैं जो आपकी रिपोर्ट के आसपास हैं। यदि इसमें बस CSS से अधिक है, तो आपको एक विशेष स्थान रखने की आवश्यकता है <REPORT> फ़ाइल के अंदर टैग। इस प्रारूप टैग को रिपोर्ट सामग्री द्वारा बदल दिया जाएगा। ये फाइलें 'फॉर्मेट' डायरेक्टरी में स्थित हैं।"

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down Expand Up @@ -1092,7 +1104,7 @@ msgstr "ईमेल बॉडी"

#: setup.php
msgid "Enter an Email body to include in the Reboot Notification message. Currently, the only supported replacement tag accepted is &#060;DETAILS&#062;"
msgstr "रीबूट अधिसूचना संदेश में शामिल करने के लिए ईमेल का मुख्य भाग दर्ज करें। वर्तमान में, एकमात्र समर्थित प्रतिस्थापन टैग &#060;DETAILS&#062; है"
msgstr "रीबूट अधिसूचना संदेश में शामिल करने के लिए ईमेल का मुख्य भाग दर्ज करें। वर्तमान में, एकमात्र समर्थित प्रतिस्थापन टैग है &#060;DETAILS&#062;"

#: setup.php
msgid "<h1>Monitor Reboot Notification</h1><p>The following Device's were Rebooted. See details below for additional information.</p><br><DETAILS>"
Expand Down
4 changes: 2 additions & 2 deletions locales/po/ja-JP.po
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ msgstr "使用するフォーマットファイル"

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "使用するカスタムHTMLラッパーとCSSファイルを選択します。このファイルには、レポートをまとめるためのHTMLとCSSの両方が含まれています。それが単なるCSS以上のものを含んでいるなら、特別なものを置く必要があります<REPORT>ファイル内のタグ。このフォーマットタグはレポートの内容に置き換えられます。これらのファイルは &#39;format&#39;ディレクトリにあります。"
msgstr "使用するカスタムHTMLラッパーとCSSファイルを選択します。このファイルには、レポートをまとめるためのHTMLとCSSの両方が含まれています。それが単なるCSS以上のものを含んでいるなら、特別なものを置く必要があります<REPORT>ファイル内のタグ。このフォーマットタグはレポートの内容に置き換えられます。これらのファイルは 'format'ディレクトリにあります。"

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down Expand Up @@ -1092,7 +1092,7 @@ msgstr "Eメールの本文"

#: setup.php
msgid "Enter an Email body to include in the Reboot Notification message. Currently, the only supported replacement tag accepted is &#060;DETAILS&#062;"
msgstr "再起動通知メッセージに含めるメール本文を入力してください。現在サポートされている置換タグは &#060;DETAILS&#062; のみです。"
msgstr "再起動通知メッセージに含めるメール本文を入力してください。現在サポートされている唯一の置換タグは &#060;DETAILS&#062;"

#: setup.php
msgid "<h1>Monitor Reboot Notification</h1><p>The following Device's were Rebooted. See details below for additional information.</p><br><DETAILS>"
Expand Down
4 changes: 2 additions & 2 deletions locales/po/ko-KR.po
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ msgstr "사용할 서식 파일"

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "사용할 맞춤 HTML 래퍼 및 CSS 파일을 선택하십시오. 이 파일에는 보고서를 둘러 쌀 수있는 HTML과 CSS가 모두 들어 있습니다. 단순한 CSS 이상을 포함하고 있다면 특별한 <REPORT> 파일 안의 태그. 이 형식 태그는 보고서 내용으로 바뀝니다. 이 파일들은 &#39;formats&#39;디렉토리에 있습니다."
msgstr "사용할 맞춤 HTML 래퍼 및 CSS 파일을 선택하십시오. 이 파일에는 보고서를 둘러 쌀 수있는 HTML과 CSS가 모두 들어 있습니다. 단순한 CSS 이상을 포함하고 있다면 특별한 <REPORT> 파일 안의 태그. 이 형식 태그는 보고서 내용으로 바뀝니다. 이 파일들은 'formats'디렉토리에 있습니다."

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down Expand Up @@ -1092,7 +1092,7 @@ msgstr "이메일 본문"

#: setup.php
msgid "Enter an Email body to include in the Reboot Notification message. Currently, the only supported replacement tag accepted is &#060;DETAILS&#062;"
msgstr "재부팅 알림 메시지에 포함할 이메일 본문을 입력하십시오. 현재 지원되는 대체 태그는 &#060;DETAILS&#062;만 허용됩니다."
msgstr "재부팅 알림 메시지에 포함할 이메일 본문을 입력하십시오. 현재 지원되는 유일한 대체 태그는 &#060;DETAILS&#062;"

#: setup.php
msgid "<h1>Monitor Reboot Notification</h1><p>The following Device's were Rebooted. See details below for additional information.</p><br><DETAILS>"
Expand Down
2 changes: 1 addition & 1 deletion locales/po/pt-PT.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
msgid ""
msgstr "Project-Id-Version: \nReport-Msgid-Bugs-To: developers@cacti.net\nPOT-Creation-Date: 2026-10-11 17:03-0400\nPO-Revision-Date: 2026-11-26 03:18+0000\nLast-Translator: Thomas Vincent <balder.infuser.6n@icloud.com>\nLanguage-Team: Portuguese (Portugal) <https://translate.cacti.net/projects/cacti/monitor/pt_PT/>\nLanguage: pt-PT\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=n > 1;\nX-Generator: Weblate 5.11.4\n"
msgstr "Project-Id-Version: \nReport-Msgid-Bugs-To: developers@cacti.net\nPOT-Creation-Date: 2026-10-11 17:03-0400\nPO-Revision-Date: 2026-11-26 03:18+0000\nLast-Translator: Thomas Vincent <balder.infuser.6n@icloud.com>\nLanguage-Team: Portuguese (Portugal) <https://translate.cacti.net/projects/cacti/monitor/pt_PT/>\nLanguage: pt-PT\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=n != 1;\nX-Generator: Weblate 5.11.4\n"

#: includes/controller.php
msgid "New Dashboard"
Expand Down
4 changes: 2 additions & 2 deletions locales/po/tr-TR.po
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ msgstr "Kullanılacak Dosyayı Biçimlendir"

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "Kullanılacak özel html sarıcısını ve CSS dosyasını seçin. Bu dosya, raporunuzu sarmak için hem html hem de CSS içeriyor. CSS&#39;den daha fazlasını içeriyorsa, özel bir <REPORT> Dosyanın içindeki etiketi kullanın. Bu biçim etiketi rapor içeriği ile değiştirilecektir. Bu dosyalar &#39;formatları&#39; dizininde bulunur."
msgstr "Kullanılacak özel html sarıcısını ve CSS dosyasını seçin. Bu dosya, raporunuzu sarmak için hem html hem de CSS içeriyor. CSS'den daha fazlasını içeriyorsa, özel bir <REPORT> Dosyanın içindeki etiketi kullanın. Bu biçim etiketi rapor içeriği ile değiştirilecektir. Bu dosyalar 'formatları' dizininde bulunur."

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down Expand Up @@ -1092,7 +1092,7 @@ msgstr "E-posta Gövdesi"

#: setup.php
msgid "Enter an Email body to include in the Reboot Notification message. Currently, the only supported replacement tag accepted is &#060;DETAILS&#062;"
msgstr "Yeniden Başlatma Bildirimi mesajına eklenecek bir e-posta gövdesi girin. Şu anda kabul edilen tek desteklenen değiştirme etiketi &#060;DETAILS&#062; şeklindedir"
msgstr "Yeniden Başlatma Bildirimi mesajına eklenecek bir e-posta gövdesi girin. Şu anda kabul edilen tek desteklenen değiştirme etiketi: &#060;DETAILS&#062;"

#: setup.php
msgid "<h1>Monitor Reboot Notification</h1><p>The following Device's were Rebooted. See details below for additional information.</p><br><DETAILS>"
Expand Down
2 changes: 1 addition & 1 deletion locales/po/vi-VN.po
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ msgstr "Định dạng tệp để sử dụng"

#: setup.php
msgid "Choose the custom html wrapper and CSS file to use. This file contains both html and CSS to wrap around your report. If it contains more than simply CSS, you need to place a special <REPORT> tag inside of the file. This format tag will be replaced by the report content. These files are located in the 'formats' directory."
msgstr "Chọn trình bao bọc html và tệp CSS tùy chỉnh để sử dụng. Tệp này chứa cả html và CSS để bao quanh báo cáo của bạn. Nếu nó chứa nhiều hơn chỉ đơn giản là CSS, bạn cần đặt một đặc biệt <REPORT> thẻ bên trong của tập tin. Thẻ định dạng này sẽ được thay thế bởi nội dung báo cáo. Các tệp này được đặt trong thư mục &#39;định dạng&#39;."
msgstr "Chọn trình bao bọc html và tệp CSS tùy chỉnh để sử dụng. Tệp này chứa cả html và CSS để bao quanh báo cáo của bạn. Nếu nó chứa nhiều hơn chỉ đơn giản là CSS, bạn cần đặt một đặc biệt <REPORT> thẻ bên trong của tập tin. Thẻ định dạng này sẽ được thay thế bởi nội dung báo cáo. Các tệp này được đặt trong thư mục 'định dạng'."

#: setup.php
msgid "Ping Threshold Notifications"
Expand Down
2 changes: 1 addition & 1 deletion poller_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ function buildPingNotificationIntro(mixed $freq): array {
$body = '<h1>' . __(MONITOR_PING_NOTIFICATION_SUBJECT, 'monitor') . '</h1>' . PHP_EOL;
$body_txt = __(MONITOR_PING_NOTIFICATION_SUBJECT, 'monitor') . PHP_EOL;

$message = __('The following report will identify Devices that have eclipsed their ping latency thresholds. You are receiving this report since you are subscribed to a Device associated with the Cacti system located at the following URL below.');
$message = __('The following report will identify Devices that have eclipsed their ping latency thresholds. You are receiving this report since you are subscribed to a Device associated with the Cacti system located at the following URL below.', 'monitor');

$body .= '<p>' . $message . '</p>' . PHP_EOL;
$body_txt .= $message . PHP_EOL;
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/I18nTextDomainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
$known = [
// nav bar and list labels with no domain (one is the core 'Devices' label)
'includes/render.php' => 2,
// report e-mail paragraph
'poller_functions.php' => 1,
// core role name passed to auth_augment_roles()
'setup.php' => 1,
];
Expand Down
34 changes: 34 additions & 0 deletions tests/Unit/MonitorPingNotificationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
| |
| 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. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDtool-based Graphing Solution |
+-------------------------------------------------------------------------+
*/

beforeAll(function () {
if (!defined('MONITOR_PING_NOTIFICATION_SUBJECT')) {
define('MONITOR_PING_NOTIFICATION_SUBJECT', 'Cacti Monitor Plugin Ping Threshold Notification');
}

require_once __DIR__ . '/../../poller_functions.php';
});

it('builds HTML and plain-text ping threshold notification intros', function () {
[$html, $text] = buildPingNotificationIntro(0);

expect($html)->toContain('ping latency thresholds')
->and($text)->toContain('ping latency thresholds')
->and($html)->toContain('every time the Device is above its threshold');

[$htmlFreq, $textFreq] = buildPingNotificationIntro(15);

expect($htmlFreq)->toContain('every %d minutes')
->and($textFreq)->toContain('every %d minutes');
});