Alexander Krutov
Forum Replies Created
-
AuthorPosts
-
I’m talking about a website for many countries. Some countries use more than one language. For example, it is Ukraine. It speaks Ukrainian and Russian. Or it is Kyrgyzstan (Kyrgyz, Russian), Finland (Finnish, Swedish)… Please note that the user may want to find an ad by location in a language other than the one the author was looking for when searching for an address on Google map when creating the ad. If they used different languages, the user will either not be able to find the ad or will find it, but will get the location “Near: GPS Location”, which is very bad.
I haven’t translated all the content of the site yet. When I do, we will create a question with a precise description of the problem. Therefore, I wanted to look at ready-made sites with such functionality, as I am interested.
* Which search pattern did you ask about?
I also saw that the ads have no regions and cities, if I am in the Ukrainian and Russian administrative part of the site. The English version has them. This can be corrected? Should I create a new question for this?
July 24, 2019 at 7:53 pm in reply to: Search for places written in different languages – incorrect result #499446I’m glad you liked my information. But I didn’t come up with the solution. I found it here:
http://qaru.site/questions/14179694/in-wpgeodirectory-when-using-wpml-how-to-translate-the-mapJuly 24, 2019 at 8:27 am in reply to: Search for places written in different languages – incorrect result #499321What about this code? It works the way I need it.
function gd_wpml_default_map_language( $language ) {
return defined( ‘ICL_LANGUAGE_CODE’ ) ? ICL_LANGUAGE_CODE : ‘en’;
}add_filter( ‘geodir_default_map_language’, ‘gd_wpml_default_map_language’ );
Okay. Thank you!
Do I need to use the default language directory? Is there a description of the help for this function?
July 23, 2019 at 6:34 am in reply to: Search for places written in different languages – incorrect result #499048Can I switch the map language to match the interface language?
July 22, 2019 at 9:18 pm in reply to: Search for places written in different languages – incorrect result #498970I started translating the site.
July 22, 2019 at 3:13 pm in reply to: Search for places written in different languages – incorrect result #498924I’m sorry, the last one I answered wasn’t an exact translation.
Did I understand correctly that in order to be able to enter a location in different languages and get the same coordinates and categories, I need to make a multilingual website and translate it into other languages or duplicate publications using WPML? In this case, if the user uses the Ukrainian version of the site and enters the city “Київ”, “Киев” or “Kyiv” into Change Location, he will get the same page of results? Or to get the same page of results, you need to enter “Київ” in the Ukrainian interface, “Киев” in the Russian interface, “Kyiv” in the English interface?
July 22, 2019 at 1:58 pm in reply to: Search for places written in different languages – incorrect result #498913Alex, thank you for the answer!
Did I understand correctly that in order to be able to enter a location in different languages and get the same coordinates and categories, I need to make a multilingual website and translate it into other languages or duplicate publications using WPML? In this case, if the user uses the Ukrainian version of the site and enters the city “Kyiv”, “Kyiv” or “Kyiv” into Change Location, he will get the same page of results? Or to get the same page of results, you need to enter “Kyiv” in the Ukrainian interface, “Kyiv” in the Russian interface, “Kyiv” in the English interface?July 22, 2019 at 12:00 pm in reply to: Search for places written in different languages – incorrect result #498893But when creating a publication and entering city names in different languages, Address Latitude and Address Longitude always coincide.
It is also strange that if you enter the names of countries in Russian or Ukrainian, they will not be found on the map: “Ukraine”, “Ukraine”. Maybe I need to include something in the Google Maps API?
July 22, 2019 at 11:51 am in reply to: Search for places written in different languages – incorrect result #498892This reply has been marked as private.July 22, 2019 at 11:49 am in reply to: Search for places written in different languages – incorrect result #498890This reply has been marked as private.July 22, 2019 at 11:48 am in reply to: Search for places written in different languages – incorrect result #498889This reply has been marked as private.July 22, 2019 at 9:46 am in reply to: Search for places written in different languages – incorrect result #498877I edited the message – I cut out some of the text, and now I can’t send it in a confidential message. Your site says I want to send a second message. How do I send you this text?
July 22, 2019 at 9:42 am in reply to: Search for places written in different languages – incorrect result #498876This reply has been marked as private.July 22, 2019 at 9:41 am in reply to: Search for places written in different languages – incorrect result #498875This reply has been marked as private. -
AuthorPosts