-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
41 lines (24 loc) · 947 Bytes
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Google Translator for PHP (c) David Grudl, 2010 (http://davidgrudl.com)
Introduction
------------
Google Translator for PHP is a very small and easy-to-use library for translating
text via Google Translator API.
Project at GitHub: http://github.com/dg/GoogleTranslator-php
Google Translator API documentation: http://code.google.com/apis/ajaxlanguage/documentation/reference.html
My PHP blog: http://phpfashion.com
Requirements
------------
- PHP (version 5 or better)
- cURL extension
Usage
-----
Create object providing source and destination language
$translator = new GoogleTranslator('en', 'cs');
The translate() method translates text:
echo $translator->translate('I am fine today.');
Files
-----
readme.txt - This file.
license.txt - The license for this software (New BSD License).
GoogleTranslator.class.php - The core GoogleTranslator class source.
examples.php - Example.