Translating add-listing

This topic contains 4 replies, has 2 voices, and was last updated by  Paolo 7 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #303279

    Marina Orlando
    Expired Member
    Post count: 22

    Hi, I need to translate a couple of strings in the add-listing page (as swown in the attachment img). So far I’ve tried editing the following .po files: wp-content/languages/themes/it_IT.po – plugins/geodirectory/geodirectory-languages/geodirectory-it_IT.po – themes/mychildtheme/geodirectory/geodirectory-languages/geodirectory-it_IT.po
    I also tried to edit Language.php template in mychild but nothing works.
    Any clue? Thank you.

    #303369

    Marina Orlando
    Expired Member
    Post count: 22

    Ok, I’ve managed to change the address description from the custom post settings but not the placeholder.

    #303756

    Paolo
    Site Admin
    Post count: 31206

    Hi Marina,

    if you have the Google Maps autocompleter enabled, that placeholder is added by Google and can’t be modified. (maybe with jquery, but I’m not 100% sure)

    Otherwise you should find that in :

    plugins/geodirectory/geodirectory-languages/geodirectory-en_US.po

    You should open that file with Poedit, translate the placeholder, save the file as :
    geodirectory-it_IT.po

    That will create the file geodirectory-it_IT.mo (in the same folder where you saved the po file), which needs to be uploaded in wp-content/languages/geodirectory/geodirectory-it_IT.mo.

    Only the mo file as the po files are only to be used to create the translation and the mo file.

    More info here: http://docs.wpgeodirectory.com/translate-core/

    Let me know how it goes,

    Thanks

    #304122

    Marina Orlando
    Expired Member
    Post count: 22

    Thanks Paolo for the explanation. Actually the Google autocompleter was disable but still there was no track of that specific string in any en_US.po or it_IT.po files. So, since one of the possible options I could think of was just to eliminate that particular placeholder rather than editing the text, I managed to achieve it with CSS with this code.

    
    
    #geodir_post_address_row input::-webkit-input-placeholder {
       color: transparent!important;
    }
    
    #geodir_post_address_row input:-moz-placeholder { /* Firefox 18- */
       color: transparent!important;  
    }
    
    #geodir_post_address_row input::-moz-placeholder {  /* Firefox 19+ */
       color: transparent!important;  
    }
    
    #geodir_post_address_row input:-ms-input-placeholder {  
       color: transparent!important; 
    }
    #304257

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you couldn’t find it because you are looking in the wrong po file maybe? It should be geodirectory-en-US.po

    In any case if the CSS does the trick, I’m going to close this topic.

    Let us know,

    Thanks

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

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

Open Support Ticket