Translate taglib ver. 1.1

    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
2) to Describes a target language
3) encoding Optional attribute. Describes a source encoding. Default value is UTF8
4) url Optional attribute. Describes an URL for the translation. By default the current page will be translated
5) target Optional attribute. Describes a target frame for the translation. Default value is empty.

for downloading:

Library: translatetag.jar    Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: