[Escalated to WPML Developers team] is removed from translation
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.
WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
I expect "Så lyckas du med dokumenthantering i Office 365" (which has non breaking space before 365) to be show as "Document management best practices in Office<wpml_nbsp>365" in the ATE. You can see the non breaking space in the original's HTML and that it is removed from the translation.
Can I insert a non breaking space manually in the ATE?
I do not want to change the width. I want it to be as it is and line breaking should be according to what is specified the text content. The issue is still that ATE strips away the non breaking space character that exists in the original from the translation.
It not just this particular line that I want help with. I need to be able to trust that WPML does not remove whitespace characters that make sure that text render nicely regardless of width, which is variable always because of different devices.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
"Office 365" is breaking because of the CSS rule of this list item.
"365" is moving here to the next line, as the end of the line is reached.
You can see this very well when inspecting the site with Firefox Dev Tools.
If you switch to mobile view you will not see this line break.
Also, you will not see this line break, if you change the with of this HTML element.
If you have still doubts about my findings please feel free to open a new ticket and consult another supporter on this forum, but I do sadly not see any issue or WPML error here.
There are two causes to why "Office 365" is breaking. One is the CSS width of the container as you say. The second is the missing non breaking space character. The second I think is a WPML issue since I do not expect it to delete whitespace characters.
To clarify, if the non breaking space character was intact it would look like this:
Has there been work done on this issue? I was working with some new content and saw <wpml_nbsp> marker in the ATE. They are strill trimmed from old content though. Is it possible that there is some equality comparision that does not differentiate between space and non breaking space?