Custom JSP taglib - mashup for Google translation. This taglib lets you deploy Google translate service and translate your pages to different languages.
For example, the following code translates the current page to German. Also, the subsequent clicks on the translated page will be
automatically translated too (thank you Google!):
<%@ taglib uri="taglib.tld" prefix="t" %> <t:translate from="en" to="de" target="_blank">DE</t:translate> and you will get this: DE Actually tag uses own body for creating a translation link. So you can put there an image for example (e.g. country flag or some like that). Tags are: translate Body tag lets you create a translation link for Google service. Attributes are: 1) from Optional attribute. Describes a source language. Default value is en
for downloading: Library: translatetag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|