Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1941 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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

Reported by: jbinney Owned by: 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 Download (412 bytes) - added by jbinney 10 years ago.

Change History

Changed 10 years ago by jbinney

comment:1 Changed 10 years ago by jbinney

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

comment:2 Changed 10 years ago by kskuhlman

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.