Google Translate - On-the-fly webOPAC or Primo translation
Tags: aleph
, webopac
, google
, translate
, api
, jquery
, javascript
, basic
, primo
Last Updated: Sep 07, 2010 14:36
- Description
On-the-fly webOPAC/Primo translation with Google Translate API.
Let users translate your webOPAC or Primo to what language they want.
Save work translating webOPAC or Primo by hand to different languages. - Author: André Silva
- Additional author(s): None
- Institution: CIEJD - Centro de Informação Europeia Jacques Delors

- Year: 2010
- License: BSD style
- Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
- Link to terms: [Detailed license terms]
- Skill required for using this code:
Basic
State
Stable
Programming language
HTML, Javascript (jQuery Framework)
Software requirements
None
Screen captures
None
Author(s) homepage
None
Download
Example (part 1) - HTML File example.html
Example (part 2) - Javascript File jquery.plugin.translate.min.js
Please note that you have to download the 2 files to the same folder for the example to work.
Working example
https://infoeuropa.eurocid.pt/ (top left corner)
Using the following Ex Libris open interfaces
None
Changes
Version 1.0
Initial version
Release notes
On-the-fly webOPAC or Primo translation with Google Translate API.
Installation instructions
1. Save the jquery.plugin.translate.min.js JavaScript file to your server.
2. Copy the following HTML code in the <head> section of your webOPAC or Primo pages replacing "<LOCATION-OF-JAVASCRIPT-FILE>" by the location of the JavaScript file on your server.
3. Copy the following HTML code where you want Google Translate form to appear on your webOPAC or Primo.
4. Style with CSS to suit your needs.
| You can add more languages if you need.
The engine supports the same languages that Google Translate service http://translate.google.com/. Just add more option in "3.". Example: Add Italian and Greek |
| Since it uses cookies, the selected language will continue during your navigation. |
TO DO list
None
Known issues
None
Comments
I never tested but should work with Primo too.
Uses jQuery http://jquery.com/
Uses jQuery Translate Plugin http://code.google.com/p/jquery-translate/
Please vote and comment!

