Google translate api for php
<p>I'm having a ton of trouble getting this to work. Mainly i'm having a hard time getting started.</p>

<p>I used the free google translate before and all I had to do was copy and paste a script and google generated to translate my entire website. </p>

<p>Now switched over to google translate api so I can customize some of translations.  But the documentation is saying I have to do something like </p>

<pre><code> $text = 'this is text';
 $translate = googleTranslate($text) //just making this up, but its something similar
</code></pre>

<p>I don't wanna instantiate a $text variable for every single page and word i need to translate. I just want it to scan the page and translate it like it did with the free google translate.</p>

<p>How am I suppose to get started??</p>

<p>And how do I customize translations? </p>