The language of the country name in [gd_locations what="country"]
This topic contains 15 replies, has 3 voices, and was last updated by Alexander Krutov 5 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 12, 2020 at 10:04 pm #530056
Can the country name in [gd_locations what=”country”] be shown in the map language?
February 12, 2020 at 10:08 pm #530057This reply has been marked as private.February 13, 2020 at 5:41 am #530083It would be shown as the name from the Locations table for countries, which you can translate.
February 13, 2020 at 8:45 am #530097I don’t understand your recommendation. I don’t want to change the slug of the country, I’m fine with the slug written in English. I just want the name of Ukraine in [gd_locations what=”country”] to be displayed in the same language as the names of cities and regions – in Ukrainian, because the language of the map is Ukrainian.
Now it is displayed in English in Ukrainian and Russian versions of the site.
What should be done to do this?
February 13, 2020 at 7:50 pm #530183Translate the name of the country to Ukrainian as described in the link above. It is for the name also, not just the slug.
February 13, 2020 at 9:19 pm #530209I’m asking you to explain to me what to do. I translated the countries in the translation file. Now I need to apply the translation to the GeoDirectory – Settings – Locations – Countries page? But then the country slug will be translated and the site will no longer work with links that are already present on resources that link to the site. Do I understand correctly?
http://dl4.joxi.net/drive/2020/02/14/0028/2664/1870440/40/f83c904a7b.png
February 13, 2020 at 10:15 pm #530219Then don’t change the slug, just the title/label.
February 14, 2020 at 7:34 am #530260How do I make sure the slug doesn’t change?
February 14, 2020 at 11:37 am #530310Remind me, please, how the country slug is formed – by plugin or manually? I don’t remember if I translated the slug myself or if this site creates slug countries using the country name?
February 14, 2020 at 6:09 pm #530384Ah, I was mistaken, it does also require changing the slug for the country. The developers are looking into it and will post if they find a workaround.
February 14, 2020 at 6:17 pm #530387I’m glad you noticed that 🙂
February 18, 2020 at 12:21 pm #530989Good afternoon! Just wondering if you have a deadline for this task?
February 20, 2020 at 6:04 am #531339Hi Alexander,
This has been fixed and it will be in next release of Location Manager.
If you have access to files then you can apply patch to fix on your site.
– Open file WORDPRESS_ROOT\wp-content\plugins\geodir_location_manager\templates\loop\location-list.php
– Replace line no. 8foreach ($locations as $location) {with
foreach ($locations as $location) { if ( ! empty( $location->country ) ) { $location->country = __( $location->country, 'geodirectory' ); }– Save file
Let us know.
Thanks,
KiranFebruary 20, 2020 at 9:12 am #531371Good afternoon, Kiran!
This is good, but not what I asked. Now the country name is displayed in the active language of the site. It’s already better than in English, but I asked if I could show the country name in the language of the map. It is important that there is no disagreement in the fact that when the active language of the site is Russian – the country is shown in Russian, and cities and regions in Ukrainian. It is better to show the country in the same language as cities and regions.February 20, 2020 at 9:49 am #531372This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket