Version 4 (modified by 10 years ago) (diff) | ,
---|
Contents
Language translation of changeset messages in timeline using Google Language API
Description
JavaScript add-on that translates changeset comments in Trac timeline using Google AJAX Language API version 1.
Bugs/Feature Requests
Existing bugs and feature requests for GoogleTranslateTimelineScript are here.
If you have any issues, create a new ticket.
task |
0 / 1 |
---|
Download
Download the zipped source from [download:googletranslatetimelinescript here].
Source
You can check out GoogleTranslateTimelineScript from here using Subversion, or browse the source with Trac.
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="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" py:strip=""> <!-- Custom match templates go here --> <head py:match="head" py:attrs="select('@*')"> ${select('*|comment|text()')} <py:if test="req.environ['PATH_INFO'] == '/timeline'"> <!-- Timeline specific - changeset comment translations using Google API --> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript" src="${href.chrome('site/timeline.translate.js')}"></script> </py:if> </head> </html>
Tune timeline.translate.js to match you source/target language.
Recent Changes
Author/Contributors
Author: techtonik
Maintainer: anatoly techtonik
Contributors: