Japanese (speaking) developer needed for a bit of regex magic
Terry Reedy
tjreedy at udel.edu
Wed Apr 21 12:48:10 EDT 2010
On 4/21/2010 7:46 AM, Sebastian wrote:
> The Amazon API returns an XML response which contains error messages
> if a request fails. These messages consist of an error code and an
> error description in natural language. Luckily, the description seems
> to stick to the same format and is (in all but one case) in plain
> English. Much to my dismay I discovered that the Japanese locale
> translates the error message!
Could you, when you get an error message, resubmit the request in the
standard locale so you get the messages in English? Or is the 'locale'
set by the url -- amazon.com versus amazon.co.jp?
After you parse, are you trying to formulate a substitute message in
Japanese?
Terry Jan Reedy
More information about the Python-list
mailing list