Aris Vernardos
Forum Replies Created
-
AuthorPosts
-
Thank you!
Thanks Stiofan!
Thanks Guust. Sorry but I develop it offline (XAMPP) so you can’t look at it.
Dear Paolo,
if you are going to release an update, you could add another change in the same file:
Line 568:
$breadcrumb .= $separator.’‘ . ucfirst($post_type_info->label) .’‘;
should change to:
$breadcrumb .= $separator.’‘ . __( ucfirst($post_type_info->label), GEODIRECTORY_TEXTDOMAIN ) .’‘;
so the post type (places) could be localized, too (which is nice).
There is no need to argue, though. I have a fantastic plugin (for free). So THANK YOU!Hi Paolo and thank you for your answers.
Polylang offers the option to sync data between posts and pages (such as featured image). But fails with geodirectory. Never mind, I can add manually the records.
Regarding your second message about the breadcrumbs, unfortunately it didn’t work.
Fortunately, I found the solution. In general_functions.php:
Line 607:
$location_term_actual_region = $location_info->region;
should change to:
$location_term_actual_region = __( $location_info->region, GEODIRECTORY_TEXTDOMAIN );
Line 609 (the same):
$location_term_actual_city = $location_info->city;
should change to:
$location_term_actual_city = __( $location_info->city, GEODIRECTORY_TEXTDOMAIN );
I think you should include these changes to the next update, because it is important (for SEO purposes) to have the breadcrumbs localized.
Thanks again.Thank you for your answer. Well, I can think of a workaround, it’s ok. I just wanted to find a more solid solution.
But there is another issue, which I believe you can help me. I cannot find a way to translate the region and the city in the breadcrumbs. I don’t see the strings in polylang’s strings translation tab (polylang is similar to wpml). So I tried to make a wpml-config.xml file like this:
<wpml-config>
<admin-texts>
<key value=”geodir_default_location”>
<key value=”city” />
<key value=”region” />
</key>
</admin-texts>
<wpml-config>
but didn’t work. Did I do something wrong? Or there is a bug?
Thanks again!Thanks Stiofan for the fast reply! I suspected this but I was not sure.
-
AuthorPosts