• Resolved geekayhu

    (@geekayhu)


    Hi there,

    this thread was opened over a month ago, but due to no answer, I had to re-post again, as it’s driving me crazy and is ridiculous.

    The translations with inline formatting, e.g. “strong” or “em” AND translated as one block (vs split text) won’t render on the live site when switching language, so some parts of the text remain the original language (Hungarian, in our case)

    see attached IMGBB screenshot link:
    https://ibb.co/74YHhMj

    – it also happens in the footer area as well, and throughout the whole site, especially on the product pages, where there are an immense amount of scientific information.

    If I switch back to split text, it works, but translating full (!formated) blocks sentence by sentence or even word by word (as split text) due to this bug is way over time-consuming (because the translations are previously written, so blocks are just copy/pasted and formated via bold or italic if needed, inline!)
    BTW, we already had to start doing it (split the blocks back to simple/split text), since most of the articles and products scientific info are (now were) inline-formated, but since they remain in the original language when switching language, it is useless and takes a lifetime to translate (re-edit/upload) word by word (or sentence by sentence). So we rather cleared formatting (strong/em), so the plugin will take it as one block (thereby the emphasized info disappears as well).

    Please, please take a look at the site (and the screenshots), because
    – 1) retranslating (mean re-editing) the whole site (which btw. WAS working fine previously) is time AND money-consuming, and/or
    – 2) when new articles/scientific info is published, translating formatted content only as split text takes forever.

    We also tried to deactivate, and reactive the other plugins, if there’s an incompatibility issue with one of them, but no success.

    Thank you in advance
    Gabe

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dragos

    (@dragosvrejiu)

    Hello Gabe,

    We apologize for the delay.

    One approach would be to wrap the page’s content with a translation block:
    https://translatepress.com/docs/translation-editor/#translation-blocks

    <div class=”translation-block”>
    Translate everything <div>inside</div>
    </div>

    You have to keep in mind that the entire content will merged into one string, so any changes made to the original text will invalidate your translation.

    Another approach would be to use our Conditional Shortcode:
    https://translatepress.com/docs/translation-shortcode/

    Please let me know if this suits your needs.

    Best regards,

    Thread Starter geekayhu

    (@geekayhu)

    Hi there,

    well, thanks for your reply but what you just suggested does not work, which by the way turned out to be an incompatibility issue with Rank Math and TP. So particularly the translation block itself does not work.

    Just to make it clear: what happens is, text translated as a block will not render in the live site, only shows up in the TP editor mode, see screencast video:

    https://drive.google.com/file/d/1o3piQY6-yYDcFbV65z8MEYBBhdXBO_YO/view?usp=sharing

    BUT it also shows that deactivating Rank Math solves the problem. So it is weird, because the 1st time we deactivated all the plugins to see if there’s an incompatibility issue only with TP, it did not show, just after several attempts.

    Anyway, it’s been being handled by Rank Math support team now, who might reach out to your support team if needed.

    (Unfortunatelly 2 other open tickets are still to be solved;
    1) Elementor dynamic content (in our case: username) is not dynamic (but simple txt string) in TP editor, so can’t use/translate that for different logged-in users.
    2) when 2nd language is set, Woocommerce logout returns with 404 error; but these are other open tickets)

    Have a great day
    Regards
    Gabe

    Thread Starter geekayhu

    (@geekayhu)

    Issue resolved

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

The topic ‘translating as block won’t render (vs split text)’ is closed to new replies.