diff --git a/locales/LC_MESSAGES/ar-SA.mo b/locales/LC_MESSAGES/ar-SA.mo index 89c988a..a548b17 100644 Binary files a/locales/LC_MESSAGES/ar-SA.mo and b/locales/LC_MESSAGES/ar-SA.mo differ diff --git a/locales/LC_MESSAGES/bg-BG.mo b/locales/LC_MESSAGES/bg-BG.mo index 9e0d61b..7791468 100644 Binary files a/locales/LC_MESSAGES/bg-BG.mo and b/locales/LC_MESSAGES/bg-BG.mo differ diff --git a/locales/LC_MESSAGES/he-IL.mo b/locales/LC_MESSAGES/he-IL.mo index ea9c048..b45bff2 100644 Binary files a/locales/LC_MESSAGES/he-IL.mo and b/locales/LC_MESSAGES/he-IL.mo differ diff --git a/locales/LC_MESSAGES/hi-IN.mo b/locales/LC_MESSAGES/hi-IN.mo index f7894cc..f6c5c43 100644 Binary files a/locales/LC_MESSAGES/hi-IN.mo and b/locales/LC_MESSAGES/hi-IN.mo differ diff --git a/locales/LC_MESSAGES/ja-JP.mo b/locales/LC_MESSAGES/ja-JP.mo index 4b0aa8b..0abe897 100644 Binary files a/locales/LC_MESSAGES/ja-JP.mo and b/locales/LC_MESSAGES/ja-JP.mo differ diff --git a/locales/LC_MESSAGES/ko-KR.mo b/locales/LC_MESSAGES/ko-KR.mo index 0ff76ed..da6d154 100644 Binary files a/locales/LC_MESSAGES/ko-KR.mo and b/locales/LC_MESSAGES/ko-KR.mo differ diff --git a/locales/LC_MESSAGES/pt-PT.mo b/locales/LC_MESSAGES/pt-PT.mo index 8831506..011b087 100644 Binary files a/locales/LC_MESSAGES/pt-PT.mo and b/locales/LC_MESSAGES/pt-PT.mo differ diff --git a/locales/LC_MESSAGES/tr-TR.mo b/locales/LC_MESSAGES/tr-TR.mo index 651859d..74bf3e5 100644 Binary files a/locales/LC_MESSAGES/tr-TR.mo and b/locales/LC_MESSAGES/tr-TR.mo differ diff --git a/locales/LC_MESSAGES/vi-VN.mo b/locales/LC_MESSAGES/vi-VN.mo index d89e0c4..abdf8d3 100644 Binary files a/locales/LC_MESSAGES/vi-VN.mo and b/locales/LC_MESSAGES/vi-VN.mo differ diff --git a/locales/po/ar-SA.po b/locales/po/ar-SA.po index ea34131..034d396 100644 --- a/locales/po/ar-SA.po +++ b/locales/po/ar-SA.po @@ -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 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 ، فستحتاج إلى وضع خاص علامة داخل الملف. سيتم استبدال علامة التنسيق هذه بمحتوى التقرير. توجد هذه الملفات في دليل "التنسيقات"." +msgstr "اختر ملف html المخصص وملف CSS لاستخدامه. يحتوي هذا الملف على كل من html و CSS للتفاف حول تقريرك. إذا كان يحتوي على أكثر من مجرد CSS ، فستحتاج إلى وضع خاص علامة داخل الملف. سيتم استبدال علامة التنسيق هذه بمحتوى التقرير. توجد هذه الملفات في دليل \"التنسيقات\"." #: setup.php msgid "Ping Threshold Notifications" diff --git a/locales/po/bg-BG.po b/locales/po/bg-BG.po index 6e95c11..e48494b 100644 --- a/locales/po/bg-BG.po +++ b/locales/po/bg-BG.po @@ -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 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, трябва да поставите специален вътре във файла. Този етикет за формат ще бъде заменен от съдържанието на отчета. Тези файлове се намират в директорията 'formats'." +msgstr "Изберете потребителската html обвивка и CSS файла, който да използвате. Този файл съдържа както html, така и CSS за пренасяне на отчета. Ако съдържа повече от просто CSS, трябва да поставите специален вътре във файла. Този етикет за формат ще бъде заменен от съдържанието на отчета. Тези файлове се намират в директорията 'formats'." #: setup.php msgid "Ping Threshold Notifications" diff --git a/locales/po/he-IL.po b/locales/po/he-IL.po index d7fe4c6..d272703 100644 --- a/locales/po/he-IL.po +++ b/locales/po/he-IL.po @@ -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 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 פשוט, אתה צריך מקום מיוחד בתוך הקובץ. תג פורמט זה יוחלף בתוכן הדוח. קבצים אלה נמצאים בספריה 'פורמטים'." +msgstr "בחר את עטיפת ה- HTML המותאמת אישית ואת קובץ ה- CSS לשימוש. קובץ זה מכיל הן HTML והן CSS לעטוף את הדוח שלך. אם הוא מכיל יותר מ CSS פשוט, אתה צריך מקום מיוחד בתוך הקובץ. תג פורמט זה יוחלף בתוכן הדוח. קבצים אלה נמצאים בספריה 'פורמטים'." #: setup.php msgid "Ping Threshold Notifications" diff --git a/locales/po/hi-IN.po b/locales/po/hi-IN.po index 066afa1..6037c79 100644 --- a/locales/po/hi-IN.po +++ b/locales/po/hi-IN.po @@ -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 \nLanguage-Team: Hindi \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 \n" +"Language-Team: Hindi \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" @@ -169,7 +181,7 @@ msgstr "कैंसिल करें" #: includes/controller.php msgid "Loading..." -msgstr "लोड हो रहा है..।" +msgstr "लोड हो रहा है..." #: includes/controller.php includes/render.php msgid "Device Detail Panels" @@ -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 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 से अधिक है, तो आपको एक विशेष स्थान रखने की आवश्यकता है फ़ाइल के अंदर टैग। इस प्रारूप टैग को रिपोर्ट सामग्री द्वारा बदल दिया जाएगा। ये फाइलें 'फॉर्मेट' डायरेक्टरी में स्थित हैं।" +msgstr "उपयोग करने के लिए कस्टम HTML आवरण और सीएसएस फ़ाइल चुनें। इस फ़ाइल में HTML और CSS दोनों शामिल हैं जो आपकी रिपोर्ट के आसपास हैं। यदि इसमें बस CSS से अधिक है, तो आपको एक विशेष स्थान रखने की आवश्यकता है फ़ाइल के अंदर टैग। इस प्रारूप टैग को रिपोर्ट सामग्री द्वारा बदल दिया जाएगा। ये फाइलें 'फॉर्मेट' डायरेक्टरी में स्थित हैं।" #: setup.php msgid "Ping Threshold Notifications" @@ -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 <DETAILS>" -msgstr "रीबूट अधिसूचना संदेश में शामिल करने के लिए ईमेल का मुख्य भाग दर्ज करें। वर्तमान में, एकमात्र समर्थित प्रतिस्थापन टैग <DETAILS> है" +msgstr "रीबूट अधिसूचना संदेश में शामिल करने के लिए ईमेल का मुख्य भाग दर्ज करें। वर्तमान में, एकमात्र समर्थित प्रतिस्थापन टैग है <DETAILS>" #: setup.php msgid "

Monitor Reboot Notification

The following Device's were Rebooted. See details below for additional information.


" diff --git a/locales/po/ja-JP.po b/locales/po/ja-JP.po index 339b77f..ed6cd6c 100644 --- a/locales/po/ja-JP.po +++ b/locales/po/ja-JP.po @@ -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 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以上のものを含んでいるなら、特別なものを置く必要がありますファイル内のタグ。このフォーマットタグはレポートの内容に置き換えられます。これらのファイルは 'format'ディレクトリにあります。" +msgstr "使用するカスタムHTMLラッパーとCSSファイルを選択します。このファイルには、レポートをまとめるためのHTMLとCSSの両方が含まれています。それが単なるCSS以上のものを含んでいるなら、特別なものを置く必要がありますファイル内のタグ。このフォーマットタグはレポートの内容に置き換えられます。これらのファイルは 'format'ディレクトリにあります。" #: setup.php msgid "Ping Threshold Notifications" @@ -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 <DETAILS>" -msgstr "再起動通知メッセージに含めるメール本文を入力してください。現在サポートされている置換タグは <DETAILS> のみです。" +msgstr "再起動通知メッセージに含めるメール本文を入力してください。現在サポートされている唯一の置換タグは <DETAILS>" #: setup.php msgid "

Monitor Reboot Notification

The following Device's were Rebooted. See details below for additional information.


" diff --git a/locales/po/ko-KR.po b/locales/po/ko-KR.po index 4382d12..80ac752 100644 --- a/locales/po/ko-KR.po +++ b/locales/po/ko-KR.po @@ -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 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 이상을 포함하고 있다면 특별한 파일 안의 태그. 이 형식 태그는 보고서 내용으로 바뀝니다. 이 파일들은 'formats'디렉토리에 있습니다." +msgstr "사용할 맞춤 HTML 래퍼 및 CSS 파일을 선택하십시오. 이 파일에는 보고서를 둘러 쌀 수있는 HTML과 CSS가 모두 들어 있습니다. 단순한 CSS 이상을 포함하고 있다면 특별한 파일 안의 태그. 이 형식 태그는 보고서 내용으로 바뀝니다. 이 파일들은 'formats'디렉토리에 있습니다." #: setup.php msgid "Ping Threshold Notifications" @@ -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 <DETAILS>" -msgstr "재부팅 알림 메시지에 포함할 이메일 본문을 입력하십시오. 현재 지원되는 대체 태그는 <DETAILS>만 허용됩니다." +msgstr "재부팅 알림 메시지에 포함할 이메일 본문을 입력하십시오. 현재 지원되는 유일한 대체 태그는 <DETAILS>" #: setup.php msgid "

Monitor Reboot Notification

The following Device's were Rebooted. See details below for additional information.


" diff --git a/locales/po/pt-PT.po b/locales/po/pt-PT.po index 3b92232..2681bac 100644 --- a/locales/po/pt-PT.po +++ b/locales/po/pt-PT.po @@ -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 \nLanguage-Team: Portuguese (Portugal) \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 \nLanguage-Team: Portuguese (Portugal) \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" diff --git a/locales/po/tr-TR.po b/locales/po/tr-TR.po index 09126e6..3c3e7d0 100644 --- a/locales/po/tr-TR.po +++ b/locales/po/tr-TR.po @@ -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 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'den daha fazlasını içeriyorsa, özel bir Dosyanın içindeki etiketi kullanın. Bu biçim etiketi rapor içeriği ile değiştirilecektir. Bu dosyalar 'formatları' 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 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" @@ -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 <DETAILS>" -msgstr "Yeniden Başlatma Bildirimi mesajına eklenecek bir e-posta gövdesi girin. Şu anda kabul edilen tek desteklenen değiştirme etiketi <DETAILS> ş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: <DETAILS>" #: setup.php msgid "

Monitor Reboot Notification

The following Device's were Rebooted. See details below for additional information.


" diff --git a/locales/po/vi-VN.po b/locales/po/vi-VN.po index 05938c7..0b2ce9b 100644 --- a/locales/po/vi-VN.po +++ b/locales/po/vi-VN.po @@ -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 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 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'." +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 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" diff --git a/poller_functions.php b/poller_functions.php index 495d39b..58fad6d 100644 --- a/poller_functions.php +++ b/poller_functions.php @@ -496,7 +496,7 @@ function buildPingNotificationIntro(mixed $freq): array { $body = '

' . __(MONITOR_PING_NOTIFICATION_SUBJECT, 'monitor') . '

' . 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 .= '

' . $message . '

' . PHP_EOL; $body_txt .= $message . PHP_EOL; diff --git a/tests/Unit/I18nTextDomainTest.php b/tests/Unit/I18nTextDomainTest.php index f0d61ee..18be8d7 100644 --- a/tests/Unit/I18nTextDomainTest.php +++ b/tests/Unit/I18nTextDomainTest.php @@ -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, ]; diff --git a/tests/Unit/MonitorPingNotificationTest.php b/tests/Unit/MonitorPingNotificationTest.php new file mode 100644 index 0000000..5c0f325 --- /dev/null +++ b/tests/Unit/MonitorPingNotificationTest.php @@ -0,0 +1,34 @@ +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'); +});