Skip to main content
Le panier est vide

How to translate SP Page Builder module

This article will explain how to translate sp page builder module, this is tested with sp page builder version 3.6.4 pro

Since SP PageBuilder 3.7.11 this change are no more necessary

sp page builder module translation 1

The translation don't work by default with module you have to modify a file in sp page builder.

The file is modules/mod_sppagebuilder/fields/pagebuilder.php

You have to change the file like this : only line 2 and 12 need to be added  (line 55-65 in the original file)

// Addon List
$addons_list    = SpAddonsConfig::$addons;

//sbou
Joomla\CMS\Plugin\PluginHelper::importPlugin('system','sppagebuildertranslate');
//fin sbou

foreach ( $addons_list as $key => &$addon ) {
   $default_value = SpPgaeBuilderBase::getSettingsDefaultValue($addon['attr']);
   $addon['default'] = $default_value['default'];
   //sbou
   Joomla\CMS\Factory::getApplication()->triggerEvent('onBeforeAddonConfigure', array($key, &$addon));
   //fin sbou
}

$globalDefault = SpPgaeBuilderBase::getSettingsDefaultValue($global_attributes);

After this change the languages tab is available on all supportd addon's (see Blockquote) Below.

sp page builder module translation 2