-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Spaces removed in translation request. #278
Comments
Hello @joey-beech-it , The PR is currently not yet finished, I forgot to change/commit a part. But I could reproduce your error and write a test for it. There are simply more Translate Request parameters missing, which lead to a better result with XML tags. |
Thanks for the info. Great to hear. I will keep an eye on your PR. Feel free to mention me if you want to have it tested again. |
until web-vision#278 is fixed - SEE PR
I tested this, but still some issues occurs. Spaces still get stripped. Source: Result: Expected |
Describe the bug
After sending a request with the following text as content in TextMedia bodytext:
the result received from the API is:
tags have been moved, and there is a space missing. I checked this directly with xdebug in the $response->translations->[0]->text response.
To Reproduce
Expected behavior
Text is translation with same formatting
Screenshots
If applicable, add screenshots to help explain your problem.
TYPO3 Setup
Additional context / Optional solution
Adding
$content = htmlentities($content);
solved the issue and the formatting stays the same.I could XClass this as a solution for now, but i would like to have this fixed in the extension itself. It might not be the correct location for the fix, but anywhere you prefer.
The text was updated successfully, but these errors were encountered: