• Resolved 69purelove69

    (@69purelove69)


    Hello Greg!

    Another translation questio.
    I manually translated the Authors plugin using Locotranslate but can’t seem to be able to translate the “Ads – Profile – Contact” tabs as well as the messages it displays when I click on contact, namely “The author do not agree to contact him using contact form” and “your message has been sent”

    Screenshot here: https://prnt.sc/pdn47m

    I tried looking around in the contact form plugin and core plugin and was unable to find the source of these words to translate. Help would be appreciated! Thanks 🙂

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the “Ads”, “Profile” and “Contact” tabs are not marked for translation correctly i am afraid, this will be fixed in next release.

    In the meantime you would need to translate them directly in file wpadverts-authors/includes/class-wpadverts-authors.php on line about 855 to 870.

    The messages however seem to be marked correctly and you should be able to translate them.

    The full phrases to translate are

    
    Your message has been sent.
    

    and

    
    This Author do not agree to contact him using contact form.
    

    If the phrase you are translating has a different interpunction letter casing or if differes from the phrase to translate in any way then it will not be replaced.

    If you are using Loco Translate you can make sure your phrases list is up to date by clicking “Sync” button when translating the Authors.

    Thread Starter 69purelove69

    (@69purelove69)

    Hi, using the “sync” button worked! Thank you!!

    Another translation question, for the Mark as sold add-on,
    – how do you translate the words in the buttons for “sold” and “for sale”?
    – how can I change the color of the background of the notification text (white on yellow is not very easy to read)
    – also when I put an ‘ aprostrophe symbol in the top and bottom notification text it ads \in the final text… any ideas?

    Screenshot here: https://prnt.sc/pemby3

    Thanks!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. the words “Sold” and “For Sale” are marked for translation correctly so you should be able to translate them using Loco Translate (when translating Mark as Sold extension) or using Say What? plugin.

    2. to change the background and text color go to wp-admin / Appearance / Customize / Additional CSS panel and add there the code below

    
    body div.adverts-flash-messages.adverts-flash-warn {
      background-color: orange !important;
    }
    body div.adverts-flash-messages.adverts-flash-warn .adverts-flash-message-icon:before,
    body div.adverts-flash-messages.adverts-flash-warn .adverts-flash-message-text {
      color: black;
    }
    

    3. this seems to be a bug in the MAS extension we will fix that in next release, in the meantime you can resolve it by opening file wpadverts-mark-as-sold/includes/class-wpadverts-mas-admin.php go to line about 197 and replace

    
    $form->bind( $_POST );
    

    with

    
    $form->bind( stripslashes_deep( $_POST ) );
    
    Thread Starter 69purelove69

    (@69purelove69)

    Thanks Greg! All your fixes work perfectly! I updated to 1.0.2 and Loco translate worked 😀

    Plugin Author Greg Winiarski

    (@gwin)

    Ok great, i am glad you have it fixed :).

    I am marking this thread as resolved then.

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

The topic ‘Author profile translation’ is closed to new replies.