Support » Plugin: TranslatePress - Translate Multilingual sites » Skip translation of download URL

  • Resolved mtingle

    (@mtingle)


    Hi Translate Multilingual sites,

    Thank you for an amazing plugin, it truly is amazing!

    I’ve an issue with a automatically created download link working fine in UK mode but when switched to the German translation the download link is modified meaning that German clients get a broken link. Sample code:

    UK: <a href="https://www.avalonrituals.com?do_download=file&filename=04-the-thing.mp3">sample.mp3</a>

    GERMAN: <a href="https://www.avalonrituals.com/de/">sample.mp3</a>

    Is there a way to get the plugin to skip translating these download link anchors?

    Any help greatly appreciated.

    Best regards,
    -Michael

    • This topic was modified 1 month, 4 weeks ago by mtingle.
    • This topic was modified 1 month, 4 weeks ago by mtingle.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Denis

    (@sdenis)

    Hi Michael,

    Please look into this docu:
    https://translatepress.com/docs/developers/exclude-certain-text-or-element-from-being-translated/

    Basically you can use the data-no-translation attribute to mark what part of a div/section/etc you want to exclude from being translated.

    Please proceed with this and tell me if is working.

    Cheers,
    Denis

    Hi Denis,

    Thanks for getting back to me and looking into this 🙂

    The page in question is dynamically created and is part of the my-account section for a customer once they log into the website to view their orders. I don’t have a place to add any code. I use a plugin that provides the user and the admin a place to chat about the order and send text and files. It is the link to the download files that need excluding.

    Is there a way of excluding certain css elements? For instance the element which displays the download link is contained in the DIV class “wooconvo-file-item”.

    If this is possible where would I put the code?

    Many thanks,
    -Michael

    Plugin Support Denis

    (@sdenis)

    Hello again Michael,

    You could go to the translatepress settings > advanced > there youll find “Exclude selectors from translation”
    There you could add the parent of the div/section/whatsoever that include your download link.

    Cheers,
    Denis,

    Hi Denis,

    Thanks for getting back to me.

    I checked the source code and the selectors (<DIV> <span> ) for this chat area amongst others are:

    woocommerce-MyAccount-content
    woocommerce-notices-wrapper
    wooconvo-send
    chat-container
    msg
    chat
    wooconvo-file-item

    I added all the above as single items however I’m still not having any luck, the download links are still not working in German. Is there something I’m not doing correctly?

    p.s. I cleared the cache.

    Best regards,
    -Michael

    • This reply was modified 1 month, 3 weeks ago by mtingle.
    • This reply was modified 1 month, 3 weeks ago by mtingle.
    • This reply was modified 1 month, 3 weeks ago by mtingle.
    Plugin Support Denis

    (@sdenis)

    Hello Michael,

    We deeply apologize for the delayed response.

    There has been a great load on our support team in the past few days, but such a long reply time is very uncommon and your ticket somehow got lost.

    Can you please list the plugins that you are currentlly use so i can debug this further ?

    With the best of regards,
    Denis

    Hi Denis,

    Thanks for getting back to me, it’s appreciated.

    This is the list:

    All in one Favicon
    CategoryTinymce
    Classic Editor
    Count Per Day
    CSS Hero
    Duplicate Post
    Elementor
    Elementor Pro
    Select Extended Widget Options
    Extended Widget Options
    Kadence WooCommerce Email Designer
    Mailchimp for WooCommerce
    MP3-jPlayer
    One.com themes and plugins
    Select Really Simple SSL
    Really Simple SSL
    Simple Page Ordering
    TranslatePress – Multilingual
    UpdraftPlus – Backup/Restore
    WooCommerce
    WooCommerce Custom Product Addons (Free)
    WooCommerce Expand Tabs
    WooCommerce Vendor and Customers Conversation PRO [WooConvo PRO]
    WooCommerce Vendor and Member Conversation [WooConvo]
    WP Avatar
    YITH WooCommerce Featured Audio and Video Content Premium

    Cheers – Michael

    Plugin Support Denis

    (@sdenis)

    Hello Michael,

    Please make a ticket at:
    https://translatepress.com/support/ask-a-presale-question/

    And in the ticket write your main question and atache this link to it.
    https://wordpress.org/support/topic/skip-translation-of-download-url/

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.