Fixed gh-534 so that the correct comment is made in the module area with the GUI placeholders. First steps towards adding multi languages for both modules and plugins gh-503 gh-493 in JCB. Other small improvments to the date helper methods. Add the otpion to target the admin area with modules.
This commit is contained in:
@ -29,7 +29,9 @@ class ComponentbuilderModelLanguage_translation extends JModelAdmin
|
||||
'fullwidth' => array(
|
||||
'source',
|
||||
'translation',
|
||||
'components'
|
||||
'components',
|
||||
'modules',
|
||||
'plugins'
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -905,6 +907,18 @@ class ComponentbuilderModelLanguage_translation extends JModelAdmin
|
||||
$data['translation'] = '';
|
||||
}
|
||||
|
||||
// Set the plugins string to JSON string.
|
||||
if (isset($data['plugins']))
|
||||
{
|
||||
$data['plugins'] = (string) json_encode($data['plugins']);
|
||||
}
|
||||
|
||||
// Set the modules string to JSON string.
|
||||
if (isset($data['modules']))
|
||||
{
|
||||
$data['modules'] = (string) json_encode($data['modules']);
|
||||
}
|
||||
|
||||
// Set the components string to JSON string.
|
||||
if (isset($data['components']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user