By Martin on Saturday, 08 October 2016
Posted in General
Replies 3
Likes 0
Views 268
Votes 0
Hi!
Im an old user of Easyblog, since v3.
Then, i used Falang (marvellous) to provide same content in Spanish and English in my website.
Stephane Bouey, creator of Falang, made a plugin to be able to translate Easyblog with his component.
http://faboba.com/en/composants/falang/extensions/alphaindex/content-element/e.html

Some days ago i had to update to new Easyblog v5, and for some reason Falang couldnt show translated content on the frontend. So Stephane made a fix, that if applied to Easyblog it allows to be translated again.

in this file:
administrator\components\com_easyblog\includes\post\post.php


Arround line 560, just bellow
$workbench = $this->revision->getContent();


you have to add:
//sbou
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_falang/classes/FalangManager.class.php')) {
$default_site_language =JComponentHelper::getParams('com_languages')->get("site","en-GB");
$JLang = JFactory::getLanguage();
$currentLanguage = $JLang->getTag;
if($currentLanguage != $default_site_language ){
$workbench=null;
}
}
//fin sbou


With this fix the content of EB now it shows translated on frontend again!

As its an easy fix, and im sure there is more that 1 user using Falang with EB, it would be nice if Stackideas team could include this in their code. So we dont have to manualy fix this every time we update.

Regards!
Hello Martin,

Before adding any codes into the core, we actually need to review this first. I will log this into our issue tracker and see if we can add this on the next minor release
·
Saturday, 08 October 2016 02:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Grate Mark!
Would be grate to have default compatibility with Falang!
Ive added Stephane email on the ticket hidden information to keep his privacy. Im sure you can contact him if you need some information abuout his component or the code provided.
Regards!
·
Saturday, 08 October 2016 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Martin
·
Saturday, 08 October 2016 02:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post