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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
- | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
This topic contains 23 replies, has 2 voices.
Last updated by kristoferS-2 2 years, 1 month ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
March 21, 2022 at 9:57 am #10835581 | |
kristoferS-2 |
1. Add a list block |
March 22, 2022 at 6:50 pm #10850967 | |
kristoferS-2 |
& nbsp; (without space) was removed from the title |
March 23, 2022 at 1:18 am #10852233 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, If you would like to translate raw HTML you might better use the Classic Translation Editor instead, as ATE does not output HTML. When testing ATE now I do not see an issue with markers for bold text, italic text, or links and in your example using   appears to be somehow redundant. In fact, I am aware that there exists or existed a marker called <wpml_nbsp> but I am not sure if it is expected to be set when using Gutenberg in such cases like in your example. Do you mean that just some time ago when using Gutenberg the marker <wpml_nbsp> used to always be set in such a case by ATE? In fact, the marker is not appearing on ATE when using Gutenberg, and the " " is not found on the translation in the backend. But I do not really see any issue, as the ATE is converting " " correctly. Do you have an example where this behavior actually breaks the format of the translation? Best regards |
March 23, 2022 at 8:34 am #10854165 | |
kristoferS-2 |
If you inspect the first list item under Whitepapers on my original in Swedish (hidden link) you should see that Office 365 has non breaking space. In the English translation (hidden link) the non breaking space is removed so that "Office 365" breaks after Office instead of before Office. |
March 23, 2022 at 11:57 pm #10862145 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, This is because the English text is one character longer than the Swedish version and the width of the list item causes a line break in the Desktop layout. You can further see that the line break does not occur on mobile view. You can solve this by applying this custom CSS rule: .entry-content li { width: 500px; } Best regards |
March 24, 2022 at 8:59 am #10864475 | |
kristoferS-2 |
I understand that but the point with adding non breaking spaces is to make sure that your content line breaks nicely regardless of the width of the parent container. If WPML removes non breaking spaces from translations that makes for a poor experience. |
March 24, 2022 at 9:13 am #10864569 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, My apologies if I did not explain myself clearly enough. The cause is the CSS of the Gutenberg List Block. You would have the same line-break at this point with any other text as well. The " " can not overrule the CSS of the page's layout. Please see the screenshot attached and let me know if you do have further questions. Best regards |
March 24, 2022 at 10:05 am #10865359 | |
kristoferS-2 |
If you look in the highlighted a tag you can see that the " " has been removed in this translation. I know that these will overrule the CSS and make the box wider, but it will break in a way that is more readable. Now it is like this: What I expect with non breaking space: |
March 24, 2022 at 10:53 am #10866417 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, According to your example, you need to use a <br> tag for breaking the line. hidden link Example: <li>Document management best practices in<br> Office 365</li> Non-Breaking Space   is an HTML character, which may appear as " " and it tells a web browser to create a space between two words without going to the next line. See screenshot for HTML input and output comparison. Best regards |
March 24, 2022 at 2:54 pm #10868923 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Additional to my last message: I will further test the behavior of the <wpml_nbsp> marker with page builders and WordPress Classic Editor and consult our ATE team about this issue. Once I have more details, I will be in contact. Best regards |
March 26, 2022 at 4:35 am #10881455 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Thank you for your patience while I have been looking into this issue. I was able to recreate that the non-breaking space character is removed once we open a translation inside ATE and then replaced the character inside the page's source code with an empty string. This should get solved by our ATE team by including the marker for this purpose shortly. I have escalated the issue to our team and I will be in contact with you once I received further feedback. Best regards |
June 18, 2022 at 11:14 pm #11491003 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, My apologies for the delay in getting back to you. We were not longer able to recreate the reported issue while using the latest versions of our plugins. Could you please let me know if you still experience the reported issue form this ticket? Best regards |
June 20, 2022 at 9:38 am #11497509 | |
kristoferS-2 |
Yes. It seems that the translation without <wpml_nbsp> is stuck in translation memory and I cannot get rid of it. |
June 21, 2022 at 9:47 am #11507065 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Please let me know the title of the pages or posts or translation job IDs and provide me admin access to the site, so that I can have a closer look at those jobs. The private reply form is enabled. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “All In One WP Migration” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Please make a backup of site files and database before providing us access. The steps are also shown in this video: hidden link Best regards |
June 22, 2022 at 7:34 am #11516419 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I have opened the Translation Editor for the given page and I do sadly not quite understand what you are expecting to see? When it comes to Translation Memory, then usually it gets overwritten once you edit the translation and save it. Could you please provide me an exact example of what you are trying to achieve in which text segment? Best regards |