PHP Classes

PHP Prevod: Translate Cyrillic in other languages using Google

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 76 All time: 10,175 This week: 524Up
Version License PHP version Categories
php-prevod 1.2Artistic License3.0Localization, PHP 5, Web services
Description 

Author

This package is specific mainly for applications used in Russian Federation Russian Federation .

This class can translate Cyrillic in other languages using Google.

It can take a text in a given language and sends an HTTP request to the Google Translate API to convert the text to Cyrillic.

In Serbian:

Klasa za prevod i konverzaciju sa latinice na cirilicu i obrnuto.

Picture of Dragan Jankovic
  Performance   Level  
Name: Dragan Jankovic <contact>
Classes: 1 package by
Country: Serbia Serbia
Age: 36
All time rank: 445716 in Serbia Serbia
Week rank: 136 Up1 in Serbia Serbia Up

Example

<meta charset="UTF-8">
<?php
include("prevod.class.php");
$prevedi = "Hello";
$prevod = new Prevod("en", "sr");

echo
$prevod->Prevod($prevedi); //Cirilica
echo '<br/>';
echo
$prevod->CirLat($prevod->Prevod($prevedi)); //Latinica

?>


Details

Ova klasa sluzi za prevod odredjenog teksta, PODRZANI JEZICI I NJIHOVI KODOVI Afrikaans af Irish ga Albanian sq Italian it Arabic ar Japanese ja Azerbaijani az Kannada kn Basque eu Korean ko Bengali bn Latin la Belarusian be Latvian lv Bulgarian bg Lithuanian lt Catalan ca Macedonian mk Chinese Simplified zh-CN Malay ms Chinese Traditional zh-TW Maltese mt Croatian hr Norwegian no Czech cs Persian fa Danish da Polish pl Dutch nl Portuguese pt English en Romanian ro Esperanto eo Russian ru Estonian et Serbian sr Filipino tl Slovak sk Finnish fi Slovenian sl French fr Spanish es Galician gl Swahili sw Georgian ka Swedish sv German de Tamil ta Greek el Telugu te Gujarati gu Thai th Haitian Creole ht Turkish tr Hebrew iw Ukrainian uk Hindi hi Urdu ur Hungarian hu Vietnamese vi Icelandic is Welsh cy Indonesian id Yiddish yi Ukoliko prevodite na srpski mozete iskoristiti integrisanu funkciju konverzacije cirilice u latinicu. - CirLat(); Klasican primer prevoda sa engleskog na srpski mozete naci u example.php

  Files folder image Files (3)  
File Role Description
Plain text file class.translate.php Class Class
Plain text file example.php Example Example of use
Plain text file Readme Doc. Readme

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:76
This week:0
All time:10,175
This week:524Up