Ticket #1941 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] google_translate in admi18n broken (textarea name changed)

Reported by: jbinney Assigned to: anonymous
Priority: normal Milestone: 1.0.x bugfix
Component: Toolbox.admi18n Version: 1.0.5
Severity: critical Keywords: google_translate
Cc:

Description

The TurboGears Toolbox includes a nifty translation automation tool that relies on making HTTP requests to Google's free translation service. Recently, Google changed the response page so that the textarea containing the translation is named "utrans" instead of "q". As a result, the google_translate function in <turbogears>/i18n/utils.py is broken and needs to be updated. I've attached a patch that solves this problem.

Attachments

utils.patch (412 bytes) - added by jbinney on 08/18/08 12:32:14.

Change History

08/18/08 12:32:14 changed by jbinney

  • attachment utils.patch added.

08/18/08 12:33:44 changed by jbinney

  • summary changed from google_translate in admi18n broken (textarea name changed) to [PATCH] google_translate in admi18n broken (textarea name changed).

08/18/08 15:41:57 changed by kskuhlman

  • status changed from new to closed.
  • resolution set to fixed.

Looks good. Applied in r5157. Thanks for the patch!