From 1cfbf3b727468d85e8d2f3f9953d8e71b56e79b9 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Thu, 16 Dec 2021 15:51:14 +0200 Subject: [PATCH] update - v1.0.1 --- componentbuilderlanguagetabs.php | 2 +- componentbuilderlanguagetabs.xml | 2 +- .../en-GB.plg_content_componentbuilderlanguagetabs.ini | 2 +- .../en-GB.plg_content_componentbuilderlanguagetabs.sys.ini | 2 +- script.php | 7 ++++--- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/componentbuilderlanguagetabs.php b/componentbuilderlanguagetabs.php index 4e35066..727a9c1 100644 --- a/componentbuilderlanguagetabs.php +++ b/componentbuilderlanguagetabs.php @@ -23,7 +23,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c * Content - Componentbuilder Language Tabs plugin. * * @package ComponentbuilderLanguageTabs - * @since 1.0.0 + * @since 1.0.1 */ class PlgContentComponentbuilderLanguageTabs extends CMSPlugin { diff --git a/componentbuilderlanguagetabs.xml b/componentbuilderlanguagetabs.xml index 06a83dc..c669f5d 100644 --- a/componentbuilderlanguagetabs.xml +++ b/componentbuilderlanguagetabs.xml @@ -7,7 +7,7 @@ https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 1.0.0 + 1.0.1 PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION diff --git a/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.ini b/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.ini index c57d59b..eb5ae75 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS="Content - Componentbuilder Language Tabs" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_DESCRIPTION="This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration." -PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="

Content - Componentbuilder Language Tabs (v.1.0.0)

This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 19th March, 2020

" +PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="

Content - Componentbuilder Language Tabs (v.1.0.1)

This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 19th March, 2020

" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS="Language Options" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL="Would you like to move languages to their own packages?" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION="

Adding all your translations to your component can increase its size dramatically, so now you are able to move each extra language translation to its own installing package, leaving just your main language in the component.

Please note that this is only relevant if you actually have added extra translations to your component in the Language Translations area of JCB.

" diff --git a/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.sys.ini b/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.sys.ini index c57d59b..eb5ae75 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderlanguagetabs.sys.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS="Content - Componentbuilder Language Tabs" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_DESCRIPTION="This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration." -PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="

Content - Componentbuilder Language Tabs (v.1.0.0)

This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 19th March, 2020

" +PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="

Content - Componentbuilder Language Tabs (v.1.0.1)

This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 19th March, 2020

" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS="Language Options" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL="Would you like to move languages to their own packages?" PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION="

Adding all your translations to your component can increase its size dramatically, so now you are able to move each extra language translation to its own installing package, leaving just your main language in the component.

Please note that this is only relevant if you actually have added extra translations to your component in the Language Translations area of JCB.

" diff --git a/script.php b/script.php index 4aa9b3e..cb4258b 100644 --- a/script.php +++ b/script.php @@ -43,6 +43,7 @@ class plgContentComponentbuilderLanguageTabsInstallerScript if ('install' === $route) { + // check that componentbuilder is installed $pathToCore = JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'; if (!JFile::exists($pathToCore)) @@ -60,8 +61,8 @@ class plgContentComponentbuilderLanguageTabsInstallerScript { // get the version $jcbVersion = explode('.', $manifest->version); - // check that we have JCB 2.10.13 or higher installed - if (count($jcbVersion) == 3 && (($jcbVersion[0] == 2 && $jcbVersion[1] >= 10 && (($jcbVersion[1] == 10 && $jcbVersion[2] >= 13) || ($jcbVersion[1] > 10))) || $jcbVersion[0] >= 3)) + // check that we have JCB 3 or higher installed + if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3) { $blockInstall = false; } @@ -69,7 +70,7 @@ class plgContentComponentbuilderLanguageTabsInstallerScript // allow install if all conditions are met if ($blockInstall) { - $app->enqueueMessage('Please upgrade to JCB 2.10.13 or higher before installing this plugin.', 'error'); + $app->enqueueMessage('Please upgrade to JCB-Pro v3.0.0 or higher before installing this plugin.', 'error'); return false; } }