From cfd5deb5e51a1a6bb3909af50c40f22f4d61354c Mon Sep 17 00:00:00 2001 From: Vladimir Date: Mon, 9 Aug 2021 21:26:56 +0300 Subject: [PATCH] Added descriptive text about multilingual settings. Fixed #40 --- administrator/language/en-GB/en-GB.com_jcomments.ini | 1 + administrator/language/ru-RU/ru-RU.com_jcomments.ini | 1 + administrator/views/settings/tmpl/default.php | 3 +++ 3 files changed, 5 insertions(+) diff --git a/administrator/language/en-GB/en-GB.com_jcomments.ini b/administrator/language/en-GB/en-GB.com_jcomments.ini index 3843970..48ce248 100644 --- a/administrator/language/en-GB/en-GB.com_jcomments.ini +++ b/administrator/language/en-GB/en-GB.com_jcomments.ini @@ -59,6 +59,7 @@ A_SETTINTS_LANGUAGE="Language:" A_SETTINGS_RESTORE_DEFAULT="Restore default" A_SETTINGS_RESTORED="The default settings have been restored!" A_SETTINGS_SAVED="Settings have been successfully saved!" +A_SETTINGS_MULTILANG_DESC="Attention! If you are using a multi-lingual site, to customize the component parameters for the desired language, select the language in the filter on the left sidebar." ; settings/general A_COMMON="General" diff --git a/administrator/language/ru-RU/ru-RU.com_jcomments.ini b/administrator/language/ru-RU/ru-RU.com_jcomments.ini index ad7125e..ef0c0fb 100644 --- a/administrator/language/ru-RU/ru-RU.com_jcomments.ini +++ b/administrator/language/ru-RU/ru-RU.com_jcomments.ini @@ -60,6 +60,7 @@ A_SETTINTS_LANGUAGE="Язык:" A_SETTINGS_RESTORE_DEFAULT="Сбросить настройки" A_SETTINGS_RESTORED="Восстановлены настройки по умолчанию!" A_SETTINGS_SAVED="Настройки успешно сохранены!" +A_SETTINGS_MULTILANG_DESC="Внимание! Если вы используете на сайте многоязычность, для настройки параметров компонента для необходимого языка выберите этот язык в фильтре на боковой панели слева." ; settings/general A_COMMON="Общие" diff --git a/administrator/views/settings/tmpl/default.php b/administrator/views/settings/tmpl/default.php index c29b322..85d8223 100644 --- a/administrator/views/settings/tmpl/default.php +++ b/administrator/views/settings/tmpl/default.php @@ -173,6 +173,9 @@ function toggleListLayout(val) { Joomla.submitform(task, document.getElementById('settings-form')); } } + + // Render multi-lingual settings help. + Joomla.renderMessages({'notice': ['']}); });