• Resolved pekos

    (@pekos)


    Hi

    I have seen in several places that by enabling “Native WooCommerce product editing screen” I can be able to translate products and more specifically custom product tabs. There is no such option in the latest WPML and Multilingual Woocommerce. You are stating WPML compatibility. Can you explain how i can translated custom tabs with full text editor and not single line (not easy to use interface)? How can I enable the text editor while editing product with the WPML translator?

    Thanx

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @pekos,

    We’re working on that. We’ve been working with WPML for over a year trying to get compatibility. Currently there is a beta version with a full editor but it is not released yet; we’re waiting until we have full functionality for saved tabs.

    We’ll let you know when this is released.

    All the best,
    Kevin.

    Thread Starter pekos

    (@pekos)

    Hi @yikesitskevin

    any news on this issue? Can you post some custom wpml-config I can use to be able to translate text in fields like
    field-yikes_woo_products_tabs-0-content etc. etc.

    I need this soon.

    Thanx

    Thread Starter pekos

    (@pekos)

    Hi @yikesitskevin

    can you please post an update on this issue? I am working with WPML and the appearance on the translated language is not good. The pluging is not functioning correctly. What can I do to resolve the problem.

    Thanx

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Unfortunately there is no update on this.

    Thread Starter pekos

    (@pekos)

    Hi @yikesitskevin

    when should we expect WPML integration? Tabs are not displaying nice at all when markup and shortcodes are used.
    Can you please look into this?

    Thanx

    @pekos,

    Could you post a link to one of the pages you’re having issues with?

    – Freddie

    Thread Starter pekos

    (@pekos)

    Hi @fmixell

    please check the following page, second tab
    https://testwp.uplab.gr/προ??ντα/διαχε?ριση-π?νου/biolevox-neuro-tablets/

    then switch to english and check the second tab and the one called brochure (this one contains <br /> markup that is not compiled)/

    The second tab contains “easy tables” plugin shortcodes. These are not processed at all. However if the translation field was a text field then i suppose the markup would be processed normally.

    Thanx

    @pekos,

    The issue is that the markup for your tabs are completely different. On the english version everything is forced into the <tfoot></tfoot> element instead of the head and body and I can see they’re not in the correct order.

    I would contact the author of the Easy Tables plugin and see if they can figure out why this is outputting different code.

    – Freddie

    Thread Starter pekos

    (@pekos)

    Hi @fmixell

    please check the 5th tab in both Greek and English. The Greek text in the 5th tab contains also <br>, while in the English this is completely removed.

    I am posting here also the text in the translation field of the custom tab:
    [download-attachment id=”2802″ class=”uplab-button”]<br />[download-attachment id=”2804″ title=”Αξ?α Biolevox Neuro tb στη φυσιοπαθολογ?α του νευρ?να” class=”uplab-button”]<br />[download-attachment id=”2803″ title=”Κλινικ? μελ?τη (abstract) συμπεριφορ?? Biolevox Neuro tb σε ασθενε?? μετ? απ? δισκεκτομ?” class=”uplab-button”]

    The above is the english one (tranlsated) and you can see there are <br> but they are not processed in the browser.

    Please check again.

    Thanx

    The way our plugin adds your product tabs in is by hooking into WooCommerces filter ‘woocommerce_product_tabs’. This allows you to get all the current tabs, which by default is the description and additional information, and add more tabs. These tabs are then applied in the same manner as WooCommerce adds your default tabs.

    The issue with <br/> tags not working is most likely due to the WordPress editor stripping them out.

    Here’s an article with a filter you could use to possibly fix your issue.

    https://www.wpgarage.com/code-snippets/stop-stripping-line-breaks-wordpress-editor/

    For the issue with the tables not working I would try out this plugin: https://www.ads-software.com/plugins/error-log-monitor/

    This will show you what errors are happening. Go to the english version of the page and refresh once you’ve activated it and see if you can find any errors.

    – Freddie

    Thread Starter pekos

    (@pekos)

    Hi @fmixell

    to my understanding the problem is that custom tabs are edited in the backend with the use of an html editor, however WPML is not configured (or fully integrated) to use HTML editor and is giving the user the only option to use text editor, which of course rejects all kinds of markup or shortcodes. For example if in the translated field I use blah blah blah then in the fronted markup is treated like text and therefore printed.

    I am almost certain that if WPML allows to use HTML in the custom tabs TOO (it does for the description and other fields) then all issues are history. Hence this is what everyone (i guess) is expecting for full integration which is not there yet (at least according to @yikesitskevin and WPML).

    Now the question is, is there any way (possibly WPML XML configuration) that will allow custom tabs text fields to support HTML ? To my understanding this is the easiest fix for the moment.

    Thanx

    There is a plugin that could help you out, https://github.com/OnTheGoSystems/multilingual-tools/releases

    I would not run this on a production environment. Are you able to work locally?

    If not, check out this documentation from WordPress on working locally. This will allow you to make changes and test new approaches without worrying about breaking your site.

    https://developer.www.ads-software.com/themes/getting-started/setting-up-a-development-environment/

    Also, I’m partial to Local By Flywheel. If you’ve never done local development it will probably be the easiest to setup for you.

    https://localbyflywheel.com/

    Thread Starter pekos

    (@pekos)

    Hi @fmixell

    thanx for the answer but unfortunately these are not good options for me.
    Please consider posting here an example like the following and/or additional contributing code that will assist the wpml-config.xml below:

    <wpml-config>
        <custom-fields>
            <custom-field action="translate" style="visual">field-yikes_woo_products_tabs-0-content</custom-field>
            <custom-field action="translate" style="visual">field-yikes_woo_products_tabs-1-content</custom-field>
        </custom-fields>
    </wpml-config>

    The above obviously is not working for me, but maybe this can be used as the basis for something functional. My target is to be able to use “visual” (rich text) editor and not “line”.

    Thanx

    Thread Starter pekos

    (@pekos)

    Hi @yikesitskevin and @fmixell

    is there any update on the WPML issue?
    What’s the use of such a plugin if it does not allow you to translate to other languages?

    I have seen threads related to translations and WPML issues specifically and they are going on for more than 2 years. Do you have any plans to integrate with WPML? This is a must and I cannot wait anymore.

    thanx

    Freddie

    (@fmixell)

    @pekos,

    I’m going to reach out to WPML and see if they could let me have a copy of their latest version so I could test against it.

    However, if you’d like a plugin that works automatically for translations I found Weglot to be very easy. I just added this plugin to my development site and I was able to translate my entire site into Spanish within 2 minutes.

    https://www.ads-software.com/plugins/weglot/

    Cheers,
    Freddie

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Translation with WPML’ is closed to new replies.