• Resolved gendreausch

    (@gendreausch)


    I propose my webpage in two language (German/English). All is set-up for German and English in WordPress (using the TranslatePress plug-in). English text is saved. In some cases the page appears in English, when users select english in the switcher button. But when switching then between the two languages, then suddenly the english version is not anymore translated and shows the German version. All should be set-up, I deleted the web caches after my edits to the page, but there seem to be a bug somewhere or one setting in the plug-in is not correct. Did anyone observe the same behaviour? I designed my webpage with an AI-assistant from WordPress, I didn’t write the code myself. Thank you for the support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Daniel

    (@danieldandu)

    Hello @gendreausch ,

    Thank you for reaching out.

    Could you please share a link to the specific page(s) where this issue occurs?

    It’s important to mention that TranslatePress stores translations directionally in your local database – from the default language to the additional language.

    As a result, your translations should not disappear unless one of the following occurs:

    • The content in the default language was modified,
    • Changes may have been made to the site’s languages,
    • Any translations were manually deleted,
    • Or changes were made directly to the database.

    It’s also necessary to check in the Translation Editor – if you select a string that appears untranslated on the site, does it show as translated there?
    It’s important to check a string that you’re certain was previously translated.

    Let me know if any of the situations mentioned above occurred.

    Thread Starter gendreausch

    (@gendreausch)

    Hi Daniel, thank you very much for your willingness to support. The link of my webpage is the following: Dr. S.Gendreau-Schumann – Quality & Audit Consulting

    I didn’t make changes the last days of the content of the default language. In the TranslatePress editor in the tab “General”, the option: “Force language in custom links” is already activated. My page is a single “landing page” (the only links that open in a separate tabs are the ones in the footer).

    When I switch back and forth languages: German -> English (content not translated) -> German, then my URL has the following extention: …de/#TRPLINKPROCESSED

    I hope it will help. Thank you and have a good day!

    Plugin Support Daniel

    (@danieldandu)

    Hi @gendreausch ,

    Thank you for the details and for sharing your website.

    First, please check if you have the latest version of TranslatePress Multilingual, V 3.1.2.

    What does the #TRPLINKPROCESSED tag mean?
    – In PHP, we take the default page and parse it (we go through each HTML element and look for translations). We do the same with URLS. There are some pages where you find a URL several times, or there are some URLs that are generated by functions like get_permalink. We put #trplinkrprocessed on the ones we process. So, if a URL comes up again, it will be ignored. At the end, we have a script that removes all #trplinkprocessed.

    Why does the #TRPLINKPROCESSED still appear?
    – They appear because we failed to complete the stripping.
    – There are some themes (themify — has caching) that cache the page_id. We don’t change the page_id and it’s possible that the page_id is being served. If it was caching on the URL it would take into account the language parameter.

    How to debug?
    – Remove the cache from the theme
    – Compatibility test — there are other plugins that read HTML like TP, and it’s possible to break our code, and those will throw #trpgetext and #trplinkprocessed will appear. *Briefly* disable all other plugins and enable the default Twenty Twenty theme. Please also disable all add-ons. If this fixes the problem, enable everything one by one or in small bulks, checking each time to see when the problem returns.
    – Try replicating with the plugin that generates the URLs.
    – On non-dynamic links, it would work with exclude selectors from translation features from TP Settings ➝ Advanced tab.

    Let me know how this goes.

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

You must be logged in to reply to this topic.