Changes between Version 1 and Version 2 of GoogleTranslateTimelineScript
- Timestamp:
- Dec 9, 2008, 5:43:19 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GoogleTranslateTimelineScript
v1 v2 23 23 == Example == 24 24 25 Place '''timeline.translate.js''' into your project ''htdocs/'' directory. Merge the following snippet intoenvironment's ''templates/site.html'' head section:25 Place '''timeline.translate.js''' into your project ''htdocs/'' directory. Merge the following '''site.html''' example with your environment's ''templates/site.html'' head section: 26 26 27 27 {{{ 28 <head py:match="head" py:attrs="select('@*')"> 28 #!xml 29 <html xmlns="http://www.w3.org/1999/xhtml" 30 xmlns:py="http://genshi.edgewall.org/" py:strip=""> 31 <!-- Custom match templates go here --> 32 33 <head py:match="head" py:attrs="select('@*')"> 29 34 ${select('*|comment|text()')} 30 35 31 <py:if test="req.environ['PATH_INFO'] == '/timeline'">32 <!-- Timeline specific - changeset comments translation using Google API -->33 <script type="text/javascript" src="http://www.google.com/jsapi"></script>34 <script type="text/javascript" src="${href.chrome('site/timeline.translate.js')}"></script>35 </py:if>36 <py:if test="req.environ['PATH_INFO'] == '/timeline'"> 37 <!-- Timeline specific - changeset comment translations using Google API --> 38 <script type="text/javascript" src="http://www.google.com/jsapi"></script> 39 <script type="text/javascript" src="${href.chrome('site/timeline.translate.js')}"></script> 40 </py:if> 36 41 37 </head> 42 </head> 43 </html> 38 44 }}} 39 45