martin-booxi / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
0 stars 0 forks source link

Wrong measurement translation using translate API, post request #345

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Make translate API, POST call as described in 
https://cloud.google.com/translate/v2/using_rest#supported-query-params.

Use parameters:

source=en
target=de
q=AVERY DENNISON, MONARCH, 9825, PRINTER, MEDIUM
VOLUME 10.16cm, 203 DPI, 6 IPS, RS232 USB &PARALLEL
BASE MODEL, PLASTIC COVER

Expected output is something like

"Avery Dennison MONARCH, 9825, DRUCKER, MEDIUM VOLUME 10.16cm, 203 DPI, 6 IPS, 
RS232 USB & PARALLEL Basismodell, PLASTIC COVER"

We have instead

{
  "translatedText": "Avery Dennison MONARCH, 9825, DRUCKER, MEDIUM VOLUME 10,16, 203 DPI, 6 IPS, RS232 USB & PARALLEL Basismodell, PLASTIC COVER"
}

where "10,16" is the result of translation of "10.16cm". This corrupts the text.

We use /language/translate/v2. Calling application is Web server (Java/Tomcat)

Additional information:

* GET requests result in correct responses

* POST requests with other figures result in correct responses ("10.15cm", 
"10.17cm")

Thank you

Original issue reported on code.google.com by catalogo...@gmail.com on 23 Jun 2015 at 5:51