andre 3 месяцев назад
Родитель
Сommit
8571f7c4db
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      app/UI/Client/Setting/Sections/EditGeneralSection.php

+ 6 - 1
app/UI/Client/Setting/Sections/EditGeneralSection.php

@@ -12,6 +12,7 @@ use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\InputGroup;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;
 use ThurData\Servers\KerioEmail\Core\Helper\DnsHelper;
+use function ThurData\Servers\KerioEmail\Core\Helper\di;
 
 /**
  *
@@ -98,7 +99,11 @@ class EditGeneralSection extends FreeFieldsSection
             $defaults = new Switcher('setDefaults');
             $this->addField($defaults);
         } else {
-            $infodns = new Info('infodns');
+            di('lang')->absoluteT('dnseditmessage') ? $message = di('lang')->absoluteT('dnseditmessage') :
+            $message  = 'Settings for <b id="editalertmaildomain" class="lu-alert--lg"></b><br><br>
+            <i class="fas fa-info fa-fw"></i> Incorrect DNS entries lead to difficulties sending and receiving emails. 
+            To ensure that your mail server is functioning properly, it\'s best to follow our recommendations.';
+            $infodns = new Info($message);
             $infodns->setId('infodns');
             $infodns->setName('infodns');
             $infodns->addHtmlAttribute('disabled', true);