0

So i've been doing some research but i've failed to solve the problem i am facing right now. Is it possible to somehow send a request for translation of the web-page to google translator by clicking on an element from 'ul' list ?

Don't tell me to use google translate widget, that's not what i am looking for. I tried to style it, but the 'option' tag couldn't be styled, i tried to set style by using some JQuery plugins, but then the translation doesn't work.

Also tried JQuery translators, but they have a really poor quality when it comes to translating from polish to any language and to polish from any language, the page is written is polish, so no way i can change it

Raj
  • 3,051
  • 6
  • 39
  • 57
user3334216
  • 16
  • 1
  • 10
  • 1
    Possible duplicate of [Javascript/Jquery call Google Translate on button click (with flags)](https://stackoverflow.com/questions/47963066/javascript-jquery-call-google-translate-on-button-click-with-flags) – Rahatur Apr 05 '19 at 08:53

1 Answers1

0

Just a suggestion but perhaps you'd find it useful to provide the translations yourself and then have a client-side language translator? I wrote this plugin for exactly that purpose because the quality of automatic translations is not up to the level I wanted.

https://github.com/coolbloke1324/jquery-lang-js

That plugin has language persistence across pages, allows both phrase and regex-based matching, can handle any number of language options and allows you to trigger the change from a click event as you described.

You can see it being used live on https://www.orbzu.com (look top-left of the page for the flag icon and then select a new language to see the text on the page change automatically).

Rob Evans
  • 6,750
  • 4
  • 39
  • 56
  • i can't translate it by myself, it must be done automatically with google translate widget or a good alternative online translator – user3334216 Feb 22 '14 at 19:15