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"