From 251c08b6b8ab42a4322259b496128aa6586e2755 Mon Sep 17 00:00:00 2001 From: aB0t Date: Wed, 15 Feb 2023 15:26:02 +0200 Subject: [PATCH] update - v1.1.2 --- componentbuilderexportcompiler.php | 14 ++++---------- componentbuilderexportcompiler.xml | 4 ++-- ...lg_extension_componentbuilderexportcompiler.ini | 2 +- ...xtension_componentbuilderexportcompiler.sys.ini | 2 +- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/componentbuilderexportcompiler.php b/componentbuilderexportcompiler.php index f94f99e..29a9c97 100644 --- a/componentbuilderexportcompiler.php +++ b/componentbuilderexportcompiler.php @@ -17,6 +17,7 @@ use Joomla\CMS\Plugin\CMSPlugin; JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'); +use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory; use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent; use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line; @@ -24,7 +25,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line; * Extension - Componentbuilder Export Compiler plugin. * * @package ComponentbuilderExportCompiler - * @since 1.1.0 + * @since 1.1.2 */ class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin { @@ -51,13 +52,6 @@ class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin */ protected $languageArray = array(); - /* - * The lang prefix - * - * @var boolean - */ - protected $langPrefix; - /* * The Export Text Only switch * @@ -131,7 +125,7 @@ class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin { foreach($this->languageArray as $key => $string) { - $compiler->setLangContent('adminsys', $key, $string); + CFactory::_('Language')->set('adminsys', $key, $string); } } } @@ -149,7 +143,7 @@ class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin if ($this->exportTextOnly && $this->componentActive($context) && $timer == 2) { // main lang prefix - $lang = $this->langPrefix . '_CONFIG'; + $lang = CFactory::_('Config')->lang_prefix . '_CONFIG'; // start building field set for config $configFieldSets[] = Indent::_(1) . " PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER - 14th February, 2023 + 15th February, 2023 Llewellyn van der Merwe joomla@vdm.io 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.1.0 + 1.1.2 PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION diff --git a/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.ini b/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.ini index e9765af..17ce37b 100644 --- a/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.ini +++ b/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.ini @@ -1,7 +1,7 @@ PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER="Extension - Componentbuilder Export Compiler" PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_DESCRIPTION="This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field. Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab." -PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Export Compiler (v.1.1.0)

This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field. +PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Export Compiler (v.1.1.2)

This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field. Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab.

Created by Llewellyn van der Merwe
Development started 21st August, 2019

" PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_SETTINGS="Settings" PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options" diff --git a/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.sys.ini b/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.sys.ini index e9765af..17ce37b 100644 --- a/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.sys.ini +++ b/language/en-GB/en-GB.plg_extension_componentbuilderexportcompiler.sys.ini @@ -1,7 +1,7 @@ PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER="Extension - Componentbuilder Export Compiler" PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_DESCRIPTION="This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field. Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab." -PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Export Compiler (v.1.1.0)

This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field. +PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="

Extension - Componentbuilder Export Compiler (v.1.1.2)

This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field. Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab.

Created by Llewellyn van der Merwe
Development started 21st August, 2019

" PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_SETTINGS="Settings" PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options"