PHP Classes

File: functions.php

Recommend this page to a friend!
  Classes of Kemal GENIS   Fast Multi Language   functions.php   Download  
File: functions.php
Role: Auxiliary script
Content type: text/plain
Description: functions
Class: Fast Multi Language
Translate application texts using Yandex
Author: By
Last change: .
php fast translate class
Date: 2 years ago
Size: 140 bytes
 

Contents

Class file image Download
<?php
function trans($str) {
    global
$lang;
    if(isset(
$lang) and is_object($lang)) {
        return
$lang->w($str);
    }
    else {
        return
$str;
    }
}