Skip Navigation

[Resolved] View search – translation does not work

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 18 replies, has 2 voices.

Last updated by massimoS527 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#714958

I created a View with custom search: hidden link
when I select English the taxonomies "sesso" "specie" "vita assieme" do not display any results. Everything works in the language of default "Italian".
because ? what should I do ?

(I have to finish the website by Friday)

thank you

#718460
Screen Shot 2018-04-23 at 12.08.10 PM.png

Please go to WPML > Languages and check "Store a language cookie to support AJAX filtering". Let me know if this does not resolve the problem.

#725275

Christian, I did various tests before answering.

I tried but without results.
the view in question is called "creature cerca"

I'd like if you can check with the credentials or you want to write the code.

#728151

Private reply fields are enabled here

#735486

Hi, it seems to be working for me so I must be missing something. Here is what I did:
- I logged in as toolset-support
- I went to WPML > Languages and checked the box "Store a language cookie to support language filtering for AJAX", then saved the change
- I went to /en/user-creatures and I selected "male" in the sesso filter
- The results update to show "amicone". This creature has the "male" term in wp-admin.
- I changed the sesso filter to be "female"
- The results update to show "carotina". This creature has the "female" term in wp-admin.
- I reset the sesso filter to sesso then added a stato filter "Bahamas"
- The results update to show "cipirillo". This creature has the stato-nazione custom field value "Bahamas"
Can you tell me more about the problem? What am I missing?

#736016

if you put the language in Italian in the footer and try the various filters you realize that they do not show all the results.

example: select Italian language and click sex: male. then do the same with the English language and see the difference.

if you try with the last filter "life together" in Italian and English, you see that in English it does not find anything.

#736238

christian, I found the problem!

page : hidden link consists of 2 views: "user creatures" and "creatures look"

in this way if the user login in he sees his creatures inserted and then he can look for the others.
if he does not login in he sees only the other creatures.

I noticed that research in English works well as long as I do not log in.
so the problem is to be found in the "user creatures" view

I do not understand, however, what's wrong!

#736962

example: select Italian language and click sex: male. then do the same with the English language and see the difference...if you try with the last filter "life together" in Italian and English, you see that in English it does not find anything.
I don't see anything wrong here. This is the expected behavior - the results are different in Italian and English because the Creature post type isn't translated. Go to this page: hidden link
Scroll down to the bottom of the post and open the Multilingual Content Setup panel. This post type is not translated, so the posts do not exist in both languages. If you have a question about how to translate posts, wpml.org is the best place to get assistance.

#738562

I do not want to translate the posts!

hidden link
Login - user: test - pass: 12345 and put the language in English.

you'll see that some searches have no posts. if you do not log in, all the searches will find the posts.

#744108
italian.png
english.png

I do not want to translate the posts!
The "Creature" post type is set to "Do not translate" in Multilingual Content Setup. That means the Creature posts will only appear in the results in one language. If you want the Creature to appear in the results in all languages, then you must either translate the post or duplicate it into all languages.

if you do not log in, all the searches will find the posts.
I am seeing something different, so I need step-by-step instructions to replicate this. When I test, the results are completely different in Italian and English. Whether or not I'm logged in makes no difference. To test this on my local clone, I disabled the "Coming Soon" plugin. I checked "Store a language cookie to support language filtering for AJAX." Then in an incognito browser I visited /user-creatures and selected "maschio". The results are shown in the screenshot italian.png.

Then I switched to English in the footer, and the page reloaded. Then I chose "male", and the results are shown in the screenshot english.png. As you can see, the results are different. If you want to show all the posts in all the languages, you must translate or duplicate the posts into all languages.

#748656

thanks Christian, you are always very professional !!!

how can I set that automatically all types of post "creatures" are not translated but copied?

in Settings - multilingual content, there is no content copy!

#762287

Check this document on WPML's website that discusses the new option "Translatable - use translation if available or fallback to default language." You can use this option to always display the default language fallback, but it also means that posts must be created in the default language for this to work.
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/
https://wpml.org/2018/01/wpml-3-9-released/

#801637

Hi Christian,
I asked for help on the wpml website, read what they tell me:
https://wpml.org/it/forums/topic/post-visibili-a-tutti/

thanks
Massimo

#803798

I do not speak Italian so I'm not sure what this says.

#809472

unfortunately I have to ask for a refund of WPML!

can not do a simple thing to make visible to everyone a post!
WPML staff suggests me to enter a code to automatically duplicate all posts and images.

This solution is not good because every post and images are duplicated for each language.