Translate stops at "&"

More
6 years 7 months ago - 6 years 7 months ago #2449 by nowISnow
If I use the "Translate" button and there is an & in my text, the translations stops there.
Attachments:
Last edit: 6 years 7 months ago by nowISnow. Reason: added picture

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #2451 by Frank
Replied by Frank on topic Translate stops at "&"
Hi,
Thanks for letting me know about this issue!
It is now fixed in 2.8.0b6.

To fix it locally, you can replace the line 139 in the file assets\i2\localization\scripts\google\googletranslation.cs
with this one:
	string url = string.Format("{0}?action=Translate&list={1}:{2}={3}", LocalizationManager.GetWebServiceURL(), LanguageCodeFrom, LanguageCodeTo, Uri.EscapeDataString( text ));

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
Last edit: 6 years 7 months ago by Frank.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #2456 by nowISnow
Replied by nowISnow on topic Translate stops at "&"
Thanks! Was line 128 for me, but its working now B)

Please Log in or Create an account to join the conversation.

Time to create page: 0.259 seconds
Template by JoomlaShine