Assigned
Status Update
Comments
kn...@google.com <kn...@google.com>
kn...@google.com <kn...@google.com> #2
I have one question related to Google translate API. but it is not related to this issue.
When i am trying to access Google Translate API using javascript when the query string size is around 13000 characters i am getting server response error code 400. Can you please let me know what is the request size limit if any exist.
When i am trying to access Google Translate API using javascript when the query string size is around 13000 characters i am getting server response error code 400. Can you please let me know what is the request size limit if any exist.
oi...@gmail.com <oi...@gmail.com> #3
@vrames
according to Google API FAQ
The maximum size of each text to be translated is 5000 characters, not including any HTML tags.
according to Google API FAQ
The maximum size of each text to be translated is 5000 characters, not including any HTML tags.
yi...@google.com <yi...@google.com> #5
I also have a same problem some html tags who are divided in few tags , and it's problematic .. there is some news about it ??
sd...@google.com <sd...@google.com> #6
I met with the problem just now, it seems the bug nof fixed yet.
me...@google.com <me...@google.com> #7
Update: I found the bug triggered not only by anchor tag, but also others. It seems that the problem is the context, and when I replace the tag with special symbol, 【】 for example, it worked.
In some context:
<a id="text">bla bla...</a> -> <a id="text">alb</a>alb<a id="text">...</a>
after change anchor tag to 【】,it worked:
【bla bla ...】 -> 【alb alb ...】
In some context:
<a id="text">bla bla...</a> -> <a id="text">alb</a>alb<a id="text">...</a>
after change anchor tag to 【】,it worked:
【bla bla ...】 -> 【alb alb ...】
Description
I originally noticed it in my code using the Python client library, but I've also replicated the same thing in the API Explorer.
As you can see, in the Output the first 2 <Span> elements are missing and instead inserted randomly in the middle of the snippet. FUNCTIONALITY IS NOT PRESERVED for the math tag and the equations completely break as a result.
I've hit this bug multiple times now with a large number of variations of this text. This is the shortest version, happy to provide the other ones as test cases.
My input is:
POST
{
"format": "html",
"source": "en",
"target": "sw",
"q": [
"<p>The swirling fluid enters the control volume at radius \n <span class=\"mwe-math-element\">\n <span class=\"mwe-math-mathml-inline mwe-math-mathml-a11y\" style=\"display: none;\">\n<math xmlns=\"
]
}
The response is as follows:
{
"data": {
"translations": [
{
"translatedText": "<p> Maji ya swirling huingia kiasi cha udhibiti kwenye radius <math xmlns=\"
}
]
}
}