Google Translate for Xaseco and FAST
This plugin requires some work in order to get working.
so read the file and do the checklist and everyting works.




CHECK LIST:

1. READ THIS FILE
2. HAVE GOOGLE API KEY
3. HAVE A WEB-PAGE TO CONTAIN THE WRAPPER PAGE
4. ENABLE CURL IN PHP
5. ENABLE XASECO/FAST PLUGIN
6. READ THIS FILE


1. Scroll down.
#############################################################################



















2.Obtaining the google api key.
#############################################################################

Okay, so you have taken the step to enable translations on your server. great.
Firstly you have to decide where you register your wrapper page.
You can use your homepage, or the host of your server, you have to have access it with ftp and the site
has to be accessible from internet.

i will use http://www.example.com/tm_translate for your convience.

now go to
http://code.google.com/apis/loader/signup.html

and enter your becoming website address for the field. Great you got your key.



3. Setting up wrapper page and plugin settings
#############################################################################
Go to xaseco base directory and find directory called google_translate.

* launch your favourite HTML-editor 
* Edit index.htm in google_translate
	* set your google-key (line 16)
	* set servers name	(line 49)
	* set contact email	(line 50)

Launch your favourite FTP-client and connect to your website.
* create directory of your previous choice, in this example tm_translate
* go to directory and upload index.htm from google_translate there.

Great. Visit your page now, to test the api is working.

* Launch your favourite internet browser and enter the address:
	http://www.example.com/tm_translate
If you see powered by google ad at the end of the page, you can congratulate yourself, if not.
then you have to consult somebody who knows to do this. Don't email me.



3.5 Setting xaseco
#############################################################################

Go to xaseco base direcory, where you find googletranslate.xml
* edit key to match your google key
* edit site to match your site (http://www.example.com/tm_translate)



4. ENABLING CURL IN VARIOUS VERSIONS OF PHP
##############################################################################
To enable this plugin you need to have CURL-extention in your php installation.
on windows this can be most of the cases enabled by editing php.ini in your PHP directory
and changing line:

;extension=php_curl.dll

to this:

extension=php_curl.dll

and saving file

on debian-based linux, you should be able to set up the curl extension with package manager,
$ sudo apt-get install php5-curl


5. ENABLING PLUGIN FOR XASECO
##############################################################################

edit plugins.xml
add the row at the last entry of the file.
<plugin>plugin.99.gtrans.php</plugin>

if you want to use standalone version of the plugin with fast, define
<disable_fast> in google_translate.xml to true.

6. RESTARTING THE XASECO | FAST
##############################################################################
Now you can restart your xaseco or fast and congratulate yourself.
