Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Translator Translate_web_page_on_click  

Translate_web_page_on_click

Change the url="" to your blog or marketplace listing.

Category: Translator
By : Ferd Frederix
Created: 2012-09-16 Edited: 2012-09-16
Worlds: Second Life

the Zip file

Download all files for Translate_web_page_on_click
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Translate_web_page_on_click_1.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 string url = "http://metaverse.mitsi.com/secondlife/tools/tools.htm";
2
3 default
4 {
5 touch_start(integer total_number)
6 {
7
9
10 // lang="es"; // uncomment to debug, this is espanol, or spanish
11
12 lang = llGetSubString(lang,0,1);
13 if(lang == "" || lang == "en")
14 {
15 llLoadURL(llDetectedKey(0),"Information",url);
16 } else {
17 string url = "http://translate.google.com/translate?sl=auto&tl=" + lang + "&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=" + llEscapeURL(url);;
18 llLoadURL(llDetectedKey(0),"Information",url);
19 }
20 }
21 }

Back to the Best Free Tools in Second Life and OpenSim.