PHP Translate is a very simple but useful class.
Why PHP Translate?
60+ languages support
Lightweight and fast
This is easy in use
Intuitive translation method
Google Translate based solution
You can define default settings for translations (input encoding, output encoding, input language and output language).
You can define individual settings for each translation.
Installation
<?php
include('lib/translator.class.php');
$translator = new Translator();
$translation = $translator -> Translate('Witaj ?wiecie', 'pl', 'en');
//this example displays 'Hello World'
echo $translation;
?>
Files included
- Class file.
- Demo.