dotnet / ResXResourceManager

Manage localization of all ResX-Based resources in one central place.
MIT License
1.32k stars 217 forks source link

Some punctuation stops translation in Google Lite #616

Closed tkefauver closed 10 months ago

tkefauver commented 10 months ago

Important Read https://github.com/dotnet/ResXResourceManager/blob/master/Documentation/Topics/Troubleshooting.md first. Problems listed there are bugs in Visual Studio and should be reported to Microsoft, not here.

Describe the bug Some punction halts translation, I've tested with these en-US characters: !.| (exclamation point, period and pipe)

To Reproduce Select Google Lite and attempt to translate Hey! This is a test to zh-CN

Expected behavior The output should be (according to https://translate.google.com): 嘿! 这是一个测试

But the actual output is: 嘿!

tom-englert commented 10 months ago

Looks like this is a limitation of Google Lite, not RXRM: image We can only show what the provider returns.

tkefauver commented 10 months ago

That's lame! Thanks for looking at it though :)

tkefauver commented 7 months ago

Hi again, wanted to let you know I found a different Google translate endpoint that doesn't have this flaw! Its mentioned here: https://github.com/ssut/py-googletrans/issues/268.

tkefauver commented 7 months ago

@tom-englert Just realized this was closed, I can submit a PR using the updated endpoint. Just let me know!