Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilingual comments problem #19

Open
stoner-city opened this issue Feb 18, 2020 · 6 comments
Open

Multilingual comments problem #19

stoner-city opened this issue Feb 18, 2020 · 6 comments

Comments

@stoner-city
Copy link

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?

@exstreme
Copy link
Owner

exstreme commented Feb 18, 2020

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

@stoner-city
Copy link
Author

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

@exstreme
Copy link
Owner

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

@stoner-city
Copy link
Author

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

@exstreme
Copy link
Owner

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

@Globulopolis
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants