Language translation of changeset messages in timeline using Google Language API


This is a JavaScript add-on that translates changeset comments in Trac timeline using Google AJAX Language API version 1. With the AJAX Language API, you can translate and detect the language of blocks of text within a webpage using only Javascript.

As an example, place timeline.translate.js into your project htdocs/ directory. Merge the following site.html example with your environment's templates/site.html head section:

<html xmlns=""
      xmlns:py="" py:strip="">
  <!-- Custom match templates go here -->

  <head py:match="head" py:attrs="select('@*')">

    <py:if test="req.environ['PATH_INFO'] == '/timeline'">
      <!-- Timeline specific - changeset comment translations using Google API -->
      <script type="text/javascript" src=""></script>
      <script type="text/javascript" src="${'site/timeline.translate.js')}"></script>


Tune timeline.translate.js to match your source/target language.

Bugs/Feature Requests

Existing bugs and feature requests for GoogleTranslateTimelineScript are here.

If you have any issues, create a new ticket.


0 / 1


Download the zipped source from here.


You can check out GoogleTranslateTimelineScript from here using Subversion, or browse the source with Trac.


General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

4992 by techtonik on 2008-12-09 17:48:39
import code
4991 by techtonik on 2008-12-09 17:39:05
New hack GoogleTranslateTimelineScript, created by techtonik


Author: techtonik
Maintainer: anatoly techtonik

Last modified 2 years ago Last modified on Mar 23, 2022, 7:45:17 AM