Translations of events are not published in LanternFish component via frontend.
There is a patch below how to solve it.
Could you please include it into the next JEvents release?
JEvents v.3.4.14
LanternFish v.1.3.8
Steps to reproduce:
1) Follow JEvents > Configuration > Permissions > set Publish/Manage Events = 'Allowed' for tested group (better do not use SuperUser for clean testing)
Enable User Authorization = No
Publish Own = Yes
2) Login your site under the user that has permission to publish events.
3) Open 'Create new event' form. Type title in origin language, Save. Switch to English interface (which is language of translations), type title in English, Save
Expected result: title displays in English if English UI.
Actual result: title displays in original language in English interface.
In the backend of LanternFish translation of title exists but not published.
To solve this problem the following line should be added in JEvents file components/com_jevents/libraries/iCalEvent.php
(lines location 116-121)
$db = JFactory::getDBO();
+ $this->_detail->state = $this->state;
$detailid = $this->_detail->store($updateNulls);
if (!$detailid){
JError::raiseError( 104, JText::_( 'PROBLEMS_STORING_EVENT_DETAIL' ));
There is a patch below how to solve it.
Could you please include it into the next JEvents release?
JEvents v.3.4.14
LanternFish v.1.3.8
Steps to reproduce:
1) Follow JEvents > Configuration > Permissions > set Publish/Manage Events = 'Allowed' for tested group (better do not use SuperUser for clean testing)
Enable User Authorization = No
Publish Own = Yes
2) Login your site under the user that has permission to publish events.
3) Open 'Create new event' form. Type title in origin language, Save. Switch to English interface (which is language of translations), type title in English, Save
Expected result: title displays in English if English UI.
Actual result: title displays in original language in English interface.
In the backend of LanternFish translation of title exists but not published.
To solve this problem the following line should be added in JEvents file components/com_jevents/libraries/iCalEvent.php
(lines location 116-121)
$db = JFactory::getDBO();
+ $this->_detail->state = $this->state;
$detailid = $this->_detail->store($updateNulls);
if (!$detailid){
JError::raiseError( 104, JText::_( 'PROBLEMS_STORING_EVENT_DETAIL' ));