Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 7 replies, has 2 voices.

Last updated by Subash Chandra Poudel 2 years, 10 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
April 21, 2022 at 9:03 am

liseL-5
Site owner

Hello, I already had a chat earlier today regarding an error message that's been solved. However i still have another issue regarding the same page. A lot of the content of the page is not visible in the ATE, so i cannot translate it. I've made a screencast to show you what's going on. hidden link
and this is the affected page ( published in English, i translated in french already).
hidden link

April 21, 2022 at 10:33 am
April 21, 2022 at 2:45 pm #11065977

Subash Chandra Poudel

Hi there,

After further troubleshooting I see:

- Setting up a new Accordion element on a new page and translating it with ATE works all good so the issue seems to be only with the FAQ page.
- When the String Translation plugin is deactivated, the Accordion texts on the page then become available at ATE.

This is a strange issue so for further troubleshooting, I have escalated the issue to our 2'nd tier support along with your dev site credentials. We will send you an update here as soon as possible. Thank you for your patience in the meantime.

Regards,
Subash

April 25, 2022 at 6:49 am #11087883

liseL-5
Site owner

Hi Subash,
Thanks, any idea when we can expect a resolution? We've removed all the plugins and theme on our staging site at your request (this wasn't the cause of the issue though). This means we also can't test other developments and projects on our staging site until you've resolved the translation issue...
We'd be grateful to have an estimated time for completion.
Thanks,

April 25, 2022 at 11:53 am #11089935

Subash Chandra Poudel

Hi there,

After further troubleshooting the issue on your Dev site, I see the first row of the page is causing problems with WPML.

If you remove the row with accordions below "Contact", "Buying Botanopia Products", and "Shipping and Returns" the rest of the page content is available on the translation editor, and it works fine. I tried isolating the code for that section and checking further, but I was not able to pinpoint the issue. Most probably the HTML or Shortcode in that section is broken, and that is causing problems during translation.

Can you please back up the live site to prevent any data loss, remove the first three accordion sections or rebuild them on the page, and see if the translation works for you?

Please let me know how it goes for you or if you need further help with the issue.

Regards,
Subash

April 25, 2022 at 1:45 pm #11090483

liseL-5
Site owner

Hi Subash,
I see you made a couple of test pages in the dev site. Which one of the test pages is now working for you? I tried to translate both, but for both, most of the content is missing in the translation editor...

You mentionned : "If you remove the row with accordions below "Contact", "Buying Botanopia Products", and "Shipping and Returns" the rest of the page content is available on the translation editor"... but that's about 75% of the content of the page... so, not really an option for me to just remove it. I checked the code and don't see any broken html or shortcode... can you be more specific? This is a key page for our users, so i really need it to work and be translated.

April 25, 2022 at 3:16 pm #11091033

Subash Chandra Poudel

Hi there,

I thought some broken code or shortcode was breaking the translation, but I could not find the exact code before.

After looking into the issue further, the problem seems to be caused by:

- The hide_from_wholesale and wholesale_content shortcode in the page wrapping some content.

- The emoji with the following code in your "Do you have a question, or do you need help? Get in touch!" and "Where can I buy Botanopia products?" Accordion sections.

😉 <0xa0> 

To fix the issue I duplicated the "FAQ bakery test" page to "FAQ bakery test – FIX" page and did the following:

- Removed the emoji from the accordion sections.
- Added the following code at WPML -> Settings -> Custom XML Configuration page to support the custom shortcodes.

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>hide_from_wholesale</tag>
    </shortcode>
    <shortcode>
      <tag>wholesale_content</tag>
    </shortcode>
  </shortcodes>
</wpml-config>

Regards,
Subash

April 28, 2022 at 6:06 am #11110739

liseL-5
Site owner

Hi Subash,
Thanks. So, does this mean that content with emojis can never be translated with WPML?

April 28, 2022 at 8:49 am #11112301

Subash Chandra Poudel

Hi there,

Glad I was able to help.

I did a quick test and Emoji in content is translateable with WPML.

In your case, it could be due to the Emoji encoding or database collation causing server issues.

We try to handle only one issue to make it easier for supporters and other users to search for issues. Since the original issue of this ticket is resolved please consider this thread as resolved.

I recommend you to test a new or the same page with emoji content and see if that causes any issues. If yes, please feel free to open a new ticket for us to further troubleshoot that issue.

Regards,
Subash