Jcomments-Recaptcha2 icon indicating copy to clipboard operation
Jcomments-Recaptcha2 copied to clipboard

Multilingual comments problem

Open stoner-city opened this issue 5 years ago • 6 comments

On a multilingual site comments on the same article (language: all) are displayed only in the actual language. How to show all comments in different languages at once?

stoner-city avatar Feb 18 '20 14:02 stoner-city

Hello! Did you edit settings for each language in Jcomments?

exstreme avatar Feb 18 '20 15:02 exstreme

Yes I did. But on the german site only the german comments are shown and vice versa on the english site - have a look at the screenshots. german english

stoner-city avatar Feb 18 '20 15:02 stoner-city

Recaptcha isn't work on hidden form. Can you take screenshots with jcomments captcha settings in English and Germany version ?

exstreme avatar Feb 18 '20 15:02 exstreme

I think we are talking about two different things?! The captcha is working fine what I need is that on an article set to all languages shows all comments that where posted no matter what language. I have made a screenshot from the db have a look at object_is 38. The comments are posted on the same site but a German user can only see the German comments and the English user only the English comments. I want to show all comments on this article. If I uncomment the Multilingual query in models/jcomments.php (line 291) it will do what I want. if (JCommentsMultilingual::isEnabled()) { $language = isset($options['lang']) ? $options['lang'] : JCommentsMultilingual::getLanguage(); $where[] = "c.lang = " . $db->Quote($language); } db__jcomments en_site de_site

stoner-city avatar Feb 19 '20 08:02 stoner-city

I think, you need using separate plugin, which can allow all comments

exstreme avatar Feb 19 '20 19:02 exstreme

I think, you need using separate plugin, which can allow all comments

No. JComments save a site language for comment, not an article language. We can fix it in https://github.com/exstreme/Jcomments-Recaptcha2/blob/Develop/site/classes/multilingual.php#L57 by adding database query to select article language.

Globulopolis avatar Apr 28 '20 12:04 Globulopolis