Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 8 rates
Labels:
aleph aleph Delete
webopac webopac Delete
google google Delete
translate translate Delete
api api Delete
jquery jquery Delete
javascript javascript Delete
basic basic Delete
primo primo Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Google Translate - On-the-fly webOPAC or Primo translation

Tags: , , , , , , , ,
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!

Page Attachments

File NameCommentSizeNumber of Downloads
logo-ciejd.jpgCIEJD logotype5 kB1058
2008_novo-logo-ciejd_dt.jpg10 kB136
example.htmlWorking example1 kB353
jquery.plugin.translate.min.jsJQuery Google Translation18 kB296

Added by André Silva on Sep 06, 2010 21:34, last edited by André Silva on Sep 07, 2010 14:36

Adaptavist Theme Builder Powered by Atlassian Confluence