Search for places written in different languages – incorrect result

This topic contains 24 replies, has 3 voices, and was last updated by  Alexander Krutov 5 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #499048

    Alexander Krutov
    Expired Member
    Post count: 652

    Can I switch the map language to match the interface language?

    #499250

    Alex Rollin
    Moderator
    Post count: 27815

    That can only be set to a single language.

    #499321

    Alexander Krutov
    Expired Member
    Post count: 652

    What 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’ );

    #499435

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks for sharing!

    I made a note of the idea and your snippet and the developers will consider it for a future version.

    #499446

    Alexander Krutov
    Expired Member
    Post count: 652

    I’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-map

    #499564

    Kiran
    Moderator
    Post count: 7069

    Hi Alexander,

    I checked and language filter is working fine. Please provide us admin & FTP credentials so we can check there.

    Kiran

    #499571

    Alexander Krutov
    Expired Member
    Post count: 652

    Kiran, good afternoon! I’ll prepare more translations and then give you access.

    #499924

    Alexander Krutov
    Expired Member
    Post count: 652
    This reply has been marked as private.
    #500527

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #500573

    Alexander Krutov
    Expired Member
    Post count: 652

    Thank you.

Viewing 10 posts - 16 through 25 (of 25 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount