Prevent headings from being translated

This topic contains 9 replies, has 2 voices, and was last updated by  Stiofan O’Connor 6 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #393020

    Mandy Moore
    Buyer
    Post count: 67

    I am using the Transposh plugin and i want to prevent the titles of listings from being translated. The Transposh faqs states

    The code HTML tag will also prevent translation:

     $this_code_won't_be_translated 

    but where do i put the code tag please?

    #393022

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Mandy,

    I don’t really understand what you mean, can you link me to the page where that is stated?

    We only support WPML and not transposh so i have not really dealt with it much.

    Thanks,

    Stiofan

    #393035

    Mandy Moore
    Buyer
    Post count: 67

    Hi, this is the FAQ page on Transposh
    https://transposh.org/faq/
    My listings are either posted in Spanish or English and I do not want the title of the listing to be translated
    i am guessing that it is the geodir-entry-title which needs to somehow be set to not translate.

    #393040

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Mandy,

    I am not sure how compatible tranposh will be but if you provide example links of the problems and wp-admin details in a private reply (only staff can see) then i will take a look.

    Thanks,

    Stiofan

    #393045

    Mandy Moore
    Buyer
    Post count: 67
    This reply has been marked as private.
    #393052

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the info.

    I added the pluign “code snippets” and added the following code snippet to fix this for you:

    
    
    add_filter('geodir_page_title_class','_my_gd_title_class');
    function _my_gd_title_class($class){
      $class .= " no_translate ";
     return $class; 
    }

    Thanks,

    Stiofan 🙂

    #393054

    Mandy Moore
    Buyer
    Post count: 67

    Thank you so much 🙂 🙂

    #393059

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are welcome! Have a good weekend! 🙂

    #393060

    Mandy Moore
    Buyer
    Post count: 67

    Ah, that has worked on the listing detail page, but not on the main listing page. Or will it only work on future listings?

    #393070

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have added another filter but it might be too unspecific as it covers more than the title, please have a check.

    Thanks,

    Stiofan

Viewing 10 posts - 1 through 10 (of 10 total)

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

Open Support Ticket