Update added modules message (#7947)
This commit is contained in:
@@ -648,6 +648,33 @@ $text['message-module_stopped']['zh-cn'] = "模块已停止";
|
||||
$text['message-module_stopped']['ja-jp'] = "モジュールが停止しました";
|
||||
$text['message-module_stopped']['ko-kr'] = "중지된 모듈";
|
||||
|
||||
$text['message-added_new_modules']['en-us'] = "Added New Modules";
|
||||
$text['message-added_new_modules']['en-gb'] = "Added New Modules";
|
||||
$text['message-added_new_modules']['ar-eg'] = "تم إضافة وحدات جديدة";
|
||||
$text['message-added_new_modules']['de-at'] = "Neue Module hinzugefügt";
|
||||
$text['message-added_new_modules']['de-ch'] = "Neue Module hinzugefügt";
|
||||
$text['message-added_new_modules']['de-de'] = "Neue Module hinzugefügt";
|
||||
$text['message-added_new_modules']['el-gr'] = "Προστέθηκαν νέα μο듈ά";
|
||||
$text['message-added_new_modules']['es-cl'] = "Se agregaron nuevos módulos";
|
||||
$text['message-added_new_modules']['es-mx'] = "Se agregaron nuevos módulos";
|
||||
$text['message-added_new_modules']['fr-ca'] = "De nouveaux modules ont été ajoutés";
|
||||
$text['message-added_new_modules']['fr-fr'] = "De nouveaux modules ont été ajoutés";
|
||||
$text['message-added_new_modules']['he-il'] = "מודולים חדשים נוספו";
|
||||
$text['message-added_new_modules']['it-it'] = "Sono stati aggiunti nuovi moduli";
|
||||
$text['message-added_new_modules']['ka-ge'] = "ახალი მოდულები დобавленი";
|
||||
$text['message-added_new_modules']['nl-nl'] = "Nieuwe modules toegevoegd";
|
||||
$text['message-added_new_modules']['pl-pl'] = "Dodano nowe moduły";
|
||||
$text['message-added_new_modules']['pt-br'] = "Novos módulos adicionados";
|
||||
$text['message-added_new_modules']['pt-pt'] = "Foram adicionados novos módulos";
|
||||
$text['message-added_new_modules']['ro-ro'] = "S-au adăugat noi module";
|
||||
$text['message-added_new_modules']['ru-ru'] = "Добавлены новые модули";
|
||||
$text['message-added_new_modules']['sv-se'] = "Nya moduler har lagts till";
|
||||
$text['message-added_new_modules']['uk-ua'] = "Додано нові модулі";
|
||||
$text['message-added_new_modules']['tr-tr'] = "Yeni Modüller Eklendi";
|
||||
$text['message-added_new_modules']['zh-cn'] = "添加了新模块";
|
||||
$text['message-added_new_modules']['ja-jp'] = "新しいモジュールが追加されました";
|
||||
$text['message-added_new_modules']['ko-kr'] = "새로운 모듈이 추가되었습니다";
|
||||
|
||||
$text['confirm-start_modules']['en-us'] = "Are you sure you wish to START these modules?";
|
||||
$text['confirm-start_modules']['en-gb'] = "Are you sure you wish to START these modules?";
|
||||
$text['confirm-start_modules']['ar-eg'] = "هل أنت متأكد أنك ترغب في بدء هذه الوحدات؟";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2020
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2026
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -114,7 +114,7 @@
|
||||
|
||||
//show the msg
|
||||
if ($msg) {
|
||||
message::add($msg, 'negative', 5000);
|
||||
message::add($msg, 'positive', 5000);
|
||||
}
|
||||
|
||||
//create token
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2024
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2026
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -847,6 +847,11 @@ class modules {
|
||||
*/
|
||||
public function synch() {
|
||||
if (false !== ($handle = opendir($this->dir ?? ''))) {
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
$modules_new = '';
|
||||
$module_found = false;
|
||||
$x = 0;
|
||||
@@ -896,10 +901,12 @@ class modules {
|
||||
}
|
||||
closedir($handle);
|
||||
if ($module_found) {
|
||||
$msg = "<strong>Added New Modules:</strong><br />\n";
|
||||
$msg .= "<ul>\n";
|
||||
$msg .= $modules_new;
|
||||
$msg .= "</ul>\n";
|
||||
$msg = "<strong>".$text['message-added_new_modules'].":</strong><br />\n";
|
||||
$msg .= "<div style='display: flex; justify-content: center;'>\n";
|
||||
$msg .= " <ul style='text-align: left; margin: 0;'>\n";
|
||||
$msg .= $modules_new;
|
||||
$msg .= " </ul>\n";
|
||||
$msg .= "</div>\n";
|
||||
$this->msg = $msg;
|
||||
}
|
||||
}
|
||||
@@ -1152,7 +1159,7 @@ class modules {
|
||||
$message .= "<br><strong>" . $response['module'] . "</strong>: " . $response['message'];
|
||||
}
|
||||
}
|
||||
message::add($message, 'positive', 7000);
|
||||
message::add($message, 'alert', 7000);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user