• Resolved krisleenb

    (@krisleenb)


    Hi There,

    The language switch doesn’t work anymore, the default language is English, the language is switched and found the following 2 problems

    1. the URL changes to https://iseegogo.com/zh/#TRPLINKPROCESSED;
    2. The correct way to display product prices is “From: 15.00$ / month” (example), but it is displayed as a string of characters !trpst#trp-gettext data-trpgettextoriginal=2#!trpen#From: 15.00$ cada #!trpst#trp-gettext data-trpgettextoriginal=6#!trpen#6 meses#!trpst#/trp-gettext#!trpen##!trpst#/trp-gettext#!trpen

    I am using a siteground server with caching enabled and have tested that turning off some of the cache can solves the problem. However, shutting down the cache to solve the problem is not a reasonable solution, so I am asking for help on how to solve the problem.

    Regards

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

    (@alexcozmoslabs)

    Hi,

    1. 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). It caches 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. Solution: removed the cache from the theme.

      What works?
      – 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.
      – On non-dynamic links, it would work with exclude selectors from translations features from TP Settings ➝ Advanced tab.

    2. Most of the time, these broken strings appear because of a conflict with other plugins or combinations of plugins. Due to the vast size of the WP market, these issues are difficult to control.
      What you can do in this situation is to identify the original string, the strings from the default language that becomes broken in the additional language, and add them in the Exclude Gettext String feature from TP Settings –> Advanced tab. Leave the domain textbox empty first (the domain can be found in parenthesis below the actual string when you select it in the list of strings from Translation Editor). This should get rid of the #trpst wrappings.
    Thread Starter krisleenb

    (@krisleenb)

    Thank you! I tried and couldn’t solve the problem completely. Two other cases have been found so far

    1. The problem can be temporarily solved by updating the any settings including the cache and TP. But after a while the problem will appear again.
    2. When I go to the edit page of elementor, the TP works fine in the edit page.

    I have deactivated all cache functions to ensure that the multilingual features of the site work properly

    Plugin Support Alex

    (@alexcozmoslabs)

    We have to take the pulse of this ticket. Is there still an issue?
    In the meantime, I set this ticket as Resolved. You can also change its status back to unresolved and let us know by replying to this topic if your reqeust still needs attention.
    Another option is to let this ticket as it is and open a new one where to mention the issue again and ask for support.

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

The topic ‘language switch doesn’t work’ is closed to new replies.