From 3cf0e6017d91b120bd576e0afb42570980bab692 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 8 May 2016 16:48:42 +0900 Subject: [PATCH] Display warning on configuration pages of blacklisted addons and modules --- modules/addon/tpl/setup_addon.html | 4 ++++ modules/admin/lang/en.php | 6 ++++++ modules/admin/lang/ko.php | 6 ++++++ modules/admin/tpl/layout.html | 3 +++ 4 files changed, 19 insertions(+) diff --git a/modules/addon/tpl/setup_addon.html b/modules/addon/tpl/setup_addon.html index 399936fa6..b793b1ee7 100644 --- a/modules/addon/tpl/setup_addon.html +++ b/modules/addon/tpl/setup_addon.html @@ -2,6 +2,7 @@

{$lang->installed_addons}

{$addon_info->title}

+ @@ -30,6 +31,9 @@
+
+

{$lang->msg_warning} {$lang->msg_blacklisted_module}

+

{$XE_VALIDATOR_MESSAGE}

diff --git a/modules/admin/lang/en.php b/modules/admin/lang/en.php index e857f3b9b..9aba7a148 100644 --- a/modules/admin/lang/en.php +++ b/modules/admin/lang/en.php @@ -60,6 +60,12 @@ $lang->cmd_shortcut_management = 'Edit Menu'; $lang->msg_is_not_administrator = 'Only administrator can access this page.'; $lang->msg_manage_module_cannot_delete = 'Shortcuts of module, addon, layout, widget cannot be removed.'; $lang->msg_default_act_is_null = 'Shortcut cannot be registered because the default admin Action is not set.'; +$lang->msg_blacklisted_plugin = 'This plugin has been disabled because it conflicts with a feature that Rhymix supports by default, or is known to have other compatibility problems.'; +$lang->msg_blacklisted_module = 'This module has been disabled because it conflicts with a feature that Rhymix supports by default, or is known to have other compatibility problems.'; +$lang->msg_blacklisted_addon = 'This addon has been disabled because it conflicts with a feature that Rhymix supports by default, or is known to have other compatibility problems.'; +$lang->msg_blacklisted_widget = 'This widget has been disabled because it conflicts with a feature that Rhymix supports by default, or is known to have other compatibility problems.'; +$lang->msg_blacklisted_layout = 'This layout has been disabled because it conflicts with a feature that Rhymix supports by default, or is known to have other compatibility problems.'; +$lang->msg_warning = 'Warning'; $lang->welcome_to_xe = 'Welcome to the Rhymix admin page.'; $lang->about_lang_env = 'If you want to make the language setting same for first-time visitors, change the language setting to what you want and click [Save] button below.'; $lang->xe_license = 'Rhymix complies with the GPL.'; diff --git a/modules/admin/lang/ko.php b/modules/admin/lang/ko.php index dd7ffffe7..900c3a284 100644 --- a/modules/admin/lang/ko.php +++ b/modules/admin/lang/ko.php @@ -60,6 +60,12 @@ $lang->cmd_shortcut_management = '메뉴 편집하기'; $lang->msg_is_not_administrator = '관리자만 접속이 가능합니다.'; $lang->msg_manage_module_cannot_delete = '모듈, 애드온, 레이아웃, 위젯 모듈의 바로가기는 삭제 불가능합니다.'; $lang->msg_default_act_is_null = '기본 관리자 Action이 지정되어 있지 않아 바로가기 등록을 할 수 없습니다.'; +$lang->msg_blacklisted_plugin = '이 플러그인은 Rhymix에서 기본 제공하는 기능과 충돌하거나 그 밖의 호환성 문제가 있으므로 사용이 중단되었습니다.'; +$lang->msg_blacklisted_module = '이 모듈은 Rhymix에서 기본 제공하는 기능과 충돌하거나 그 밖의 호환성 문제가 있으므로 사용이 중단되었습니다.'; +$lang->msg_blacklisted_addon = '이 애드온은 Rhymix에서 기본 제공하는 기능과 충돌하거나 그 밖의 호환성 문제가 있으므로 사용이 중단되었습니다.'; +$lang->msg_blacklisted_widget = '이 위젯은 Rhymix에서 기본 제공하는 기능과 충돌하거나 그 밖의 호환성 문제가 있으므로 사용이 중단되었습니다.'; +$lang->msg_blacklisted_layout = '이 레이아웃은 Rhymix에서 기본 제공하는 기능과 충돌하거나 그 밖의 호환성 문제가 있으므로 사용이 중단되었습니다.'; +$lang->msg_warning = '경고'; $lang->welcome_to_xe = 'Rhymix 관리자'; $lang->about_lang_env = '처음 방문하는 사용자들의 언어 설정을 동일하게 하려면, 원하는 언어로 변경 후 아래 [저장] 버튼을 클릭하면 됩니다.'; $lang->xe_license = 'Rhymix는 GPL을 따릅니다.'; diff --git a/modules/admin/tpl/layout.html b/modules/admin/tpl/layout.html index 06f1a97cb..12ca3ea4b 100644 --- a/modules/admin/tpl/layout.html +++ b/modules/admin/tpl/layout.html @@ -1,5 +1,8 @@
+
+

{$lang->msg_warning} {$lang->msg_blacklisted_module}

+
{$content}