From afc0a0205865c4b2cf139e7fff731f086027feca Mon Sep 17 00:00:00 2001
From: Molkobain
-Akce definují činnosti, které mají být provedeny, když se triggery spustí. V současné verzi iTop je definována jedna akce spočívající v zaslání emailové zprávy. Tato akce také definuje šablonu, která se použije pro zasílání emailových zpráv a také pro definici dalších parametrů (příjemci, důležitost apod.). +Akce define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Speciální stránka email.test.php je dostupná pro testování a řešení problémů s configurací PHP mailu.
Aby mohly být akce spuštěny, musí být přiřazeny ke triggerům. Každá akce pak dostane své "pořadové" číslo, které určí v jakém pořadí se akce spustí.
~~', 'UI:NotificationsMenu:Triggers' => 'Triggery', 'UI:NotificationsMenu:AvailableTriggers' => 'Dostupné triggery', @@ -988,6 +991,9 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', array( 'UI:NotificationsMenu:OnStateEnter' => 'Při změně stavu na', 'UI:NotificationsMenu:OnStateLeave' => 'Při změně stavu z', 'UI:NotificationsMenu:Actions' => 'Akce', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Dostupné akce', 'Menu:TagAdminMenu' => 'Tags configuration~~', diff --git a/dictionaries/da.dictionary.itop.ui.php b/dictionaries/da.dictionary.itop.ui.php index 7a2d07f98..39d826703 100644 --- a/dictionaries/da.dictionary.itop.ui.php +++ b/dictionaries/da.dictionary.itop.ui.php @@ -967,10 +967,13 @@ Dict::Add('DA DA', 'Danish', 'Dansk', array(-Handlinger definer de handlinger som udføres når triggeren udløses. For nuværende er der kun en handling, som består af at sende en email besked. -Sådanne handlinger definerer den skabelon som bruges til afsendelse af email såvel som andre parametre indhold i beskeden, modtger, vigtighed, etc. +Handlinger define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
En speciel side: email.test.php er til rådighed for test og problemløsning af PHP mail konfigurationen.
For udførelse, handlinger skal være knyttet til triggers. Ved tilknytningen til en trigger, bliver hver handling tildelt et "rækkefølge" nummer, der specificerer i hvilken rækkefølge handlingerne udføres.
~~', 'UI:NotificationsMenu:Triggers' => 'Triggers', @@ -979,6 +982,9 @@ Ved tilknytningen til en trigger, bliver hver handling tildelt et "rækkefølge" 'UI:NotificationsMenu:OnStateEnter' => 'Når et objekt indtræder i en give tilstand', 'UI:NotificationsMenu:OnStateLeave' => 'Når et objekt forlader en give tilstand', 'UI:NotificationsMenu:Actions' => 'Handlinger', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Tilgængelige handlinger', 'Menu:TagAdminMenu' => 'Tags configuration~~', diff --git a/dictionaries/de.dictionary.itop.ui.php b/dictionaries/de.dictionary.itop.ui.php index b1866d4ca..fb7cd64ec 100644 --- a/dictionaries/de.dictionary.itop.ui.php +++ b/dictionaries/de.dictionary.itop.ui.php @@ -965,19 +965,25 @@ Dict::Add('DE DE', 'German', 'Deutsch', array(+Aktionen define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
-Aktionen definieren Aktionen, die ausgeführt werden sollen, wenn ein Trigger ausgeführt wird. Derzeit steht nur eine Art an Aktion zur Verfügung: Das Senden einer Email-Nachricht. -Derartige Aktionen definieren auch das Template, welches für das Versenden der Email, aber auch für anderen Parameter der Nachricht wie Empfänger, Priorität usw. zuständig ist.
-Eine spezielle Seite: email.test.php steht zum Testen und zur Fehlerbehebung Ihrer PHP-Mailkonfiguration bereit.
Um Aktionen auszuführen, müssen diese mit Trigger verknüpft sein. -Wenn Aktionen mit Trigger verknüpft sind, bekommt jede Aktion eine Auftragsnummer, die die Reihenfolge der auszuführenden Aktionen festlegt.
', +Wenn Aktionen mit Trigger verknüpft sind, bekommt jede Aktion eine Auftragsnummer, die die Reihenfolge der auszuführenden Aktionen festlegt.~~', 'UI:NotificationsMenu:Triggers' => 'Trigger', 'UI:NotificationsMenu:AvailableTriggers' => 'Verfügbare Trigger', 'UI:NotificationsMenu:OnCreate' => 'Wenn ein Objekt erstellt wird', 'UI:NotificationsMenu:OnStateEnter' => 'Wenn ein Objekt einen gegebenen Status erlangt', 'UI:NotificationsMenu:OnStateLeave' => 'Wenn ein Objekt einen gegebenen Status verlässt', 'UI:NotificationsMenu:Actions' => 'Aktionen', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Verfügbare Aktionen', 'Menu:TagAdminMenu' => 'Tag-Konfiguration', diff --git a/dictionaries/en.dictionary.itop.ui.php b/dictionaries/en.dictionary.itop.ui.php index 9b639689f..4ea36a895 100644 --- a/dictionaries/en.dictionary.itop.ui.php +++ b/dictionaries/en.dictionary.itop.ui.php @@ -995,10 +995,13 @@ We hope you’ll enjoy this version as much as we enjoyed imagining and creating-Actions define the actions to be performed when the triggers execute. For now there is only one kind of action consisting in sending an email message. -Such actions also define the template to be used for sending the email as well as the other parameters of the message like the recipients, importance, etc. +Actions define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
A special page: email.test.php is available for testing and troubleshooting your PHP mail configuration.
To be executed, actions must be associated to triggers. When associated with a trigger, each action is given an "order" number, specifying in which order the actions are to be executed.
', 'UI:NotificationsMenu:Triggers' => 'Triggers', @@ -1007,6 +1010,9 @@ When associated with a trigger, each action is given an "order" number, specifyi 'UI:NotificationsMenu:OnStateEnter' => 'When an object enters a given state', 'UI:NotificationsMenu:OnStateLeave' => 'When an object leaves a given state', 'UI:NotificationsMenu:Actions' => 'Actions', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions', 'UI:NotificationsMenu:AvailableActions' => 'Available actions', 'Menu:TagAdminMenu' => 'Tags configuration', diff --git a/dictionaries/es_cr.dictionary.itop.ui.php b/dictionaries/es_cr.dictionary.itop.ui.php index 240224344..a8e98a969 100644 --- a/dictionaries/es_cr.dictionary.itop.ui.php +++ b/dictionaries/es_cr.dictionary.itop.ui.php @@ -990,18 +990,24 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellano', array(-Las Acciones definen las acciones a ser ejecutadas cuando los disparadores se disparan, por ahora el único tipo de acción consiste en enviar un mensaje de correo. -Tales acciones tambien definen la plantilla a ser usada para enviar el correo asi como otros parametros del mensaje como receptor, importancia, etc. +Las Acciones define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Una página especial: email.test.php está disponible para probar y diagnosticar su configuración de correo de PHP.
Para ser ejecutadas, las acciones deben estar asociadas con los disparadores. -Cuando se asocien con un disparador, cada acción recibe un número de "orden", esto especifica en que orden se ejecutaran las acciones.
', +Cuando se asocien con un disparador, cada acción recibe un número de "orden", esto especifica en que orden se ejecutaran las acciones.~~', 'UI:NotificationsMenu:Triggers' => 'Disparadores', 'UI:NotificationsMenu:AvailableTriggers' => 'Disparadores disponibles', 'UI:NotificationsMenu:OnCreate' => 'Cuando un objeto es creado', 'UI:NotificationsMenu:OnStateEnter' => 'Cuando un objeto entra a un estado específico', 'UI:NotificationsMenu:OnStateLeave' => 'Cuando un objeto sale de un estado específico', 'UI:NotificationsMenu:Actions' => 'Acciones', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Acciones Disponibles', 'Menu:TagAdminMenu' => 'Configuración de Etiquetas', diff --git a/dictionaries/fr.dictionary.itop.ui.php b/dictionaries/fr.dictionary.itop.ui.php index ad3c73104..243663c32 100644 --- a/dictionaries/fr.dictionary.itop.ui.php +++ b/dictionaries/fr.dictionary.itop.ui.php @@ -969,7 +969,7 @@ Nous espérons que vous aimerez cette version autant que nous avons eu du plaisi 'Menu:NotificationsMenu+' => 'Configuration des Notifications',// Duplicated into itop-welcome-itil (will be removed from here...) 'UI:NotificationsMenu:Title' => 'Configuration des Notifications', 'UI:NotificationsMenu:Help' => 'Aide', - 'UI:NotificationsMenu:HelpContent' => 'Dans iTop les notifications sont totalement configurables. Elles sont basées sur deux types d\'objets: déclencheurs et actions.
+ 'UI:NotificationsMenu:HelpContent' => 'Dans '.ITOP_APPLICATION_SHORT.' les notifications sont totalement configurables. Elles sont basées sur deux types d\'objets: déclencheurs et actions.
Les déclencheurs définissent quand une notification sera exécutée. Il y a différents déclencheurs qui font partie du noyau d\'iTop, mais d\'autres peuvent être apportés par des extensions :
-Les actions définissent ce qui doit être exécuté. Pour le moment il existe un seul type d\'action: l\'envoi de mail. -Les actions de type mail définissent le modèle du message ainsi que les autres paramètres (destinataires, importance, etc.)
-Une page spéciale: email.test.php permet de tester votre configuration mail PHP.
+Les actions définissent ce qui doit être exécuté. Pour le moment il existe deux types d\'actions : +Les actions doivent être associées à des déclencheurs pour pouvoir être exécutées. Lors de l\'association à un déclencheur, on attribue à chaque action un numéro d\'ordre, qui définit la séquence des actions à exécuter.
', 'UI:NotificationsMenu:Triggers' => 'Déclencheurs', @@ -989,6 +993,9 @@ Lors de l\'association à un déclencheur, on attribue à chaque action un numé 'UI:NotificationsMenu:OnStateEnter' => 'Quand un objet entre dans un état donné', 'UI:NotificationsMenu:OnStateLeave' => 'Quand un objet quitte un état donné', 'UI:NotificationsMenu:Actions' => 'Actions', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Actions de type mél', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Actions de type webhook (intégrations sortantes)', + 'UI:NotificationsMenu:Actions:Action' => 'Autres types d\'actions', 'UI:NotificationsMenu:AvailableActions' => 'Actions existantes', 'Menu:TagAdminMenu' => 'Étiquettes', diff --git a/dictionaries/hu.dictionary.itop.ui.php b/dictionaries/hu.dictionary.itop.ui.php index 5e513c76a..67cfd7793 100755 --- a/dictionaries/hu.dictionary.itop.ui.php +++ b/dictionaries/hu.dictionary.itop.ui.php @@ -967,9 +967,13 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', array(-Akciók határozzák meg mit kell végrehjatani a kiváltó ok bekövetkezésekor. Jelenleg egyetlen akció fajta van: e-mail küldés.Természetesen az egyedi akciókbna meg lehet határozni a levél alapját képző sablont és az abba beépülő speciális paramétereket, pl.: címzett, fontossás, stb. +Akciók define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Speciális oldal: email.test.php oldalon keresztül a PHP mail konfiguráció tesztelhető.
Akció végrehjatásához azt kiváltó okhoz kell rendelni. Akció kiváltó okhoz rendelésekor kap egy sorszámot , amely meghatározza az akciók végrehatási sorrendjét.
~~', 'UI:NotificationsMenu:Triggers' => 'Kiváltó okok', @@ -978,6 +982,9 @@ Akció kiváltó okhoz rendelésekor kap egy sorszámot , amely meghatározza az 'UI:NotificationsMenu:OnStateEnter' => 'Objketum állapotba való belépése', 'UI:NotificationsMenu:OnStateLeave' => 'Objektum állotból való kilépése', 'UI:NotificationsMenu:Actions' => 'Akciók', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Lehetséges akciók', 'Menu:TagAdminMenu' => 'Tags configuration~~', diff --git a/dictionaries/it.dictionary.itop.ui.php b/dictionaries/it.dictionary.itop.ui.php index ad58f10b2..fac81c084 100644 --- a/dictionaries/it.dictionary.itop.ui.php +++ b/dictionaries/it.dictionary.itop.ui.php @@ -976,21 +976,26 @@ Dict::Add('IT IT', 'Italian', 'Italiano', array(-Azioni definire le azioni da eseguire quando il trigger vengono eseguiti. Per ora c\'è solo un tipo di azione consiste nel mandare un messaggio email. -Inoltre, tali azioni definiscono il modello da utilizzare per l\'invio della e-mail così come gli altri parametri del messaggio come, l\'importanza dei destinatari, etc +Azioni define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Una Pagina speciale: email.test.php è disponibile per il testing e la risoluzione dei problemi di configurazione PHP mail.
Per essere eseguite, le azioni devono essere associate ai trigger. -Quando è associata a un trigger, ad ogni azione è assegnato un numero "ordine", che specifica in quale ordine le azioni devono essere eseguite.
', +Quando è associata a un trigger, ad ogni azione è assegnato un numero "ordine", che specifica in quale ordine le azioni devono essere eseguite.~~', 'UI:NotificationsMenu:Triggers' => 'Triggers', 'UI:NotificationsMenu:AvailableTriggers' => 'Triggers Disponibili', 'UI:NotificationsMenu:OnCreate' => 'When an object is created~~', 'UI:NotificationsMenu:OnStateEnter' => 'Quando un oggetto viene creato', 'UI:NotificationsMenu:OnStateLeave' => 'Quando un oggetto lascia un determinato stato', 'UI:NotificationsMenu:Actions' => 'Azioni', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Azioni disponibili', 'Menu:TagAdminMenu' => 'Tags configuration~~', diff --git a/dictionaries/ja.dictionary.itop.ui.php b/dictionaries/ja.dictionary.itop.ui.php index 644c5acfa..8ef24137d 100644 --- a/dictionaries/ja.dictionary.itop.ui.php +++ b/dictionaries/ja.dictionary.itop.ui.php @@ -958,7 +958,7 @@ Dict::Add('JA JP', 'Japanese', '日本語', array( 'Menu:NotificationsMenu+' => '通知の設定', // Duplicated into itop-welcome-itil (will be removed from here...) 'UI:NotificationsMenu:Title' => '通知の設定', 'UI:NotificationsMenu:Help' => 'ヘルプ', - 'UI:NotificationsMenu:HelpContent' => 'iTopでは、通知はすべてカスタマイズが可能です。通知はトリガーとアクションという二つのオブジェクトがベースになっています。 + 'UI:NotificationsMenu:HelpContent' => '
'.ITOP_APPLICATION_SHORT.'では、通知はすべてカスタマイズが可能です。通知はトリガーとアクションという二つのオブジェクトがベースになっています。
Triggers define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:
-アクションはトリガーが実行される際の動作を定義します。例えば今、「メールを送信する」という動作で構成されるたった1種類だけのアクションがあるとします。 -このようなアクションは、受信者、重要度といったメッセージに付随する他のパラメータと同様、メール送信に利用されるテンプレートも定義します。 +アクション define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
特別なページ: email.test.php は、PHPのメール設定をテストしたりトラブルシュートするのに利用可能であす。
実行するには、アクションがトリガーに関連づけられている必要があります。 トリガーに関連づけられると、各々のアクションは順番が与えられ、どの順序でアクションが実行されるかが指定されます。
~~', 'UI:NotificationsMenu:Triggers' => 'トリガー', @@ -979,6 +982,9 @@ Dict::Add('JA JP', 'Japanese', '日本語', array( 'UI:NotificationsMenu:OnStateEnter' => 'オブジェクトが指定状態に入った時', 'UI:NotificationsMenu:OnStateLeave' => 'オブジェクトが指定状態から出た時', 'UI:NotificationsMenu:Actions' => 'アクション', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => '利用可能アクション', 'Menu:TagAdminMenu' => 'Tags configuration~~', diff --git a/dictionaries/nl.dictionary.itop.ui.php b/dictionaries/nl.dictionary.itop.ui.php index cda25c0fa..65c521a5d 100644 --- a/dictionaries/nl.dictionary.itop.ui.php +++ b/dictionaries/nl.dictionary.itop.ui.php @@ -969,7 +969,7 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', array( 'Menu:NotificationsMenu+' => 'Configuratie van de meldingen', // Duplicated into itop-welcome-itil (will be removed from here...) 'UI:NotificationsMenu:Title' => 'Configuratie van Meldingen', 'UI:NotificationsMenu:Help' => 'Help', - 'UI:NotificationsMenu:HelpContent' => 'In ITOP_APPLICATION_SHORT zijn de meldingen volledig aan te passen. Ze zijn gebaseerd op twee sets van objecten: triggers and actions.
+ 'UI:NotificationsMenu:HelpContent' => 'In '.ITOP_APPLICATION_SHORT.' zijn de meldingen volledig aan te passen. Ze zijn gebaseerd op twee sets van objecten: triggers and actions.
Triggers bepalen wanneer er een melding is. Er zijn verschillende triggers als onderdeel van ITOP_APPLICATION_SHORT core, maar andere kunnen door middel van uitbreidingen worden toegevoegd.
Sommige triggers worden uitgevoerd:
@@ -981,18 +981,24 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', array(-Acties bepalen de acties (zoals het versturen van meldingen) die uitgevoerd worden bij een bepaalde trigger. -Op dit moment is er slechts een standaardactie: het verzenden van een e-mail. -Per actie kan je ook het sjabloon instellen die gebruikt moet worden voor het versturen van de e-mail, maar ook andere e-mailparameters zoals de ontvangers, de prioriteit, enz.
-Een speciale testpagina (email.test.php) is beschikbaar voor het testen en oplossen van eventuele problemen met jouw PHP e-mailconfiguratie.
+Acties define the actions to be performed when the triggers execute. For now there are only two kind of actions: +Acties moeten gekoppeld zijn aan triggers. -Bij die koppeling wordt aan elke actie een volgorde-nummer gegeven. Dit bepaalt in welke volgorde de acties moeten worden uitgevoerd.
', +Bij die koppeling wordt aan elke actie een volgorde-nummer gegeven. Dit bepaalt in welke volgorde de acties moeten worden uitgevoerd.~~', 'UI:NotificationsMenu:Triggers' => 'Triggers', 'UI:NotificationsMenu:AvailableTriggers' => 'Beschikbare triggers', 'UI:NotificationsMenu:OnCreate' => 'Wanneer een object is aangemaakt', 'UI:NotificationsMenu:OnStateEnter' => 'Wanneer een object een bepaalde fase intreedt', 'UI:NotificationsMenu:OnStateLeave' => 'Wanneer een object een bepaalde fase uittreedt', 'UI:NotificationsMenu:Actions' => 'Acties', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Beschikbare acties', 'Menu:TagAdminMenu' => 'Tags-configuratie', diff --git a/dictionaries/pl.dictionary.itop.ui.php b/dictionaries/pl.dictionary.itop.ui.php index e6c94f295..f001abac0 100644 --- a/dictionaries/pl.dictionary.itop.ui.php +++ b/dictionaries/pl.dictionary.itop.ui.php @@ -980,18 +980,24 @@ Dict::Add('PL PL', 'Polish', 'Polski', array(-Działania definiuje działania, które mają zostać wykonane, gdy wyzwalacze zostaną wykonane. Na razie istnieje tylko jeden rodzaj działania polegający na wysłaniu wiadomości e-mail. -Takie działania definiują również szablon, który ma być używany do wysyłania wiadomości e-mail, a także inne parametry wiadomości, takie jak odbiorcy, ważność itp. +Działania define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Specjalna strona: email.test.php jest dostępna do testowania i rozwiązywania problemów z konfiguracją poczty PHP.
Aby zostały wykonane, działania muszą być powiązane z wyzwalaczami. -W przypadku powiązania z wyzwalaczem, każde działanie otrzymuje numer "porządkowy", określający, w jakiej kolejności mają być wykonywane.
', +W przypadku powiązania z wyzwalaczem, każde działanie otrzymuje numer "porządkowy", określający, w jakiej kolejności mają być wykonywane.~~', 'UI:NotificationsMenu:Triggers' => 'Wyzwalacze', 'UI:NotificationsMenu:AvailableTriggers' => 'Dostępne wyzwalacze', 'UI:NotificationsMenu:OnCreate' => 'Kiedy obiekt jest tworzony', 'UI:NotificationsMenu:OnStateEnter' => 'Kiedy obiekt wejdzie w określony stan', 'UI:NotificationsMenu:OnStateLeave' => 'Kiedy obiekt opuszcza dany stan', 'UI:NotificationsMenu:Actions' => 'Działania', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Dostępne działania', 'Menu:TagAdminMenu' => 'Konfiguracja tagów', diff --git a/dictionaries/pt_br.dictionary.itop.ui.php b/dictionaries/pt_br.dictionary.itop.ui.php index 92968b8f0..0de5ec8bc 100644 --- a/dictionaries/pt_br.dictionary.itop.ui.php +++ b/dictionaries/pt_br.dictionary.itop.ui.php @@ -978,10 +978,13 @@ Dict::Add('PT BR', 'Brazilian', 'Brazilian', array(-Ações define the actions to be performed when the triggers execute. For now there is only one kind of action consisting in sending an email message. -Such actions also define the template to be used for sending the email as well as the other parameters of the message like the recipients, importance, etc. +Ações define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
A special page: email.test.php is available for testing and troubleshooting your PHP mail configuration.
To be executed, actions must be associated to triggers. When associated with a trigger, each action is given an "order" number, specifying in which order the actions are to be executed.
~~', 'UI:NotificationsMenu:Triggers' => 'Gatilhos', @@ -990,6 +993,9 @@ When associated with a trigger, each action is given an "order" number, specifyi 'UI:NotificationsMenu:OnStateEnter' => 'When an object enters a given state', 'UI:NotificationsMenu:OnStateLeave' => 'When an object leaves a given state', 'UI:NotificationsMenu:Actions' => 'Ações', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Available actions', 'Menu:TagAdminMenu' => 'Configuração de tags', diff --git a/dictionaries/ru.dictionary.itop.ui.php b/dictionaries/ru.dictionary.itop.ui.php index fa354e8e7..a67a234c1 100644 --- a/dictionaries/ru.dictionary.itop.ui.php +++ b/dictionaries/ru.dictionary.itop.ui.php @@ -986,17 +986,23 @@ Dict::Add('RU RU', 'Russian', 'Русский', array(-Действия определяют, что произойдет при срабатывании триггера. Базовое действие в '.ITOP_APPLICATION_SHORT.' – Уведомление по email, дополнительные действия добавляются расширениями. -Действие Уведомление по email задаёт шаблон сообщения, который будет использоваться для отправки письма, а также другие параметры, такие как получатели, важность и т.д. +Действия define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Для тестирования и устранения неполадок в настройках почты доступна специальная страница: email.test.php.
-Для выполнения действия связываются с триггерами. При связывании с триггером каждому действию присваивается порядковый номер, который указывает на очерёдность выполнения действий при срабатывании триггера.
', +Для выполнения действия связываются с триггерами. При связывании с триггером каждому действию присваивается порядковый номер, который указывает на очерёдность выполнения действий при срабатывании триггера.
~~', 'UI:NotificationsMenu:Triggers' => 'Триггеры', 'UI:NotificationsMenu:AvailableTriggers' => 'Доступные триггеры', 'UI:NotificationsMenu:OnCreate' => 'При создании объекта', 'UI:NotificationsMenu:OnStateEnter' => 'При входе объекта в заданное состояние', 'UI:NotificationsMenu:OnStateLeave' => 'При выходе объекта из заданного состояния', 'UI:NotificationsMenu:Actions' => 'Действия', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Доступные действия', 'Menu:TagAdminMenu' => 'Теги', diff --git a/dictionaries/sk.dictionary.itop.ui.php b/dictionaries/sk.dictionary.itop.ui.php index dbfc2dd8a..870dc0829 100644 --- a/dictionaries/sk.dictionary.itop.ui.php +++ b/dictionaries/sk.dictionary.itop.ui.php @@ -970,18 +970,24 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', array(-Akcie definujte akcie, ktoré budú vykonané, keď sa spúštače spustia. Zatiaľ je tu iba 1 druh akcie pozostávajúci zo zasielania emailovej správy. -Také akcie tiež definujú šablónu, ktorá bude použitá pre zasielanie emailov ako aj ostatné parametre správy ako prijímatelia, dôležitosť, atď. +Akcie define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Špeciálna stránka: email.test.php je dostupná pre testovanie a odstraňovanie problémov Vašej PHP mailovej konfigurácie.
Na vykonanie, akcie musia byť priradené spúštačom. -Keď sú priradené spúštačom, každej akcii je dané číslo "príkazu", špecifikujúce v akej postupnosti budú akcie vykonané.
', +Keď sú priradené spúštačom, každej akcii je dané číslo "príkazu", špecifikujúce v akej postupnosti budú akcie vykonané.~~', 'UI:NotificationsMenu:Triggers' => 'Spúštače', 'UI:NotificationsMenu:AvailableTriggers' => 'Dostupné spúštače', 'UI:NotificationsMenu:OnCreate' => 'Keď je objekt vytvorený', 'UI:NotificationsMenu:OnStateEnter' => 'Keď objekt vstupuje do daného stavu', 'UI:NotificationsMenu:OnStateLeave' => 'Keď objekt vychádza z daného stavu', 'UI:NotificationsMenu:Actions' => 'Akcie', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Dostupné akcie', 'Menu:TagAdminMenu' => 'Tags configuration~~', diff --git a/dictionaries/tr.dictionary.itop.ui.php b/dictionaries/tr.dictionary.itop.ui.php index 8d35c90a9..a47089166 100644 --- a/dictionaries/tr.dictionary.itop.ui.php +++ b/dictionaries/tr.dictionary.itop.ui.php @@ -969,7 +969,7 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', array( 'Menu:NotificationsMenu+' => 'Uyarıların yapılandırılması', // Duplicated into itop-welcome-itil (will be removed from here...) 'UI:NotificationsMenu:Title' => 'Uyarıların yapılandırılması', 'UI:NotificationsMenu:Help' => 'Yardım', - 'UI:NotificationsMenu:HelpContent' => 'In iTop uyarı mekanizması ihtiyaca göre uyarlanabilir. Uyarılar iki tip nesne üzerine kurulmuştur: tetikleme (triggers) ve işlemler (actions).
+ 'UI:NotificationsMenu:HelpContent' => 'In '.ITOP_APPLICATION_SHORT.' uyarı mekanizması ihtiyaca göre uyarlanabilir. Uyarılar iki tip nesne üzerine kurulmuştur: tetikleme (triggers) ve işlemler (actions).
Triggers define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:
-Actions tetikleme olduğunda yapılacak işlemleri belirler. Şimdilik sadece e-posta gönderme işlemi yapılabilmektedir. -E-posta için şablon tanımlanabilmektedir. Şablona parametreler girilebilmektedir (recipients, importance, etc.). +Actions define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
Özel sayfa: email.test.php PHP e-posta konfigürnunu test ediniz.
İşlemin gerçekleşmesi için bir tetikleme ile ilişkilendirilmesi gerekir. Tetikleme gerçekleştiriğinde işlemler tanımlanan sıra numarası ile gerçekleştirilir.
~~', 'UI:NotificationsMenu:Triggers' => 'Tetikleyiciler', @@ -990,6 +993,9 @@ Tetikleme gerçekleştiriğinde işlemler tanımlanan sıra numarası ile gerçe 'UI:NotificationsMenu:OnStateEnter' => 'Nesnenin durumuna girişinde', 'UI:NotificationsMenu:OnStateLeave' => 'Nesnenin durumdan çıkışında', 'UI:NotificationsMenu:Actions' => 'İşlemler', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => 'Kullanılabilir işlemler', 'Menu:TagAdminMenu' => 'Tags configuration~~', diff --git a/dictionaries/zh_cn.dictionary.itop.ui.php b/dictionaries/zh_cn.dictionary.itop.ui.php index e6cdabb68..baef27829 100644 --- a/dictionaries/zh_cn.dictionary.itop.ui.php +++ b/dictionaries/zh_cn.dictionary.itop.ui.php @@ -969,8 +969,8 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', array( 'Menu:NotificationsMenu+' => '配置通知', // Duplicated into itop-welcome-itil (will be removed from here...) 'UI:NotificationsMenu:Title' => '配置 通知', 'UI:NotificationsMenu:Help' => '帮助', - 'UI:NotificationsMenu:HelpContent' => '在iTop 中, 通知可以被自定义. 它们是基于两个对象集: 触发器和操作.
-触发器 定义了什么时候发送通知. iTop core 自带一些触发器, 另一些触发器可由扩展提供: + 'UI:NotificationsMenu:HelpContent' => '
在'.ITOP_APPLICATION_SHORT.' 中, 通知可以被自定义. 它们是基于两个对象集: 触发器和操作.
+触发器 定义了什么时候发送通知. '.ITOP_APPLICATION_SHORT.' core 自带一些触发器, 另一些触发器可由扩展提供:
-操作 定义了触发时要执行的操作. 目前, 仅有的一种操作就是外发邮件. -包含邮件模板(定义发件人、收件人、重要性等). +操作 define the actions to be performed when the triggers execute. For now there are only two kind of actions: +
这里有一个专用的页面: email.test.php 可用于测试和调试PHP 的邮件配置.
若要执行, 操作必须和触发器相关联. 当与一个触发器关联时, 每个操作都被赋予一个顺序号, 规定了按什么样的顺序执行这些操作.
~~', 'UI:NotificationsMenu:Triggers' => '触发器', @@ -990,6 +993,9 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', array( 'UI:NotificationsMenu:OnStateEnter' => '当对象进入指定状态', 'UI:NotificationsMenu:OnStateLeave' => '当对象离开指定状态', 'UI:NotificationsMenu:Actions' => '操作', + 'UI:NotificationsMenu:Actions:ActionEmail' => 'Email actions~~', + 'UI:NotificationsMenu:Actions:ActionWebhook' => 'Webhook actions (outgoing integrations)~~', + 'UI:NotificationsMenu:Actions:Action' => 'Other actions~~', 'UI:NotificationsMenu:AvailableActions' => '有效的操作', 'Menu:TagAdminMenu' => '标签配置', diff --git a/pages/notifications.php b/pages/notifications.php index c54f67b6d..6acd8bde6 100644 --- a/pages/notifications.php +++ b/pages/notifications.php @@ -30,6 +30,70 @@ require_once(APPROOT.'/application/loginwebpage.class.inc.php'); LoginWebPage::DoLogin(); // Check user rights and prompt if needed ApplicationMenu::CheckMenuIdEnabled("NotificationsMenu"); +/** + * @param \iTopWebPage $oP + * @param string $sClassToDisplay + * @param array $aClassesToExclude + * + * @throws \ApplicationException + * @throws \CoreException + * @throws \DictExceptionMissingString + * @since 3.0.0 + */ +function DisplayActionsTab(iTopWebPage &$oP, string $sClassToDisplay, array $aClassesToExclude = []): void +{ + // Check if class exists + if (! MetaModel::IsValidClass($sClassToDisplay)) { + return; + } + + $aActionClasses = array(); + foreach(MetaModel::EnumChildClasses($sClassToDisplay, ENUM_CHILD_CLASSES_ALL, true) as $sActionClass) { + // Ignore abstract classes + if (MetaModel::IsAbstract($sActionClass)) { + continue; + } + + // Ignore specific classes + foreach ($aClassesToExclude as $sClassToExclude) { + if (is_a($sActionClass, $sClassToExclude, true)) { + continue 2; + } + } + + $aActionClasses[] = $sActionClass; + } + + // Don't display tab if no action class + if (count($aActionClasses) === 0) { + return; + } + + $oP->SetCurrentTab('UI:NotificationsMenu:Actions:'.$sClassToDisplay); + $sNbOfActionClassesTitle = ''; + if (count($aActionClasses) == 1) + { + // Preserve old style + $sNbOfActionClassesTitle = Dict::S('UI:NotificationsMenu:AvailableActions'); + } + + $iBlock = 0; + foreach($aActionClasses as $sActionClass) + { + if (count($aActionClasses) > 1) + { + // New style + $sNbOfActionClassesTitle = MetaModel::GetName($sActionClass); + } + $oFilter = new DBObjectSearch($sActionClass); + $oFilter->AddCondition('finalclass', $sActionClass); // derived classes will be further processed + $aParams = array('panel_title' => $sNbOfActionClassesTitle); + $oBlock = new DisplayBlock($oFilter, 'list', false, $aParams); + $oBlock->Display($oP, 'block_action_'.$iBlock, $aParams); + $iBlock++; + } +} + // Main program // $oP = new iTopWebPage(Dict::S('Menu:NotificationsMenu+')); @@ -47,6 +111,10 @@ $oConfigurationHelp ->EnableSaveCollapsibleState('notifications__home'); $oPageContentLayout->AddMainBlock($oConfigurationHelp); +/************************************* + * Triggers tab + ************************************/ + $oP->AddTabContainer('Tabs_0'); $oP->SetCurrentTabContainer('Tabs_0'); @@ -57,39 +125,17 @@ $aParams = array('panel_title' => Dict::S('UI:NotificationsMenu:AvailableTrigger $oBlock = new DisplayBlock($oFilter, 'list', false, $aParams); $oBlock->Display($oP, 'block_0', $aParams); +/************************************* + * Actions tabs + ************************************/ -$aActionClasses = array(); -foreach(MetaModel::EnumChildClasses('Action', ENUM_CHILD_CLASSES_EXCLUDETOP) as $sActionClass) -{ - if (!MetaModel::IsAbstract($sActionClass)) - { - $aActionClasses[] = $sActionClass; - } -} +DisplayActionsTab($oP, 'ActionEmail'); +DisplayActionsTab($oP, 'ActionWebhook'); +DisplayActionsTab($oP, 'Action', ['ActionEmail', 'ActionWebhook']); -$oP->SetCurrentTab('UI:NotificationsMenu:Actions'); -$sNbOfActionClassesTitle = ''; -if (count($aActionClasses) == 1) -{ - // Preserve old style - $sNbOfActionClassesTitle = Dict::S('UI:NotificationsMenu:AvailableActions'); -} - -$iBlock = 0; -foreach($aActionClasses as $sActionClass) -{ - if (count($aActionClasses) > 1) - { - // New style - $sNbOfActionClassesTitle = MetaModel::GetName($sActionClass); - } - $oFilter = new DBObjectSearch($sActionClass); - $oFilter->AddCondition('finalclass', $sActionClass); // derived classes will be further processed - $aParams = array('panel_title' => $sNbOfActionClassesTitle); - $oBlock = new DisplayBlock($oFilter, 'list', false, $aParams); - $oBlock->Display($oP, 'block_action_'.$iBlock, $aParams); - $iBlock++; -} +/************************************* + * End reset + ************************************/ $oP->SetCurrentTab(''); $oP->SetCurrentTabContainer('');