Loading...
 
Features / Usability

Features / Usability


Functionality of the integrated machine translation

posts: 3665 United States

I am not sure the machine language feature is applicable any longer, as most modern browsers support translation on-the-fly... however, I've successfully integrated Google's translation widget (which is still free, but unsupported). You can see it in action here.

To do this, you'll need to customize the translated-lang.tpl template for your theme.

Replace this:

Copy to clipboard
li class="dropdown-header"> {tr}Machine translations{/tr} /li>


With something like this:

Copy to clipboard
li> div>{tr}Machine Translation{/tr} div id="google_translate_element"> /div> /div> /li>


Then add the Google translation widget JS to your site

Copy to clipboard
sc ript type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element'); } </sc ript> sc ript type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></sc ript>

Tiki strips out the code in these examples, I hope you're able to still use them!

Please note that the Google translation widget no longer allows new accounts (see https://translate.google.com/intl/en/about/website/), but this may still work for you.

Good luck!

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
There are no comments at this time.

Upcoming Events

1)  21 Mar 2024 18:00 GMT-0000
Tiki Roundtable Meeting
2)  25 Mar 2024 17:00 GMT-0000
29th anniversary WikiBirthday (With Ward Cunningham)
3)  18 Apr 2024 18:00 GMT-0000
Tiki Roundtable Meeting
4)  16 May 2024 18:00 GMT-0000
Tiki Roundtable Meeting
5)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9) 
Tiki birthday
10)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting